next-vite-router 1.0.6 → 1.0.7
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/dist/cli.cjs +6 -1
- package/package.json +70 -69
package/dist/cli.cjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
1
2
|
"use strict";
|
|
2
3
|
const commander = require("commander");
|
|
3
4
|
const node_child_process = require("node:child_process");
|
|
@@ -530,9 +531,13 @@ const init = new commander.Command().name("init").description(
|
|
|
530
531
|
Project "${projectName}" is ready!
|
|
531
532
|
`);
|
|
532
533
|
});
|
|
534
|
+
const version = "1.0.7";
|
|
535
|
+
const pkg = {
|
|
536
|
+
version
|
|
537
|
+
};
|
|
533
538
|
async function main() {
|
|
534
539
|
const program = new commander.Command();
|
|
535
|
-
program.name("next-vite-router").version(
|
|
540
|
+
program.name("create-next-vite-router").version(pkg.version).addCommand(init);
|
|
536
541
|
program.parse(process.argv);
|
|
537
542
|
}
|
|
538
543
|
main();
|
package/package.json
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "next-vite-router",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Next.js-like file-based routing for React + Vite",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"bin": {
|
|
9
|
-
"next-vite-router": "./dist/cli.cjs"
|
|
10
|
-
},
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.js",
|
|
14
|
-
"types": "./dist/index.d.ts"
|
|
15
|
-
},
|
|
16
|
-
"./plugin": {
|
|
17
|
-
"import": "./dist/plugin.js",
|
|
18
|
-
"types": "./dist/plugin.d.ts"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist",
|
|
23
|
-
"README.md",
|
|
24
|
-
"LICENSE"
|
|
25
|
-
],
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"vite",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
},
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"vite": "^5.0.0"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "next-vite-router",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "Next.js-like file-based routing for React + Vite",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"create-next-vite-router": "./dist/cli.cjs"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./plugin": {
|
|
17
|
+
"import": "./dist/plugin.js",
|
|
18
|
+
"types": "./dist/plugin.d.ts"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"dev": "vite build --watch",
|
|
28
|
+
"build": "vite build && vite build -c vite.config.cli.ts",
|
|
29
|
+
"test:local": "node test/test-package.js",
|
|
30
|
+
"preview": "pnpm pack --dry-run",
|
|
31
|
+
"prepublishOnly": "pnpm run build && pnpm run test:local",
|
|
32
|
+
"cli": "cd test && node ../dist/cli.cjs"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"react",
|
|
36
|
+
"vite",
|
|
37
|
+
"router",
|
|
38
|
+
"nextjs",
|
|
39
|
+
"file-based-routing",
|
|
40
|
+
"filesystem-router",
|
|
41
|
+
"react-router"
|
|
42
|
+
],
|
|
43
|
+
"author": "Rlzee",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/Rlzee/next-vite-router"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/Rlzee/next-vite-router#readme",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^18.0.0",
|
|
52
|
+
"react-dom": "^18.0.0",
|
|
53
|
+
"react-router-dom": "^6.0.0",
|
|
54
|
+
"vite": "^5.0.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^24.10.1",
|
|
58
|
+
"@types/prompts": "^2.4.9",
|
|
59
|
+
"@types/react": "^18.0.0",
|
|
60
|
+
"@types/react-dom": "^18.0.0",
|
|
61
|
+
"typescript": "^5.0.0",
|
|
62
|
+
"vite": "^5.0.0",
|
|
63
|
+
"vite-plugin-dts": "^3.0.0"
|
|
64
|
+
},
|
|
65
|
+
"dependencies": {
|
|
66
|
+
"commander": "^14.0.2",
|
|
67
|
+
"kleur": "^4.1.5",
|
|
68
|
+
"prompts": "^2.4.2"
|
|
69
|
+
}
|
|
70
|
+
}
|