Skip to content

Commit 819aeac

Browse files
committed
ci: run knip
1 parent 1826db5 commit 819aeac

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
- name: Lint
4444
run: pnpm lint
4545

46+
- name: Knip
47+
run: pnpm knip
48+
4649
- name: Check engine ranges, peer dependency ranges and installed versions
4750
run: pnpm installed-check --no-workspaces
4851

knip.json

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,34 @@
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"workspaces": {
44
".": {
5-
"ignore": [
6-
"config.d.ts",
7-
"e2e.d.ts",
8-
"experimental.d.ts",
9-
"module.d.ts",
10-
"playwright.d.ts",
11-
"runtime.d.ts",
12-
"vitest-environment.d.ts"
13-
],
145
"entry": [
156
"src/config.ts",
167
"src/e2e.ts",
178
"src/playwright.ts",
18-
"src/experimental.ts",
19-
"src/module.ts",
20-
"src/runtime-utils/index.mjs",
21-
"src/vitest-environment.ts",
229
"src/runtime/**/*.{js,ts,mjs,vue}",
23-
"scripts/update-changelog.ts"
10+
"src/experimental.ts",
11+
"src/vitest-environment.ts"
12+
],
13+
"ignoreUnresolved": [
14+
"#build/root-component.mjs",
15+
"#app/nuxt-vitest-app-entry"
16+
],
17+
"ignoreDependencies": [
18+
"nuxt-vitest-environment-options",
19+
"vitest-environment-nuxt",
20+
"@cucumber/cucumber",
21+
"@jest/globals",
22+
"@playwright/test",
23+
"@testing-library/vue",
24+
"@vue/test-utils",
25+
"happy-dom",
26+
"jsdom",
27+
"playwright-core",
28+
"vitest"
2429
]
2530
}
26-
}
31+
},
32+
"ignoreWorkspaces": [
33+
"examples/**"
34+
]
2735
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"lint": "eslint .",
5858
"lint:fix": "eslint . --fix",
5959
"test:examples": "pnpm --filter '!example-app-cucumber' --filter '!example-app-jest' -r test && pnpm --filter example-app-cucumber -r test",
60+
"test:knip": "knip",
6061
"test:types": "vue-tsc --noEmit",
6162
"test:unit": "vitest test/unit --run",
6263
"build": "unbuild",

0 commit comments

Comments
 (0)