Skip to content

Commit e16e6dd

Browse files
committed
chore: clean up knip dead-code baseline
Signed-off-by: zebbern <185730623+zebbern@users.noreply.github.com>
1 parent 980e5af commit e16e6dd

10 files changed

Lines changed: 30 additions & 689 deletions

File tree

docs/development/release-process.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Since packages aren't published to npm, sync versions with Docker releases:
105105

106106
```bash
107107
# Sync all package versions with release tag
108-
bun run scripts/sync-versions.ts v1.0.0
108+
bun run release:sync-versions v1.0.0
109109
```
110110

111111
#### Option 3: Changesets (For Published Packages)
@@ -130,7 +130,7 @@ Before creating a release:
130130
- [ ] Run tests: `bun run test`
131131
- [ ] Run typecheck: `bun run typecheck`
132132
- [ ] Run lint: `bun run lint`
133-
- [ ] Update package versions (if syncing): `bun run scripts/sync-versions.ts v1.0.0`
133+
- [ ] Update package versions (if syncing): `bun run release:sync-versions v1.0.0`
134134
- [ ] Commit version changes (if any)
135135

136136
Create the release:

frontend/src/components/auth/__tests__/usePermissions.test.tsx

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

frontend/src/components/auth/usePermissions.ts

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

knip.json

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,25 @@
77
"e2e-tests/**/*.test.ts",
88
"e2e-tests/**/*.spec.ts",
99
"e2e-tests/scripts/**/*.ts",
10+
"backend/src/**/*.test.ts",
11+
"backend/src/**/*.spec.ts",
1012
"backend/src/main.ts",
1113
"backend/src/**/*.module.ts",
1214
"backend/scripts/**/*.ts",
15+
"frontend/src/**/*.test.ts",
16+
"frontend/src/**/*.test.tsx",
17+
"frontend/src/**/*.spec.ts",
18+
"frontend/src/**/*.spec.tsx",
1319
"frontend/src/main.tsx",
1420
"frontend/src/App.tsx",
1521
"frontend/vite.config.ts",
22+
"worker/src/**/*.test.ts",
23+
"worker/src/**/*.spec.ts",
1624
"worker/src/temporal/workers/**/*.ts",
1725
"worker/src/health/health-server.ts",
1826
"worker/scripts/**/*.ts",
27+
"packages/*/src/**/*.test.ts",
28+
"packages/*/src/**/*.spec.ts",
1929
"packages/*/src/index.ts"
2030
],
2131
"project": [
@@ -31,13 +41,23 @@
3141
"worker/scripts/**/*.ts",
3242
"packages/*/src/**/*.ts"
3343
],
44+
"workspaces": {
45+
"frontend": {
46+
"entry": [
47+
"src/main.tsx",
48+
"src/App.tsx",
49+
"vite.config.ts",
50+
"src/test/run-tests-serial.ts",
51+
"src/**/*.test.ts",
52+
"src/**/*.test.tsx",
53+
"src/**/*.spec.ts",
54+
"src/**/*.spec.tsx"
55+
],
56+
"project": ["src/**/*.{ts,tsx}", "vite.config.ts"]
57+
}
58+
},
3459
"ignore": [".tasks/**", ".instances/**", "docs/**", "docker/**", "**/dist/**"],
3560
"ignoreFiles": [
36-
"**/__tests__/**",
37-
"**/*.test.ts",
38-
"**/*.test.tsx",
39-
"**/*.spec.ts",
40-
"**/*.spec.tsx",
4161
"backend/scripts/**/*.ts",
4262
"backend/src/mcp-servers/index.ts",
4363
"backend/src/mcp/index.ts",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929
"test:e2e:core": "bash -lc 'SENTRIS_INSTANCE=${SENTRIS_INSTANCE:-$(./scripts/active-instance.sh get)} RUN_E2E=true bun test --force-exit e2e-tests/core'",
3030
"test:e2e:pipeline": "bash -lc 'SENTRIS_INSTANCE=${SENTRIS_INSTANCE:-$(./scripts/active-instance.sh get)} RUN_E2E=true bun test --force-exit e2e-tests/pipeline'",
3131
"test:e2e:cloud": "bash -lc 'SENTRIS_INSTANCE=${SENTRIS_INSTANCE:-$(./scripts/active-instance.sh get)} RUN_E2E=true RUN_CLOUD_E2E=true bun test --force-exit e2e-tests/cloud'",
32+
"test:e2e:setup": "bun e2e-tests/scripts/setup-e2e-env.ts",
3233
"dev:docs": "cd docs && mint dev",
3334
"lint": "bun run lint:frontend && bun run lint:backend && bun run lint:worker",
3435
"lint:frontend": "bun --cwd=frontend run lint",
3536
"lint:backend": "bun --cwd=backend run lint",
3637
"lint:worker": "bun --cwd=worker run lint",
3738
"lint:fix": "bun run lint:frontend --fix && bun run lint:backend --fix && bun run lint:worker --fix",
39+
"release:sync-versions": "bun scripts/sync-versions.ts",
3840
"prepare": "husky"
3941
},
4042
"devDependencies": {

0 commit comments

Comments
 (0)