Skip to content

Commit 639e576

Browse files
committed
workflow: add license-scan
1 parent b74053d commit 639e576

File tree

3 files changed

+505
-408
lines changed

3 files changed

+505
-408
lines changed

licenses.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
├─ MIT: 90
2+
├─ Apache-2.0: 4
3+
├─ BSD-2-Clause: 3
4+
├─ ISC: 2
5+
└─ BSD-3-Clause: 1

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@
5757
"doc": "vitepress dev --open /README",
5858
"build": "vite build",
5959
"release": "esno ./scripts/release.mts",
60+
"license-scan": "license-checker --summary --out ./licenses.txt",
6061
"lint": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html",
6162
"lint:fix": "eslint \"**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,json,md,html,css,scss,sass}\" --ignore-pattern stats.html --fix",
6263
"preinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx only-allow pnpm",
63-
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || npx simple-git-hooks"
64+
"postinstall": "node -e \"if (process.env.INIT_CWD === process.cwd()) { process.exit(1) }\" || (npx simple-git-hooks && pnpm license-scan)"
6465
},
6566
"peerDependencies": {
6667
"@vue/composition-api": ">=1",
@@ -76,19 +77,19 @@
7677
"vue-demi": "^0.14.10"
7778
},
7879
"devDependencies": {
79-
"@antfu/eslint-config": "^2.25.1",
80+
"@antfu/eslint-config": "^2.25.2",
8081
"@commitlint/cli": "^19.4.0",
8182
"@commitlint/config-conventional": "^19.2.2",
8283
"@types/cross-spawn": "^6.0.6",
8384
"@types/lodash-es": "^4.17.12",
84-
"@types/node": "^22.2.0",
85+
"@types/node": "^22.3.0",
8586
"@types/prompts": "^2.4.9",
8687
"@types/semver": "^7.5.8",
8788
"@vitejs/plugin-vue": "latest",
8889
"@vitest/ui": "^2.0.5",
8990
"@vue/compiler-sfc": "latest",
9091
"@vue/test-utils": "latest",
91-
"axios": "^1.7.3",
92+
"axios": "^1.7.4",
9293
"case-police": "^0.6.1",
9394
"cross-spawn": "^7.0.3",
9495
"del": "^7.1.0",
@@ -97,7 +98,8 @@
9798
"happy-dom": "^14.12.3",
9899
"json-editor-vue": "workspace:*",
99100
"kolorist": "^1.8.0",
100-
"lint-staged": "^15.2.8",
101+
"license-scan": "^0.1.2",
102+
"lint-staged": "^15.2.9",
101103
"lodash-es": "^4.17.21",
102104
"lossless-json": "^4.0.1",
103105
"magicast": "^0.3.4",
@@ -109,9 +111,9 @@
109111
"simple-git-hooks": "^2.11.1",
110112
"typescript": "^5.5.4",
111113
"unplugin-auto-import": "^0.18.2",
112-
"unplugin-vue-components": "^0.27.3",
113-
"vite": "^5.4.0",
114-
"vite-plugin-dts": "4.0.2",
114+
"unplugin-vue-components": "^0.27.4",
115+
"vite": "^5.4.1",
116+
"vite-plugin-dts": "4.0.3",
115117
"vitepress": "^1.3.2",
116118
"vitest": "^2.0.5",
117119
"vue": "latest",

0 commit comments

Comments
 (0)