Skip to content

Commit 3ab2c38

Browse files
chore: general tooling updates - node 24, oxfmt, pnpm
1 parent 93d44e6 commit 3ab2c38

22 files changed

+4525
-4062
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/devcontainers/javascript-node:22
1+
FROM mcr.microsoft.com/devcontainers/javascript-node:24
22

33
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
44

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
},
66
"customizations": {
77
"vscode": {
8-
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
8+
"extensions": ["oxc.oxc-vscode", "dbaeumer.vscode-eslint"]
99
}
1010
},
11-
"onCreateCommand": "yarn install",
11+
"onCreateCommand": "pnpm install",
1212
"remoteUser": "node"
1313
}

.github/workflows/check.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
- uses: actions/setup-node@v6
1111
with:
1212
node-version: 24
13-
cache: "yarn"
13+
cache: "pnpm"
1414
- name: run eslint
1515
run: |
16-
yarn install --immutable
17-
yarn build
18-
yarn typecheck
19-
yarn lint:check
20-
yarn format:check
21-
yarn knip
22-
yarn sync
16+
pnpm install --frozen-lockfile
17+
pnpm build
18+
pnpm typecheck
19+
pnpm lint:check
20+
pnpm format:check
21+
pnpm knip
22+
pnpm sync

.github/workflows/publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ jobs:
3737
with:
3838
node-version: 24
3939
registry-url: "https://registry.npmjs.org"
40-
cache: "yarn"
41-
- run: yarn install --immutable
42-
# https://docs.npmjs.com/trusted-publishers#supported-cicd-providers
43-
# Ensure npm 11.5.1 or later is installed
44-
- run: npm install -g npm@latest
45-
- run: npm publish --provenance --access public
40+
cache: "pnpm"
41+
- run: pnpm install --frozen-lockfile
42+
- run: pnpm publish --access public

.github/workflows/sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- uses: actions/setup-node@v6
1818
with:
1919
node-version: 24
20-
cache: "yarn"
21-
- run: yarn install --immutable
22-
- run: yarn sync
20+
cache: "pnpm"
21+
- run: pnpm install --frozen-lockfile
22+
- run: pnpm sync
2323
- name: git config
2424
run: |
2525
git config --local user.name "GitHub Actions"

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ jobs:
1010
- uses: actions/setup-node@v6
1111
with:
1212
node-version: 24
13-
cache: "yarn"
13+
cache: "pnpm"
1414
- name: Install deps and build
1515
run: |
16-
yarn install --immutable
17-
yarn build
16+
pnpm install --frozen-lockfile
17+
pnpm build
1818
rm -rf node_modules
1919
2020
- name: test built package on node@24
2121
working-directory: ./package-test/
2222
run: |
23-
# CI implies --immutable
24-
yarn install --no-immutable
23+
pnpm install --frozen-lockfile
2524
2625
node -v
2726
node test.cjs

.oxfmtrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"ignorePatterns": ["CHANGELOG.md"]
4+
}

.prettierignore

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

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] }
1+
{ "recommendations": ["oxc.oxc-vscode", "dbaeumer.vscode-eslint"] }

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"editor.formatOnSave": true,
4-
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.defaultFormatter": "oxc.oxc-vscode",
55
"editor.codeActionsOnSave": {
66
"source.fixAll.eslint": "explicit"
7+
},
8+
"yaml.schemas": {
9+
"https://json.schemastore.org/lefthook.json": ["lefthook.yml", "lefthook-local.yml"]
710
}
811
}

0 commit comments

Comments
 (0)