create-next-shadcn-kit 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +2 -2
- package/src/index.js +2 -2
- package/src/scaffold.js +2 -12
package/README.md
CHANGED
|
@@ -57,8 +57,9 @@ npx create-next-shadcn-kit my-app --pnpm
|
|
|
57
57
|
|
|
58
58
|
## Requirements
|
|
59
59
|
|
|
60
|
-
- Node.js **
|
|
60
|
+
- Node.js **20+** (Next.js 16 requires it)
|
|
61
61
|
- Network access (to fetch `create-next-app` and `shadcn`)
|
|
62
|
+
- Works with **npm, pnpm, yarn, bun**. All are tested end-to-end.
|
|
62
63
|
|
|
63
64
|
## Development
|
|
64
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-next-shadcn-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Create a Next.js app with shadcn/ui pre-integrated — zero config.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nextjs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"LICENSE"
|
|
37
37
|
],
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"start": "node bin/index.js",
|
package/src/index.js
CHANGED
|
@@ -47,8 +47,8 @@ function devCommand(pm) {
|
|
|
47
47
|
|
|
48
48
|
function assertNodeVersion() {
|
|
49
49
|
const major = Number(process.versions.node.split(".")[0]);
|
|
50
|
-
if (major <
|
|
51
|
-
throw new Error(`Node.js
|
|
50
|
+
if (major < 20) {
|
|
51
|
+
throw new Error(`Node.js 20+ is required (Next.js 16 requires it). You are running ${process.versions.node}.`);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
package/src/scaffold.js
CHANGED
|
@@ -367,16 +367,6 @@ function installerFor(pm, dev = true) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
function runnerFor(
|
|
371
|
-
|
|
372
|
-
case "pnpm":
|
|
373
|
-
return { cmd: "pnpm", args: ["dlx"] };
|
|
374
|
-
case "yarn":
|
|
375
|
-
return { cmd: "yarn", args: ["dlx"] };
|
|
376
|
-
case "bun":
|
|
377
|
-
return { cmd: "bunx", args: [] };
|
|
378
|
-
case "npm":
|
|
379
|
-
default:
|
|
380
|
-
return { cmd: "npx", args: [] };
|
|
381
|
-
}
|
|
370
|
+
function runnerFor(_pm) {
|
|
371
|
+
return { cmd: "npx", args: [] };
|
|
382
372
|
}
|