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.
Files changed (2) hide show
  1. package/dist/cli.cjs +6 -1
  2. 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("1.0.5").addCommand(init);
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.6",
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
- "keywords": [
27
- "react",
28
- "vite",
29
- "router",
30
- "nextjs",
31
- "file-based-routing",
32
- "filesystem-router",
33
- "react-router"
34
- ],
35
- "author": "Rlzee",
36
- "repository": {
37
- "type": "git",
38
- "url": "https://github.com/Rlzee/next-vite-router"
39
- },
40
- "homepage": "https://github.com/Rlzee/next-vite-router#readme",
41
- "license": "MIT",
42
- "peerDependencies": {
43
- "react": "^18.0.0",
44
- "react-dom": "^18.0.0",
45
- "react-router-dom": "^6.0.0",
46
- "vite": "^5.0.0"
47
- },
48
- "devDependencies": {
49
- "@types/node": "^24.10.1",
50
- "@types/prompts": "^2.4.9",
51
- "@types/react": "^18.0.0",
52
- "@types/react-dom": "^18.0.0",
53
- "typescript": "^5.0.0",
54
- "vite": "^5.0.0",
55
- "vite-plugin-dts": "^3.0.0"
56
- },
57
- "dependencies": {
58
- "commander": "^14.0.2",
59
- "kleur": "^4.1.5",
60
- "prompts": "^2.4.2"
61
- },
62
- "scripts": {
63
- "dev": "vite build --watch",
64
- "build": "vite build && vite build -c vite.config.cli.ts",
65
- "test:local": "node test/test-package.js",
66
- "preview": "pnpm pack --dry-run",
67
- "cli": "cd test && node ../dist/cli.cjs init"
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
+ }