Skip to content

Commit bec5606

Browse files
authored
chore: move knip to project root (@fehmer) (monkeytypegame#6842)
1 parent ced5dc1 commit bec5606

File tree

6 files changed

+18
-11
lines changed

6 files changed

+18
-11
lines changed

backend/knip.json

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

backend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"integration-test": "vitest run --project=integration --project=integration-isolated",
1717
"test-coverage": "vitest run --coverage",
1818
"dev": "concurrently -p none \"tsx watch --clear-screen=false --inspect ./src/server.ts\" \"tsc --preserveWatchOutput --noEmit --watch\" \"esw src/ -w --ext .ts --cache --color\"",
19-
"knip": "knip",
2019
"docker-db-only": "docker compose -f docker/compose.db-only.yml up",
2120
"docker": "docker compose -f docker/compose.yml up",
2221
"gen-docs": "tsx scripts/openapi.ts dist/static/api/openapi.json && redocly build-docs -o dist/static/api/internal.html internal@v2 && redocly bundle -o dist/static/api/public.json public-filter && redocly build-docs -o dist/static/api/public.html public@v2"

frontend/knip.json

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

frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"test-coverage": "vitest run --coverage",
2222
"dev-test": "concurrently --kill-others \"vite dev\" \"vitest\"",
2323
"tsc": "tsc",
24-
"knip": "knip",
2524
"docker": "docker compose -f docker/compose.dev.yml up"
2625
},
2726
"engines": {

knip.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"workspaces": {
3+
"backend": {
4+
"entry": "src/server.ts",
5+
"project": "src/**/*.ts"
6+
},
7+
"frontend": {
8+
"entry": "src/ts/index.ts",
9+
"project": "src/ts/**/*.ts"
10+
},
11+
"packages/*": {
12+
"entry": "src/index.ts",
13+
"project": "src/**/*.ts"
14+
}
15+
}
16+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
"pr-check-lint-json": "cd frontend && eslint './static/**/*.json'",
5757
"pr-check-quote-json": "cd frontend && npx gulp pr-check-quote-json",
5858
"pr-check-language-json": "cd frontend && npx gulp pr-check-language-json && turbo test -- constants/languages",
59-
"pr-check-other-json": "cd frontend && npx gulp pr-check-other-json && turbo test -- constants/layouts constants/themes constants/fonts"
59+
"pr-check-other-json": "cd frontend && npx gulp pr-check-other-json && turbo test -- constants/layouts constants/themes constants/fonts",
60+
"knip": "knip"
6061
},
6162
"engines": {
6263
"node": "20.19.4"

0 commit comments

Comments
 (0)