Skip to content

Commit 578b114

Browse files
Update all non-major dependencies (#854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam <adam@haglund.dev>
1 parent a778b7d commit 578b114

44 files changed

Lines changed: 1621 additions & 1561 deletions

Some content is hidden

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

.eslintignore

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

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
packageRules: [
99
{
1010
packageNames: ["node"],
11-
allowedVersions: "<=22",
11+
allowedVersions: "<=24",
1212
rangeStrategy: "replace",
1313
},
1414
{

.github/workflows/cicd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
18+
node-version: 24
1919

2020
- run: corepack enable
2121

@@ -33,7 +33,7 @@ jobs:
3333
- name: Install dependencies
3434
run: pnpm install --frozen-lockfile
3535

36-
- run: pnpm lint
36+
- run: node --run lint
3737

3838
fmt:
3939
runs-on: ubuntu-latest
@@ -55,7 +55,7 @@ jobs:
5555

5656
- uses: actions/setup-node@v4
5757
with:
58-
node-version: 22
58+
node-version: 24
5959

6060
- run: corepack enable
6161

@@ -73,7 +73,7 @@ jobs:
7373
- name: Install dependencies
7474
run: pnpm install --frozen-lockfile
7575

76-
- run: pnpm typecheck
76+
- run: node --run typecheck
7777

7878
test:
7979
runs-on: ubuntu-latest
@@ -83,7 +83,7 @@ jobs:
8383

8484
- uses: actions/setup-node@v4
8585
with:
86-
node-version: 22
86+
node-version: 24
8787

8888
- run: corepack enable
8989

@@ -101,7 +101,7 @@ jobs:
101101
- name: Install dependencies
102102
run: pnpm install --frozen-lockfile
103103

104-
- run: pnpm test
104+
- run: node --run test
105105
env:
106106
NODE_ENV: test
107107

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.idea/
22
.env
33
coverage/
4+
db/*.sqlite3*
45
dist/
5-
sqlite/
66
redoc-static.html
77

88
# Logs

.npmrc

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

Dockerfile

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-alpine as base
1+
FROM node:24-alpine as base
22

33
WORKDIR /app
44

@@ -15,35 +15,31 @@ FROM base as base_deps
1515

1616
ENV CI=1
1717

18-
COPY .npmrc package.json pnpm-lock.yaml ./
19-
COPY patches/ patches/
18+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
2019

2120
RUN corepack enable
2221
RUN corepack prepare --activate
2322

2423
# Install dependencies
25-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
26-
pnpm install --frozen-lockfile
24+
RUN pnpm install --frozen-lockfile --ignore-scripts
2725

2826
FROM base_deps as build
2927

30-
COPY knexfile.js tsconfig.json tsup.config.ts ./
28+
COPY tsconfig.json tsdown.config.ts ./
3129
COPY src/ src/
3230

33-
RUN pnpm run build
31+
RUN node --run build
3432

3533
FROM base_deps AS docs
3634

3735
COPY docs/openapi.yaml docs/openapi.yaml
3836

39-
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
40-
pnpm run docs
37+
RUN node --run docs
4138

4239
FROM base
4340

44-
COPY .npmrc knexfile.js package.json pnpm-lock.yaml ./
41+
COPY package.json pnpm-lock.yaml ./
4542
COPY src/ src/
46-
COPY migrations/ migrations/
4743

4844
COPY --from=build /app/dist dist/
4945
COPY --from=docs /app/redoc-static.html .
@@ -54,4 +50,4 @@ ENV NODE_OPTIONS="--enable-source-maps"
5450
# Warnings disabled, we know what we're doing and they're annoying
5551
ENV NODE_NO_WARNINGS=1
5652

57-
CMD ["node", "dist/index.js"]
53+
CMD ["node", "--run", "start"]

biome.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"defaultBranch": "main",
7+
"useIgnoreFile": true
8+
},
39
"formatter": {
410
"lineEnding": "lf",
511
"indentStyle": "tab",
612
"lineWidth": 90,
713
"formatWithErrors": true
814
},
9-
"organizeImports": {
10-
"enabled": false
11-
},
1215
"javascript": {
1316
"formatter": {
1417
"quoteStyle": "double",
1518
"semicolons": "asNeeded"
1619
}
1720
},
18-
"linter": {
19-
"enabled": false
20-
},
21-
"vcs": {
22-
"enabled": true,
23-
"clientKind": "git",
24-
"defaultBranch": "main",
25-
"useIgnoreFile": true
26-
}
21+
22+
"assist": { "actions": { "source": { "organizeImports": "off" } } },
23+
"linter": { "enabled": false }
2724
}
File renamed without changes.

eslint.config.js

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,65 @@
11
import antfu from "@antfu/eslint-config"
22

3+
const sortImports = {
4+
"perfectionist/sort-imports": [
5+
"error",
6+
{
7+
type: "natural",
8+
internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"],
9+
newlinesBetween: "always",
10+
groups: [
11+
["builtin", "builtin-type"],
12+
["external", "external-type"],
13+
["internal", "internal-type"],
14+
["parent", "parent-type"],
15+
["sibling", "sibling-type"],
16+
["index", "index-type"],
17+
"object",
18+
"unknown",
19+
],
20+
},
21+
],
22+
}
23+
324
export default antfu({
425
ignores: ["**/*.json"],
526
markdown: false,
627
stylistic: false,
728
jsonc: false,
829
jsx: false,
930
toml: false,
10-
yaml: false,
1131
test: { overrides: { "test/no-import-node-test": "off" } },
1232
typescript: {
1333
tsconfigPath: "tsconfig.json",
14-
overrides: {
15-
"no-console": "off",
16-
"ts/no-use-before-define": "off",
17-
"ts/consistent-type-definitions": "off",
18-
"ts/consistent-type-imports": ["error", { fixStyle: "inline-type-imports" }],
19-
"ts/no-unsafe-argument": "off",
20-
"ts/no-unsafe-assignment": "off",
21-
"node/prefer-global/process": "off",
22-
"antfu/no-top-level-await": "off",
23-
"import/consistent-type-specifier-style": "off",
34+
ignoresTypeAware: ["copy.ts", "*.config.*"],
2435

25-
"perfectionist/sort-imports": [
36+
overridesTypeAware: {
37+
"ts/no-floating-promises": [
2638
"error",
2739
{
28-
type: "natural",
29-
internalPattern: ["^@/", "^~/", "^#[a-zA-Z0-9-]+/"],
30-
newlinesBetween: "always",
31-
groups: [
32-
["builtin", "builtin-type"],
33-
["external", "external-type"],
34-
["internal", "internal-type"],
35-
["parent", "parent-type"],
36-
["sibling", "sibling-type"],
37-
["index", "index-type"],
38-
"object",
39-
"unknown",
40+
allowForKnownSafeCalls: [
41+
{ from: "package", package: "node:test", name: ["describe", "it", "test"] },
4042
],
4143
},
4244
],
4345
},
46+
47+
overrides: {
48+
"no-console": "off",
49+
"antfu/no-top-level-await": "off",
50+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
51+
"node/prefer-global/process": "off",
52+
"ts/consistent-type-definitions": "off",
53+
"ts/consistent-type-imports": [
54+
"error",
55+
{ fixStyle: "inline-type-imports", disallowTypeAnnotations: false },
56+
],
57+
"ts/no-unsafe-argument": "off",
58+
"ts/no-unsafe-assignment": "off",
59+
"ts/no-use-before-define": "off",
60+
"unused-imports/no-unused-vars": "off",
61+
62+
...sortImports,
63+
},
4464
},
4565
})

knexfile.js

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

0 commit comments

Comments
 (0)