Skip to content

Commit

Permalink
named exports working
Browse files Browse the repository at this point in the history
with cjs
  • Loading branch information
programming-with-ia committed Nov 10, 2024
1 parent 041656e commit 3715582
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.4.0-alpha.2",
"description": "Shadcn Theme Editor",
"module": "dist/index.mjs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"type": "git",
Expand Down
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export default [
{
file: packageJson.main,
format: "cjs",
// sourcemap: true,
exports: 'named',
sourcemap: true,
},
{
file: packageJson.module,
format: "esm",
// sourcemap: true,
exports: 'named',
sourcemap: true,
},

],
Expand Down
1 change: 0 additions & 1 deletion src/components/editor-open.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use client";
import { useState } from "react";
import { Sidebar } from "./sidebar";
import clsx from "clsx";
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "./tailwind.css";
import ShadcnThemeEditor from "./components/editor-open";
import { setSavedTheme } from "./lib/set-saved-theme";
export { Icons } from "./components/icons";
import { Icons } from "./components/icons";

export { setSavedTheme };
export { Icons, setSavedTheme };
export default ShadcnThemeEditor;

0 comments on commit 3715582

Please sign in to comment.