Skip to content

Commit 43fe9e8

Browse files
authored
perf: setup knip, remove unused dependencies (#992)
1 parent de9df5e commit 43fe9e8

File tree

10 files changed

+77
-53
lines changed

10 files changed

+77
-53
lines changed

apps/stage-pocket/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
"@proj-airi/stream-kit": "workspace:^",
4343
"@proj-airi/ui": "workspace:^",
4444
"@proj-airi/ui-transitions": "workspace:^",
45-
"@standard-schema/spec": "^1.1.0",
46-
"@stdlib/string-base-kebabcase": "^0.2.2",
4745
"@tresjs/cientos": "^5.2.3",
4846
"@tresjs/core": "^5.3.1",
4947
"@valibot/to-json-schema": "1.0.0-rc.0",
@@ -65,7 +63,6 @@
6563
"date-fns": "^4.1.0",
6664
"dompurify": "^3.3.1",
6765
"driver.js": "^1.4.0",
68-
"drizzle-kit": "^0.31.8",
6966
"drizzle-orm": "^0.45.1",
7067
"gpuu": "^1.0.6",
7168
"html2canvas": "^1.4.1",
@@ -75,7 +72,6 @@
7572
"nanoid": "^5.1.6",
7673
"node-vibrant": "^4.0.3",
7774
"nprogress": "^0.2.0",
78-
"ofetch": "^1.5.1",
7975
"onnxruntime-web": "^1.23.2",
8076
"pinia": "^3.0.4",
8177
"posthog-js": "catalog:",

apps/stage-tamagotchi/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"@proj-airi/stage-ui-live2d": "workspace:^",
6666
"@proj-airi/stage-ui-three": "workspace:^",
6767
"@proj-airi/ui": "workspace:^",
68-
"@stdlib/string-base-kebabcase": "^0.2.2",
6968
"@tresjs/cientos": "^5.2.3",
7069
"@tresjs/core": "^5.3.1",
7170
"@vueuse/core": "^14.1.0",
@@ -89,7 +88,6 @@
8988
"defu": "^6.1.4",
9089
"destr": "^2.0.5",
9190
"dompurify": "^3.3.1",
92-
"drizzle-kit": "^0.31.8",
9391
"drizzle-orm": "^0.45.1",
9492
"electron-click-drag-plugin": "^2.0.2",
9593
"electron-updater": "^6.7.3",
@@ -101,7 +99,6 @@
10199
"mediabunny": "^1.29.0",
102100
"node-vibrant": "^4.0.3",
103101
"nprogress": "^0.2.0",
104-
"ofetch": "^1.5.1",
105102
"onnxruntime-web": "^1.23.2",
106103
"pinia": "^3.0.4",
107104
"popmotion": "^11.0.5",

apps/stage-web/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
"@proj-airi/stream-kit": "workspace:^",
4040
"@proj-airi/ui": "workspace:^",
4141
"@proj-airi/ui-transitions": "workspace:^",
42-
"@standard-schema/spec": "^1.1.0",
43-
"@stdlib/string-base-kebabcase": "^0.2.2",
4442
"@tresjs/cientos": "^5.2.3",
4543
"@tresjs/core": "^5.3.1",
4644
"@valibot/to-json-schema": "1.0.0-rc.0",
@@ -63,7 +61,6 @@
6361
"date-fns": "^4.1.0",
6462
"dompurify": "^3.3.1",
6563
"driver.js": "^1.4.0",
66-
"drizzle-kit": "^0.31.8",
6764
"drizzle-orm": "^0.45.1",
6865
"gpuu": "^1.0.6",
6966
"hono": "catalog:",
@@ -74,7 +71,6 @@
7471
"nanoid": "^5.1.6",
7572
"node-vibrant": "^4.0.3",
7673
"nprogress": "^0.2.0",
77-
"ofetch": "^1.5.1",
7874
"onnxruntime-web": "^1.23.2",
7975
"pinia": "^3.0.4",
8076
"posthog-js": "catalog:",

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ words:
138138
- keyup
139139
- Keyyable
140140
- kirakira
141+
- knip
141142
- kwaa
142143
- lemonneko
143144
- lemonnekogh

knip.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://unpkg.com/knip@5/schema.json",
3+
"tags": [
4+
"-lintignore"
5+
],
6+
"workspaces": {
7+
".": {}
8+
}
9+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
"typecheck": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" -F=\"./docs\" --parallel typecheck",
3939
"up": "taze -w -r -I && pnpm prune && pnpm dedupe",
4040
"nolyfill": "pnpm dlx nolyfill",
41-
"open:ios": "pnpm -rF @proj-airi/stage-pocket run open:ios"
41+
"open:ios": "pnpm -rF @proj-airi/stage-pocket run open:ios",
42+
"knip": "knip"
4243
},
4344
"devDependencies": {
4445
"@antfu/eslint-config": "^7.1.0",
@@ -56,6 +57,7 @@
5657
"bumpp": "^10.4.0",
5758
"eslint": "^9.39.2",
5859
"eslint-plugin-oxlint": "^1.41.0",
60+
"knip": "catalog:",
5961
"nano-staged": "catalog:",
6062
"oxlint": "^1.41.0",
6163
"posthog-js": "catalog:",

packages/stage-layouts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"@proj-airi/stage-ui": "workspace:*",
3838
"@proj-airi/stage-ui-three": "workspace:*",
3939
"@proj-airi/ui": "workspace:*",
40-
"@stdlib/string-base-kebabcase": "^0.2.2",
4140
"@vueuse/core": "^14.1.0",
4241
"@vueuse/shared": "^14.1.0",
4342
"@xsai-ext/providers": "catalog:",

pnpm-lock.yaml

Lines changed: 62 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ catalog:
6868
idb-keyval: ^6.2.2
6969
injeca: ^0.1.7
7070
is-network-error: ^1.3.0
71+
knip: ^5.82.1
7172
nano-staged: ^0.9.0
7273
nanoid: 5.1.6
7374
ofetch: ^1.5.1

services/telegram-bot/drizzle.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { env, loadEnvFile } from 'node:process'
22

33
import { defineConfig } from 'drizzle-kit'
44

5-
loadEnvFile()
65
try {
6+
loadEnvFile()
77
loadEnvFile('./env.local')
88
}
99
catch {}

0 commit comments

Comments
 (0)