Skip to content

Commit 61d09ab

Browse files
committed
Restore and fix Windows coverage in CI
1 parent 1b9c8c9 commit 61d09ab

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
os:
1717
- macos-latest
1818
- ubuntu-latest
19-
# - windows-latest
19+
- windows-latest
2020
node:
2121
- 18
2222
- 20
@@ -30,8 +30,7 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node }}
3232
- name: Install dependencies
33-
run: |
34-
npm install [email protected] @types/node@18 --ignore-scripts --legacy-peer-deps
33+
run: npm install [email protected] @types/node@18 --ignore-scripts
3534
- name: Build knip
3635
run: npm run build
3736
working-directory: packages/knip
@@ -40,5 +39,4 @@ jobs:
4039
- name: Run knip (production/strict)
4140
run: npx --yes knip --production --strict
4241
- name: Test knip
43-
run: npm run test:node
44-
working-directory: packages/knip
42+
run: npm run --workspace packages/knip test:node:smoke

bun.lock

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"packages/knip": {
4646
"name": "knip",
47-
"version": "5.53.0",
47+
"version": "5.54.0",
4848
"bin": {
4949
"knip": "bin/knip.js",
5050
"knip-bun": "bin/knip-bun.js",
@@ -74,8 +74,8 @@
7474
"@types/webpack": "^5.28.5",
7575
"@wdio/types": "^9.5.0",
7676
"codeclimate-types": "^0.3.1",
77-
"glob": "^10.4.2",
7877
"release-it": "^19.0.1",
78+
"tsx": "^4.19.4",
7979
"type-fest": "^4.31.0",
8080
"typescript": "^5.5.2",
8181
},
@@ -898,6 +898,8 @@
898898

899899
"get-stream": ["[email protected]", "", {}, "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA=="],
900900

901+
"get-tsconfig": ["[email protected]", "", { "dependencies": { "resolve-pkg-maps": "^1.0.0" } }, "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A=="],
902+
901903
"get-uri": ["[email protected]", "", { "dependencies": { "basic-ftp": "^5.0.2", "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4" } }, "sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ=="],
902904

903905
"giget": ["[email protected]", "", { "dependencies": { "citty": "^0.1.6", "consola": "^3.4.0", "defu": "^6.1.4", "node-fetch-native": "^1.6.6", "nypm": "^0.6.0", "pathe": "^2.0.3" }, "bin": { "giget": "dist/cli.mjs" } }, "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA=="],
@@ -1482,6 +1484,8 @@
14821484

14831485
"require-from-string": ["[email protected]", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
14841486

1487+
"resolve-pkg-maps": ["[email protected]", "", {}, "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw=="],
1488+
14851489
"restore-cursor": ["[email protected]", "", { "dependencies": { "onetime": "^7.0.0", "signal-exit": "^4.1.0" } }, "sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA=="],
14861490

14871491
"restructure": ["[email protected]", "", {}, "sha512-gSfoiOEA0VPE6Tukkrr7I0RBdE0s7H1eFCDBk05l1KIQT1UIKNc5JZy6jdyW6eYH3aR3g5b3PuL77rq0hvwtAw=="],
@@ -1618,6 +1622,8 @@
16181622

16191623
"tslib": ["[email protected]", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],
16201624

1625+
"tsx": ["[email protected]", "", { "dependencies": { "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-gK5GVzDkJK1SI1zwHf32Mqxf2tSJkNx+eYcNly5+nHvWqXUJYUkWBQtKauoESz3ymezAI++ZwT855x5p5eop+Q=="],
1626+
16211627
"type-fest": ["[email protected]", "", {}, "sha512-9YvLNnORDpI+vghLU/Nf+zSv0kL47KbVJ1o3sKgoTefl6i+zebxbiDQWoe/oWWqPhIgQdRZRT1KA9sCPL810SA=="],
16221628

16231629
"typedarray": ["[email protected]", "", {}, "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA=="],

packages/knip/fixtures/plugins/eslint2/eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import eslint from '@eslint/js';
22
import tseslint from 'typescript-eslint';
33

44
export default [
5-
...tseslint.config(eslint.configs.recommended, tseslint.configs.recommended),
5+
...(tseslint.default ?? tseslint).config(eslint.configs.recommended, tseslint.configs.recommended),
66
{
77
files: ['**/*.{ts,tsx}'],
88
settings: {

packages/knip/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@
4242
"format": "biome format --write .",
4343
"test": "bun test test/*.test.ts test/**/*.test.ts",
4444
"test:watch": "bun test test/*.test.ts test/**/*.test.ts --reporter=junit --reporter-outfile=junit.xml || bun test --watch $(grep -o 'name=\"[^\"]*\".*failures=\"[^0]' junit.xml | grep -v 'name=\"bun test\"' | grep -o 'name=\"[^\"]*\"' | cut -d'\"' -f2)",
45-
"test:node": "glob -c \"npx -y tsx --test --import ./transform-test.js\" \"test/**/*.test.ts\"",
4645
"test:smoke": "bun test test/*.test.ts test/{plugins,util}/*.test.ts",
46+
"test:node": "tsx --test --import ./transform-test.js test/**/*.test.ts test/*.test.ts",
47+
"test:node:smoke": "tsx --test --import ./transform-test.js {test/*.test.ts,test/plugins/*.test.ts,test/util/*.test.ts}",
4748
"watch": "npm link && tsc --watch",
4849
"prebuild": "npm run generate-plugin-defs && node rmdir.js dist",
4950
"build": "tsc",
@@ -88,8 +89,8 @@
8889
"@types/webpack": "^5.28.5",
8990
"@wdio/types": "^9.5.0",
9091
"codeclimate-types": "^0.3.1",
91-
"glob": "^10.4.2",
9292
"release-it": "^19.0.1",
93+
"tsx": "^4.19.4",
9394
"type-fest": "^4.31.0",
9495
"typescript": "^5.5.2"
9596
},

0 commit comments

Comments
 (0)