Skip to content

Commit

Permalink
chore: configured knip
Browse files Browse the repository at this point in the history
  • Loading branch information
ascariandrea committed Oct 20, 2024
1 parent 98a1028 commit 4cca30b
Show file tree
Hide file tree
Showing 7 changed files with 218 additions and 95 deletions.
20 changes: 20 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"workspaces": {
"packages/@liexp/*": {
"entry": ["src/index.ts"],
"project": ["src/**/*.ts"]
},
"services/web": {
"entry": ["src/client/index.ts"],
"project": ["src/**/*.ts"]
},
"services/admin-web": {
"entry": ["src/client/index.ts"],
"project": ["src/**/*.ts"]
},
"services/api": {
"entry": ["src/run.ts", "src/worker/index.ts"],
"project": ["src/**/*.ts"]
}
}
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"web": "pnpm --filter 'web'",
"vitest": "vitest",
"vitest:expected-cov": "vitest run --coverage.enabled --coverage.thresholds.lines=90 --coverage.thresholds.functions=90 --coverage.thresholds.statements=90",
"vitest:cov": "vitest run --coverage.enabled"
"vitest:cov": "vitest run --coverage.enabled",
"knip": "knip"
},
"resolutions": {
"dotenv": "^16.4.5",
Expand All @@ -39,6 +40,7 @@
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@types/node": "^20.16.11",
"@typescript-eslint/eslint-plugin": "^8.10.0",
"@typescript-eslint/parser": "^8.10.0",
"@vitest/coverage-v8": "^2.1.3",
Expand All @@ -52,10 +54,11 @@
"eslint-plugin-promise": "^7.1.0",
"husky": "^9.1.6",
"is-ci": "^3.0.1",
"knip": "^5.33.3",
"lint-staged": "^15.2.10",
"pm2": "^5.4.2",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0",
"vitest": "^2.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@liexp/core/src/frontend/vite/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const defineViteConfig = <A extends Record<string, any>>(
[key]: v,
};
}),
config.env.decode,
(env) => fp.E.right(env as A),
(env) => {
if (env._tag === "Left") {
// eslint-disable-next-line
Expand Down
8 changes: 0 additions & 8 deletions packages/@liexp/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,22 @@
"dependencies": {
"@liexp/core": "workspace:*",
"axios": "^1.7.7",
"bs58": "^5.0.0",
"cheerio": "^1.0.0-rc.12",
"date-fns": "^4.1.0",
"domino": "^2.1.6",
"fp-ts": "^2.16.6",
"io-ts": "^2.2.21",
"io-ts-types": "^0.5.19",
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"query-string": "^7.1.3",
"throttle-debounce": "^5.0.0",
"ts-endpoint": "^2.0.0",
"ts-endpoint-express": "^2.0.0",
"ts-io-error": "^2.0.0",
"uuid": "^10.0.0"
},
"devDependencies": {
"@liexp/test": "workspace:*",
"@types/bs58": "^4.0.4",
"@types/jsonwebtoken": "^9.0.6",
"@types/lodash": "^4.17.7",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/throttle-debounce": "^5.0.2",
"@types/uuid": "^10.0.0",
"@visx/network": "^3.3.0",
"pdfjs-dist": "^4.6.82",
Expand Down
Loading

0 comments on commit 4cca30b

Please sign in to comment.