Skip to content

Commit e059ebd

Browse files
committed
Run knip from yarn check
1 parent 94c008b commit e059ebd

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.ai/AGENTS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ This document serves as a quick reference for agentic coding assistants working
44

55
## Check your work
66

7-
After making changes, always run `corepack yarn check`, this lints with typescript, formats code,
8-
and runs quick unit tests. Remember that this formats code and may make changes, that you are to
9-
commit if you were working on those files.
7+
After making changes, always run `corepack yarn check`, which runs Knip (with fixes/removals),
8+
lints TypeScript, formats code, and runs quick unit tests. Remember that Knip and formatting may
9+
make changes that you must review and commit when you touched the affected files.
1010

1111
## When running in GitHub Actions
1212

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"packages/*"
88
],
99
"scripts": {
10-
"check": "yarn lint:ts && yarn fix:js && yarn test:unit",
10+
"check": "yarn workspace @transloadit/node run knip --fix --allow-remove-files && yarn lint:ts && yarn fix:js && yarn test:unit",
1111
"lint:js": "biome check .",
1212
"lint:ts": "yarn workspace @transloadit/node lint:ts && yarn workspace @transloadit/types lint:ts && yarn workspace @transloadit/zod lint:ts",
1313
"lint": "yarn lint:js",

packages/node/knip.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ const config: KnipConfig = {
2525
'@types/minimist',
2626
'minimatch',
2727
'tsx',
28-
// Tooling invoked via package.json scripts; knip's binary detection is disabled.
28+
// Tooling lives at the repo root in this monorepo; knip runs in this workspace.
2929
'@biomejs/biome',
30+
'@vitest/coverage-v8',
31+
'knip',
3032
'npm-run-all',
33+
'tsx',
34+
'typescript',
35+
'vitest',
36+
'vitest/config',
3137
],
3238
ignoreExportsUsedInFile: {
3339
type: true,

0 commit comments

Comments
 (0)