create-vite-react-cli 0.4.1 → 0.4.3

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/index.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import './dist/index.mjs'
package/package.json CHANGED
@@ -1,87 +1,81 @@
1
1
  {
2
2
  "name": "create-vite-react-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "🛠️ The recommended way to start a Vite-powered React project",
5
- "type": "module",
5
+ "keywords": [
6
+ "cli",
7
+ "react",
8
+ "scaffold",
9
+ "template",
10
+ "vite"
11
+ ],
12
+ "homepage": "https://github.com/pm0915/create-vite-react-cli#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/pm0915/create-vite-react-cli/issues"
15
+ },
16
+ "license": "MIT",
17
+ "author": "Miles Pan",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/pm0915/create-vite-react-cli.git"
21
+ },
6
22
  "bin": {
7
- "create-vite-react-cli": "bundle.js"
23
+ "create-vite-react-cli": "index.js"
8
24
  },
9
25
  "files": [
26
+ "dist",
27
+ "index.js",
10
28
  "locales",
11
- "bundle.js",
12
29
  "templates",
13
30
  "!templates/**/node_modules/.bin/*"
14
31
  ],
15
- "engines": {
16
- "node": "^20.19.0 || >=22.12.0"
17
- },
18
- "repository": {
19
- "type": "git",
20
- "url": "git+https://github.com/pm0915/create-vite-react-cli.git"
32
+ "type": "module",
33
+ "exports": {
34
+ ".": "./dist/index.mjs",
35
+ "./package.json": "./package.json"
21
36
  },
22
- "keywords": [
23
- "vite",
24
- "react",
25
- "scaffold",
26
- "cli",
27
- "create-react-app",
28
- "template"
29
- ],
30
- "author": "Miles Pan",
31
- "license": "MIT",
32
- "bugs": {
33
- "url": "https://github.com/pm0915/create-vite-react-cli/issues"
37
+ "publishConfig": {
38
+ "access": "public",
39
+ "provenance": true
34
40
  },
35
- "homepage": "https://github.com/pm0915/create-vite-react-cli#readme",
36
41
  "devDependencies": {
37
42
  "@clack/prompts": "^0.11.0",
38
- "@rollup/plugin-commonjs": "^29.0.0",
39
- "@rollup/plugin-json": "^6.1.0",
40
- "@rollup/plugin-node-resolve": "^16.0.3",
41
- "@rollup/plugin-typescript": "^12.3.0",
42
- "@tsconfig/node24": "^24.0.3",
43
- "@types/eslint": "^9.6.1",
43
+ "@types/ejs": "^3.1.5",
44
44
  "@types/node": "^25.0.3",
45
+ "bumpp": "^10.3.2",
46
+ "changelogen": "^0.6.2",
45
47
  "ejs": "^3.1.10",
46
- "eslint": "^9.39.2",
47
- "eslint-config-prettier": "^10.1.8",
48
- "eslint-plugin-n": "^17.23.1",
49
- "eslint-plugin-prettier": "^5.5.4",
50
- "globals": "^16.5.0",
51
48
  "husky": "^9.1.7",
52
- "jiti": "^2.6.1",
53
49
  "lint-staged": "^16.2.7",
50
+ "oxfmt": "^0.24.0",
51
+ "oxlint": "^1.39.0",
54
52
  "picocolors": "^1.1.1",
55
- "prettier": "^3.7.4",
56
- "rollup": "^4.54.0",
57
- "tslib": "^2.8.1",
58
- "typescript-eslint": "^8.51.0",
59
- "vitest": "^4.0.16",
60
- "zx": "^8.8.5"
53
+ "tsdown": "^0.19.0",
54
+ "typescript": "^5.9.3",
55
+ "vitest": "^4.0.16"
61
56
  },
62
57
  "lint-staged": {
63
- "*.{js,jsx,ts,tsx}": [
64
- "eslint --fix",
65
- "prettier --write"
58
+ "*.{js,jsx,ts,tsx,mjs,cjs}": [
59
+ "oxlint --fix",
60
+ "oxfmt"
66
61
  ],
67
62
  "*.{json,md,css,scss}": [
68
- "prettier --write"
63
+ "oxfmt"
69
64
  ]
70
65
  },
71
- "publishConfig": {
72
- "access": "public",
73
- "provenance": true
66
+ "engines": {
67
+ "node": "^20.19.0 || >=22.12.0"
74
68
  },
75
69
  "scripts": {
76
- "build": "rollup -c",
77
- "dev": "node bundle.js",
78
- "lint": "eslint .",
79
- "format": "prettier --write .",
80
- "snapshot": "zx ./scripts/snapshot.mjs",
81
- "pretest": "pnpm run build && pnpm run snapshot",
82
- "test": "zx ./scripts/test.mjs",
83
- "test:unit": "vitest",
84
- "preversion": "git fetch && git status -uno | grep -q 'Your branch is up to date'",
85
- "postversion": "zx ./scripts/postversion.mjs"
70
+ "build": "tsdown",
71
+ "dev": "tsdown --watch",
72
+ "typecheck": "tsc --noEmit",
73
+ "lint": "oxlint",
74
+ "lint:fix": "oxlint --fix",
75
+ "format": "oxfmt",
76
+ "format:check": "oxfmt --check",
77
+ "test": "vitest",
78
+ "changelog": "changelogen --output CHANGELOG.md && git add CHANGELOG.md",
79
+ "release": "bumpp --execute \"pnpm run changelog\""
86
80
  }
87
81
  }
@@ -1,9 +1,9 @@
1
1
  {
2
+ "scripts": {
3
+ "format": "prettier --write src/**/*"
4
+ },
2
5
  "devDependencies": {
3
6
  "eslint-config-prettier": "^9.1.0",
4
7
  "prettier": "^3.4.2"
5
- },
6
- "scripts": {
7
- "format": "prettier --write src/**/*"
8
8
  }
9
9
  }