Skip to content

Commit

Permalink
revert changes v1.4.0-alpha.1
Browse files Browse the repository at this point in the history
  • Loading branch information
programming-with-ia committed Nov 9, 2024
1 parent 0677280 commit 163931f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pnpm add shadcn-theme-editor --save-dev
`import { ThemeProvider } from 'next-themes';` -->

```tsx
import ThemeEditor from "shadcn-theme-editor";
import ShadcnThemeEditor from "shadcn-theme-editor";
```

or (in this way, it doesn't include the component in the production build)
Expand All @@ -82,7 +82,7 @@ if (process.env.NODE_ENV === 'development') {
and use

```tsx
<ThemeEditor />
<ShadcnThemeEditor />
```

</br>
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadcn-theme-editor",
"version": "1.4.0-alpha.1",
"version": "1.4.0-alpha.2",
"description": "Shadcn Theme Editor",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
Expand Down Expand Up @@ -58,7 +58,11 @@
"rollup-plugin-preserve-directives": "^0.4.0",
"tailwindcss": "^3.4.9",
"tslib": "^2.6.3",
"typescript": "^5.5.3"
"typescript": "^5.5.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"next-themes": "^0.3.0",
"react": "^18.3.1"
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
Expand Down
17 changes: 9 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ export default [
{
input: "src/index.ts",
output: [
// {
// file: packageJson.main,
// format: "cjs",
// sourcemap: true,
// },
{
file: packageJson.main,
format: "cjs",
sourcemap: true,
},
{
file: packageJson.module,
format: "esm",
// sourcemap: true,
sourcemap: true,
},

],
plugins: [
peerDepsExternal(),
Expand All @@ -56,8 +57,8 @@ export default [
},
{
input: "src/index.ts",
output: [{ file: "dist/index.d.ts" }],
output: [{ file: packageJson.types }],
plugins: [dts.default()],
external: [/\.css$/],
},
];
];

0 comments on commit 163931f

Please sign in to comment.