Skip to content

Commit dce05ac

Browse files
committed
feat: export registry
1 parent c52dc84 commit dce05ac

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

packages/cli/package.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@
2424
"shadcn",
2525
"shadcn-vue"
2626
],
27-
"exports": "./dist/index.js",
27+
"exports": {
28+
".": {
29+
"types": "./dist/index.d.ts",
30+
"default": "./dist/index.js"
31+
},
32+
"./registry": {
33+
"types": "./dist/registry/index.d.ts",
34+
"default": "./dist/registry/index.js"
35+
}
36+
},
2837
"bin": "./dist/index.js",
2938
"files": [
3039
"dist"

packages/cli/tsup.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { defineConfig } from 'tsup'
22

33
export default defineConfig({
44
clean: true,
5-
dts: false,
6-
entry: ['src/index.ts'],
5+
dts: true,
6+
entry: ['src/index.ts', 'src/registry/index.ts'],
77
format: ['esm'],
88
sourcemap: true,
99
target: 'esnext',

0 commit comments

Comments
 (0)