Skip to content

Commit dc9cd67

Browse files
committed
chore: Cleanup of shared package and use biome
1 parent bf4db8f commit dc9cd67

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+86
-15375
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ vite.config.ts.timestamp*
3232

3333
.wrangler
3434

35-
# Dev Folder
35+
# Docker
3636
docker/volume
3737
docker/sprs-localstack-data

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.vscode/settings.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"editor.tabSize": 2,
33
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "biomejs.biome",
45
"editor.codeActionsOnSave": {
5-
"source.fixAll.eslint": "explicit"
6-
},
7-
"eslint.validate": [
8-
"javascript",
9-
"javascriptreact",
10-
"typescript",
11-
"typescriptreact"
12-
]
6+
"source.fixAll.biome": "explicit",
7+
"source.organizeImports.biome": "explicit"
8+
}
139
}

apps/api/eslint.config.mjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/api/package.json

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,25 @@
99
},
1010
"scripts": {
1111
"dev": "bun --watch --inspect=ws://localhost:6499/sprs-api ./src/index.ts",
12-
"build": "bun build ./src/index.ts --target=bun --outdir=./dist && cp -r ./src/db/migrations ./dist",
13-
"lint": "tsc && eslint"
12+
"build": "bun build ./src/index.ts --target=bun --outdir=./dist && cp -r ./src/db/migrations ./dist"
1413
},
1514
"devDependencies": {
1615
"@types/bun": "latest",
1716
"@types/pg": "^8.11.10",
1817
"config": "workspace:*",
19-
"eslint": "^9.14.0",
20-
"tsup": "^8.3.5",
21-
"typescript": "^5.6.3"
18+
"typescript": "^5.8.3"
2219
},
2320
"dependencies": {
2421
"@aws-sdk/client-s3": "^3.685.0",
2522
"@aws-sdk/s3-request-presigner": "^3.685.0",
2623
"@hono/zod-validator": "^0.4.2",
2724
"bolt": "workspace:*",
28-
"bullmq": "^5.25.0",
25+
"bullmq": "^5.49.2",
2926
"hono": "^4.7.0",
3027
"hono-openapi": "^0.4.4",
3128
"kysely": "^0.27.4",
3229
"pg": "^8.13.1",
33-
"shared": "workspace:*",
3430
"zod": "^3.24.2",
3531
"zod-openapi": "^4.2.3"
36-
},
37-
"tsup": {
38-
"entry": {
39-
"client": "./client/index.ts"
40-
},
41-
"format": "esm",
42-
"splitting": false,
43-
"sourcemap": true,
44-
"clean": false,
45-
"dts": true
4632
}
4733
}

apps/api/src/routes/assets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Hono } from "hono";
22
import { describeRoute } from "hono-openapi";
3-
import { resolver } from "hono-openapi/zod";
4-
import { validator } from "shared/hono/middleware";
3+
import { resolver, validator } from "hono-openapi/zod";
54
import { z } from "zod";
65
import { auth } from "../middleware";
76
import {

apps/api/src/routes/jobs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import {
1111
} from "bolt";
1212
import { Hono } from "hono";
1313
import { describeRoute } from "hono-openapi";
14-
import { resolver } from "hono-openapi/zod";
15-
import { validator } from "shared/hono/middleware";
14+
import { resolver, validator } from "hono-openapi/zod";
1615
import { apiError } from "../errors";
1716
import { auth } from "../middleware";
1817
import { getJob, getJobLogs, getJobs } from "../repositories/jobs";

apps/api/src/routes/storage.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Hono } from "hono";
22
import { describeRoute } from "hono-openapi";
3-
import { resolver } from "hono-openapi/zod";
4-
import { validator } from "shared/hono/middleware";
3+
import { resolver, validator } from "hono-openapi/zod";
54
import { z } from "zod";
65
import { apiError } from "../errors";
76
import { auth } from "../middleware";

apps/api/src/routes/token.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Hono } from "hono";
22
import { sign } from "hono/jwt";
33
import { describeRoute } from "hono-openapi";
4-
import { resolver } from "hono-openapi/zod";
5-
import { validator } from "shared/hono/middleware";
4+
import { resolver, validator } from "hono-openapi/zod";
65
import { z } from "zod";
76
import { env } from "../env";
87
import { apiError } from "../errors";

apps/app/eslint.config.mjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)