Skip to content

Commit a39574d

Browse files
committed
Improve ordering consistency within package.json files
1 parent 230c1b7 commit a39574d

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

packages/create-vue-lib/src/template/base/config/package.json.ejs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@
55
"engines": {
66
"node": ">=v18.3.0"
77
},
8+
"devDependencies": {
9+
<%_ if (config.includeEsLint) { _%>
10+
"@eslint/compat": "^1.2.7",
11+
<%_ if (config.includeEsLintStylistic) { _%>
12+
"@stylistic/eslint-plugin": "^4.2.0",
13+
<%_ } _%>
14+
"@tsconfig/node22": "^22.0.0",
15+
"@types/node": "^22.13.9",
16+
<%_ if (config.includeVitest) { _%>
17+
"@vitest/eslint-plugin": "^1.1.36",
18+
<%_ } _%>
19+
"@vue/eslint-config-typescript": "^14.5.0",
20+
"eslint": "^9.21.0",
21+
"eslint-plugin-vue": "~10.0.0",
22+
"jiti": "^2.4.2",
23+
"lint-staged": "^15.4.3",
24+
"npm-run-all2": "^7.0.2",
25+
<%_ } _%>
26+
"simple-git-hooks": "^2.11.1",
27+
<%_ if (config.includeEsLint) { _%>
28+
"typescript": "~5.8.0"
29+
<%_ } _%>
30+
},
831
"scripts": {
932
"clean": "pnpm run -r clean",
1033
<%_ if (config.includePlayground) { _%>
@@ -38,33 +61,10 @@
3861
},
3962
"lint-staged": {
4063
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix"
41-
},
64+
}
4265
<%_ } else { _%>
4366
"simple-git-hooks": {
4467
"pre-commit": "pnpm run type-check"
45-
},
46-
<%_ } _%>
47-
"devDependencies": {
48-
<%_ if (config.includeEsLint) { _%>
49-
"@eslint/compat": "^1.2.7",
50-
<%_ if (config.includeEsLintStylistic) { _%>
51-
"@stylistic/eslint-plugin": "^4.2.0",
52-
<%_ } _%>
53-
"@tsconfig/node22": "^22.0.0",
54-
"@types/node": "^22.13.9",
55-
<%_ if (config.includeVitest) { _%>
56-
"@vitest/eslint-plugin": "^1.1.36",
57-
<%_ } _%>
58-
"@vue/eslint-config-typescript": "^14.5.0",
59-
"eslint": "^9.21.0",
60-
"eslint-plugin-vue": "~10.0.0",
61-
"jiti": "^2.4.2",
62-
"lint-staged": "^15.4.3",
63-
"npm-run-all2": "^7.0.2",
64-
<%_ } _%>
65-
"simple-git-hooks": "^2.11.1",
66-
<%_ if (config.includeEsLint) { _%>
67-
"typescript": "~5.8.0"
68-
<%_ } _%>
6968
}
69+
<%_ } _%>
7070
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
{
22
"private": true,
33
"type": "module",
4-
"scripts": {
5-
"clean": "rimraf dist",
6-
"dev": "vite --port 5051",
7-
"type-check": "vue-tsc --build",
8-
"build:only": "vite build",
9-
"build": "run-p -c type-check \"build:only {@}\" --",
10-
"preview": "vite preview --port 4051"
11-
},
124
"dependencies": {
135
"vue": "^3.5.13"
146
},
@@ -23,5 +15,13 @@
2315
"vite": "^6.2.1",
2416
"vite-plugin-vue-devtools": "^7.7.2",
2517
"vue-tsc": "^2.2.8"
18+
},
19+
"scripts": {
20+
"clean": "rimraf dist",
21+
"dev": "vite --port 5051",
22+
"type-check": "vue-tsc --build",
23+
"build:only": "vite build",
24+
"build": "run-p -c type-check \"build:only {@}\" --",
25+
"preview": "vite preview --port 4051"
2626
}
2727
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
22
"private": true,
33
"type": "module",
4-
"scripts": {
5-
"clean": "rimraf dist .vitepress/cache",
6-
"dev": "vitepress dev .",
7-
"type-check:code": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
8-
"type-check:config": "vue-tsc --noEmit -p tsconfig.node.json --composite false",
9-
"type-check": "run-p -c type-check:*",
10-
"build:only": "vitepress build .",
11-
"build": "run-p -c type-check \"build:only {@}\" --",
12-
"preview": "vitepress preview ."
13-
},
144
"dependencies": {
155
"vue": "^3.5.13"
166
},
@@ -23,5 +13,15 @@
2313
"typescript": "~5.8.0",
2414
"vitepress": "^1.6.3",
2515
"vue-tsc": "^2.2.8"
16+
},
17+
"scripts": {
18+
"clean": "rimraf dist .vitepress/cache",
19+
"dev": "vitepress dev .",
20+
"type-check:code": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
21+
"type-check:config": "vue-tsc --noEmit -p tsconfig.node.json --composite false",
22+
"type-check": "run-p -c type-check:*",
23+
"build:only": "vitepress build .",
24+
"build": "run-p -c type-check \"build:only {@}\" --",
25+
"preview": "vitepress preview ."
2626
}
2727
}

0 commit comments

Comments
 (0)