Skip to content

Commit 163931f

Browse files
revert changes v1.4.0-alpha.1
1 parent 0677280 commit 163931f

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pnpm add shadcn-theme-editor --save-dev
6262
`import { ThemeProvider } from 'next-themes';` -->
6363

6464
```tsx
65-
import ThemeEditor from "shadcn-theme-editor";
65+
import ShadcnThemeEditor from "shadcn-theme-editor";
6666
```
6767

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

8484
```tsx
85-
<ThemeEditor />
85+
<ShadcnThemeEditor />
8686
```
8787

8888
</br>

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shadcn-theme-editor",
3-
"version": "1.4.0-alpha.1",
3+
"version": "1.4.0-alpha.2",
44
"description": "Shadcn Theme Editor",
55
"module": "dist/index.mjs",
66
"types": "dist/index.d.ts",
@@ -58,7 +58,11 @@
5858
"rollup-plugin-preserve-directives": "^0.4.0",
5959
"tailwindcss": "^3.4.9",
6060
"tslib": "^2.6.3",
61-
"typescript": "^5.5.3"
61+
"typescript": "^5.5.3",
62+
"class-variance-authority": "^0.7.0",
63+
"clsx": "^2.1.1",
64+
"next-themes": "^0.3.0",
65+
"react": "^18.3.1"
6266
},
6367
"dependencies": {
6468
"@radix-ui/react-slot": "^1.1.0",

rollup.config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ export default [
2222
{
2323
input: "src/index.ts",
2424
output: [
25-
// {
26-
// file: packageJson.main,
27-
// format: "cjs",
28-
// sourcemap: true,
29-
// },
25+
{
26+
file: packageJson.main,
27+
format: "cjs",
28+
sourcemap: true,
29+
},
3030
{
3131
file: packageJson.module,
3232
format: "esm",
33-
// sourcemap: true,
33+
sourcemap: true,
3434
},
35+
3536
],
3637
plugins: [
3738
peerDepsExternal(),
@@ -56,8 +57,8 @@ export default [
5657
},
5758
{
5859
input: "src/index.ts",
59-
output: [{ file: "dist/index.d.ts" }],
60+
output: [{ file: packageJson.types }],
6061
plugins: [dts.default()],
6162
external: [/\.css$/],
6263
},
63-
];
64+
];

0 commit comments

Comments
 (0)