Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 32456c2

Browse files
committed
chore: tidy dependencies and add knip test
1 parent 1154e3a commit 32456c2

File tree

7 files changed

+470
-51
lines changed

7 files changed

+470
-51
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
run: pnpm dev:prepare
3030

3131
- name: 🔠 Lint project
32-
run: pnpm run lint
32+
run: pnpm lint
33+
34+
- name: ✂️ Knip project
35+
run: pnpm knip
3336

3437
test:
3538
strategy:

.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

knip.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"ignore": [
4+
"**/__snapshots__/*"
5+
],
6+
"workspaces": {
7+
".": {
8+
"entry": [
9+
"build.config.ts",
10+
"src/module.ts",
11+
"src/runtime/**/*.{js,ts,mjs,vue}"
12+
]
13+
},
14+
"playground": {
15+
"ignoreDependencies": ["nuxt-time"],
16+
"entry": [
17+
"workers/*.ts"
18+
]
19+
}
20+
}
21+
}

lint-staged.config.cjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,43 +34,39 @@
3434
"build": "pnpm dev:prepare && nuxt-module-build build",
3535
"dev": "nuxi dev playground",
3636
"dev:build": "nuxi build playground",
37-
"dev:prepare": "pnpm nuxt-module-build build --stub && pnpm nuxt-module-build prepare && nuxi prepare playground",
37+
"dev:prepare": "simple-git-hooks && pnpm nuxt-module-build build --stub && pnpm nuxt-module-build prepare && nuxi prepare playground",
3838
"docs:dev": "nuxi dev docs",
3939
"docs:build": "nuxi generate docs",
4040
"lint": "eslint .",
4141
"prepack": "pnpm build",
42-
"prepare": "husky",
4342
"prepublishOnly": "pnpm lint && pnpm test",
4443
"release": "bumpp && pnpm publish",
4544
"test": "vitest run --coverage",
4645
"test:types": "vue-tsc --noEmit"
4746
},
4847
"dependencies": {
49-
"@nuxt/kit": "^3.14.159",
50-
"defu": "^6.1.4",
51-
"pathe": "^1.1.2"
48+
"@nuxt/kit": "^3.14.159"
5249
},
5350
"devDependencies": {
5451
"@nuxt/eslint-config": "0.7.0",
5552
"@nuxt/module-builder": "0.8.4",
56-
"@nuxt/schema": "3.14.1592",
5753
"@nuxt/test-utils": "3.14.4",
5854
"@types/node": "22.9.0",
5955
"@vitest/coverage-v8": "2.1.6",
6056
"@vue/test-utils": "2.4.6",
6157
"bumpp": "9.8.1",
58+
"changelogithub": "0.13.11",
6259
"eslint": "9.15.0",
63-
"expect-type": "1.1.0",
64-
"get-port-please": "3.1.2",
6560
"happy-dom": "15.11.7",
66-
"husky": "9.1.6",
61+
"knip": "5.38.2",
6762
"lint-staged": "15.2.10",
6863
"magic-regexp": "0.8.0",
6964
"nuxt": "3.14.1592",
7065
"playwright": "1.48.2",
66+
"simple-git-hooks": "2.11.1",
7167
"typescript": "5.6.3",
68+
"unbuild": "2.0.0",
7269
"vitest": "2.1.6",
73-
"vitest-environment-nuxt": "1.0.1",
7470
"vue": "3.5.13",
7571
"vue-tsc": "2.1.10"
7672
},
@@ -79,8 +75,17 @@
7975
},
8076
"resolutions": {
8177
"@nuxt/kit": "3.14.1592",
78+
"@nuxt/schema": "3.14.1592",
8279
"nuxt-time": "link:.",
8380
"vue": "3.5.13"
8481
},
82+
"simple-git-hooks": {
83+
"pre-commit": "npx lint-staged"
84+
},
85+
"lint-staged": {
86+
"*.{js,ts,mjs,cjs,json,.*rc}": [
87+
"npx eslint --fix"
88+
]
89+
},
8590
"packageManager": "[email protected]"
8691
}

0 commit comments

Comments
 (0)