Skip to content

Commit 987d715

Browse files
committed
chore: Modify the unified configuration
1 parent bbc1968 commit 987d715

File tree

7 files changed

+93
-67
lines changed

7 files changed

+93
-67
lines changed

internal/create-skyroc/template-ui-primitives/package.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,21 @@
66
"description": "UI Primitives Template",
77
"publishConfig": {
88
"registry": "https://registry.npmjs.org/",
9-
"main": "./dist/index.cjs",
10-
"module": "./dist/index.mjs"
9+
"main": "./dist/index.js",
10+
"module": "./dist/index.js",
11+
"types": "./dist/index.d.ts",
12+
"exports": {
13+
".": {
14+
"import": {
15+
"types": "./dist/index.d.ts",
16+
"default": "./dist/index.js"
17+
},
18+
"require": {
19+
"types": "./dist/index.d.ts",
20+
"default": "./dist/index.js"
21+
}
22+
}
23+
}
1124
},
1225
"sideEffects": false,
1326
"exports": {
@@ -16,15 +29,24 @@
1629
"main": "src/index.ts",
1730
"module": "src/index.ts",
1831
"types": "src/index.ts",
32+
"files": ["dist"],
1933
"scripts": {
20-
"test": "echo \"Error: no test specified\" && exit 1"
34+
"build": "tsdown"
2135
},
2236
"peerDependencies": {
2337
"@types/react": "*",
2438
"@types/react-dom": "*",
2539
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc",
2640
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
2741
},
42+
"peerDependenciesMeta": {
43+
"@types/react": {
44+
"optional": true
45+
},
46+
"@types/react-dom": {
47+
"optional": true
48+
}
49+
},
2850
"devDependencies": {
2951
"@types/react": "19.1.0",
3052
"@types/react-dom": "19.1.1",

internal/create-skyroc/template-ui-primitives/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"baseUrl": ".",
88
"module": "ESNext",
99
"moduleResolution": "bundler",
10-
"paths": {
11-
"@/*": ["./src/*"]
12-
},
1310
"resolveJsonModule": true,
1411
"types": ["node"],
1512
"strict": true,

internal/create-skyroc/template-ui-primitives/tsdown.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ export default defineConfig({
44
clean: true,
55
dts: true,
66
entry: ['src/index.ts'],
7-
format: ['esm', 'cjs'],
87
minify: false,
9-
outExtensions: ctx => {
10-
return {
11-
js: ctx.format === 'cjs' ? '.cjs' : '.mjs'
12-
};
13-
},
148
platform: 'neutral',
159
shims: true,
1610
sourcemap: false

packages/ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"react": "19.1.0",
6262
"react-dom": "19.1.0",
6363
"react-resizable-panels": "^3.0.4",
64+
"skyroc-form": "workspace:*",
6465
"sonner": "2.0.6",
6566
"tailwind-merge": "3.3.0",
6667
"tailwind-variants": "1.0.0",

playground/package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@
1717
"bugs": {
1818
"url": "https://github.com/Ohh-889/soybean-react-ui/issues"
1919
},
20-
"keywords": [
21-
"UI",
22-
"tailwind-css",
23-
"shadcn-ui",
24-
"react"
25-
],
20+
"keywords": ["UI", "tailwind-css", "shadcn-ui", "react"],
2621
"scripts": {
2722
"build": "next build",
2823
"build:ui": "pnpm --filter soybean-react-ui build",
@@ -38,6 +33,7 @@
3833
"worker:build": "opennextjs-cloudflare build"
3934
},
4035
"dependencies": {
36+
"@hookform/resolvers": "^5.2.1",
4137
"embla-carousel-autoplay": "8.6.0",
4238
"grapheme-splitter": "1.0.4",
4339
"lucide-react": "0.525.0",
@@ -47,7 +43,8 @@
4743
"react-dom": "19.1.0",
4844
"react-hook-form": "^7.62.0",
4945
"react-hotkeys-hook": "5.1.0",
50-
"soybean-react-ui": "workspace:*"
46+
"soybean-react-ui": "workspace:*",
47+
"zod": "4.0.17"
5148
},
5249
"devDependencies": {
5350
"@eslint/eslintrc": "^3",

playground/tsconfig.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,11 @@
33
"incremental": true,
44
"target": "ES2017",
55
"jsx": "preserve",
6-
"lib": [
7-
"dom",
8-
"dom.iterable",
9-
"esnext"
10-
],
6+
"lib": ["dom", "dom.iterable", "esnext"],
117
"module": "esnext",
128
"moduleResolution": "bundler",
139
"paths": {
14-
"@/*": [
15-
"../packages/ui/src/*"
16-
]
10+
"@/*": ["../packages/ui/src/*"]
1711
},
1812
"resolveJsonModule": true,
1913
"allowJs": true,
@@ -28,13 +22,6 @@
2822
}
2923
]
3024
},
31-
"include": [
32-
"**/*.ts",
33-
"**/*.tsx",
34-
"next-env.d.ts",
35-
".next/types/**/*.ts"
36-
],
37-
"exclude": [
38-
"node_modules"
39-
]
25+
"include": ["**/*.ts", "**/*.tsx", "next-env.d.ts", ".next/types/**/*.ts"],
26+
"exclude": ["node_modules"]
4027
}

pnpm-lock.yaml

Lines changed: 59 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)