Skip to content

Commit de4fa94

Browse files
committed
chore: move knip to root level
1 parent 96b6d3b commit de4fa94

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ jobs:
4343
echo "No formatting issues found"
4444
fi
4545
- name: Run Knip
46-
run: pnpm run knip
47-
working-directory: packages/nuqs
46+
run: pnpm run lint:knip --workspace packages/nuqs
4847

4948
publint:
5049
name: Package Linting

packages/nuqs/knip.json renamed to knip.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"$schema": "https://unpkg.com/knip@5/schema.json",
3-
"project": ["src/**/*.ts"],
3+
"workspaces": {
4+
"packages/nuqs": {
5+
"project": ["src/**/*.ts"]
6+
}
7+
},
48
"rules": {
59
"optionalPeerDependencies": "off"
610
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
"test": "turbo run test --log-order=stream",
1919
"prepare": "husky",
2020
"lint": "pnpm run -w --parallel --stream '/^lint:/'",
21+
"lint:knip": "knip",
2122
"lint:prettier": "prettier --check ./packages/nuqs/src/**/*.ts",
2223
"lint:sherif": "sherif"
2324
},
2425
"devDependencies": {
2526
"@commitlint/config-conventional": "^19.8.1",
2627
"commitlint": "^19.8.1",
2728
"husky": "^9.1.7",
29+
"knip": "^5.64.1",
2830
"prettier": "3.6.2",
2931
"publint": "^0.3.12",
3032
"semantic-release": "^24.2.7",

pnpm-lock.yaml

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)