Skip to content

Commit c3d087c

Browse files
authored
refactor(core): reorganize API and utils files into a core folder (#159)
1 parent ffe7b61 commit c3d087c

36 files changed

+755
-676
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@ on:
66
push:
77
branches: [main]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
ci:
1115
name: Continuous integration
12-
runs-on: ubuntu-latest
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
node: [20, 22, 24]
1321

1422
steps:
1523
- name: Checkout
@@ -23,7 +31,7 @@ jobs:
2331
- name: Setup Node
2432
uses: actions/setup-node@v4
2533
with:
26-
node-version: 22
34+
node-version: ${{ matrix.node }}
2735
cache: "pnpm"
2836

2937
- name: Install dependencies

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ jobs:
2828
- name: Install dependencies
2929
run: pnpm install --frozen-lockfile
3030

31-
- name: Build
32-
run: pnpm build
31+
- name: Check formatting
32+
run: pnpm format:check
3333

3434
- name: Lint
3535
run: pnpm lint
3636

3737
- name: Run tests
3838
run: pnpm test
3939

40+
- name: Build
41+
run: pnpm build
42+
4043
- name: Publish to npm
4144
run: pnpm publish
4245
env:

package.json

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@
4242
],
4343
"scripts": {
4444
"build": "rm -rf lib && tsc --project tsconfig.build.json",
45-
"lint": "oxlint",
46-
"lint:fix": "oxlint --fix",
47-
"test": "vitest",
48-
"typecheck": "tsc --noEmit",
49-
"test:coverage": "vitest --coverage",
5045
"format": "prettier . --write --experimental-cli",
5146
"format:check": "prettier . --check --experimental-cli",
5247
"knip": "knip",
53-
"knip:fix": "knip --fix"
48+
"knip:fix": "knip --fix",
49+
"lint": "oxlint",
50+
"lint:fix": "oxlint --fix",
51+
"test": "vitest run",
52+
"test:coverage": "vitest --coverage",
53+
"test:watch": "vitest --watch",
54+
"typecheck": "tsc --noEmit"
5455
},
5556
"dependencies": {
5657
"graphql": "^16.11.0",
@@ -60,21 +61,32 @@
6061
},
6162
"devDependencies": {
6263
"@types/jsonld": "^1.5.15",
63-
"@types/node": "^22.15.34",
64+
"@types/node": "^22.16.5",
6465
"@vitest/coverage-v8": "3.2.4",
65-
"knip": "^5.61.3",
66-
"msw": "^2.10.2",
66+
"knip": "^5.62.0",
67+
"msw": "^2.10.4",
6768
"openapi-types": "^12.1.3",
68-
"oxlint": "^1.4.0",
69+
"oxlint": "^1.8.0",
6970
"prettier": "^3.6.2",
7071
"typescript": "^5.8.3",
7172
"vitest": "^3.2.4"
7273
},
73-
"packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184",
74+
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad",
7475
"engines": {
75-
"node": ">=18"
76+
"node": ">= 20"
7677
},
7778
"publishConfig": {
7879
"access": "public"
80+
},
81+
"devEngines": {
82+
"packageManager": {
83+
"name": "pnpm",
84+
"version": ">= 10.0.0",
85+
"onFail": "download"
86+
},
87+
"runtime": {
88+
"name": "node",
89+
"version": ">=20"
90+
}
7991
}
8092
}

0 commit comments

Comments
 (0)