Skip to content

Commit e278929

Browse files
committed
chore: use pnpm 11
1 parent ea40202 commit e278929

12 files changed

Lines changed: 2121 additions & 108 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ jobs:
1515
runs-on: "depot-ubuntu-24.04-small"
1616
steps:
1717
- uses: "actions/checkout@v6"
18-
- uses: "bahmutov/npm-install@v1"
18+
- uses: "actions/setup-node@v6"
1919
with:
20-
useLockFile: false
21-
- name: "Run prettier"
22-
run: "CI=true yarn run oxfmt --check"
20+
node-version: "24"
21+
- uses: "pnpm/action-setup@v6"
22+
with:
23+
cache: true
24+
run_install: true
25+
- name: "Run format"
26+
run: "pnpm run format:check"
2327
- name: "Run lint"
24-
run: "CI=true yarn lint"
28+
run: "pnpm lint"
2529
- name: "Run publint"
26-
run: "yarn build && yarn lint:package"
30+
run: "pnpm build && pnpm lint:package"
2731

2832
conventional-commits:
2933
name: "Lint Commit Messages"

.github/workflows/publish.yaml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15-
- uses: actions/setup-node@v6
15+
- uses: "actions/setup-node@v6"
1616
with:
17-
cache-dependency-path: ./package.json
18-
cache: "yarn"
19-
node-version: 18
20-
- uses: bahmutov/npm-install@v1
17+
node-version: "24"
18+
- uses: "pnpm/action-setup@v6"
2119
with:
22-
useLockFile: false
20+
cache: true
21+
run_install: true
2322
# Set the version in package.json to match the tag
2423
- name: Write release version
2524
run: |
@@ -40,21 +39,15 @@ jobs:
4039
runs-on: ubuntu-latest
4140
steps:
4241
- uses: actions/checkout@v6
43-
- uses: actions/setup-node@v6
42+
- uses: "actions/setup-node@v6"
4443
with:
45-
node-version: 18
46-
cache-dependency-path: ./package.json
47-
cache: "yarn"
48-
# Install deps in base package and build into js-dist
49-
- uses: bahmutov/npm-install@v1
44+
node-version: "24"
45+
- uses: "pnpm/action-setup@v6"
5046
with:
51-
useLockFile: false
47+
cache: true
48+
run_install: true
5249
- name: Run build
53-
run: yarn build-js-client
54-
- uses: bahmutov/npm-install@v1
55-
with:
56-
useLockFile: false
57-
working-directory: ./js-dist
50+
run: pnpm build-js-client
5851
# Set the version in package.json to match the tag
5952
- name: Write release version
6053
run: |

.github/workflows/test.yaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
runs-on: "depot-ubuntu-24.04-small"
3030
strategy:
3131
matrix:
32-
node-version: [18, 20, 22]
32+
node-version: [20, 22, 24]
3333
needs: "paths-filter"
3434
if: |
3535
needs.paths-filter.outputs.codechange == 'true'
@@ -41,19 +41,18 @@ jobs:
4141
- uses: "actions/setup-node@v6"
4242
with:
4343
node-version: ${{ matrix.node-version }}
44-
cache-dependency-path: ./package.json
45-
cache: "yarn"
46-
- uses: "bahmutov/npm-install@v1"
44+
- uses: "pnpm/action-setup@v6"
4745
with:
48-
useLockFile: false
49-
- name: Run Yarn tests
50-
run: "CI=true yarn only-run-tests"
46+
cache: true
47+
run_install: true
48+
- name: Run tests
49+
run: "CI=true pnpm only-run-tests"
5150
build-js-client:
5251
name: "Build and Test JS client"
5352
runs-on: "depot-ubuntu-24.04-small"
5453
strategy:
5554
matrix:
56-
node-version: [18, 20, 22]
55+
node-version: [20, 22, 24]
5756
needs: "paths-filter"
5857
if: |
5958
needs.paths-filter.outputs.codechange == 'true'
@@ -65,20 +64,15 @@ jobs:
6564
- uses: actions/setup-node@v6
6665
with:
6766
node-version: ${{ matrix.node-version }}
68-
cache-dependency-path: ./package.json
69-
cache: "yarn"
70-
- uses: bahmutov/npm-install@v1
67+
- uses: "pnpm/action-setup@v6"
7168
with:
72-
useLockFile: false
69+
cache: true
70+
run_install: true
7371
- name: Run build
74-
run: yarn build-js-client
72+
run: pnpm build-js-client
7573
working-directory: ./
76-
- uses: bahmutov/npm-install@v1
77-
with:
78-
useLockFile: false
79-
working-directory: ./js-dist
8074
- name: Run tests
81-
run: CI=true yarn only-run-tests
75+
run: CI=true pnpm only-run-tests
8276
working-directory: ./js-dist
8377
- uses: actions/upload-artifact@v6
8478
with:

eslint.config.mjs

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

js-dist/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@
2828
"devDependencies": {
2929
"grpc-tools": "^1.13.1",
3030
"vitest": "^4.0.18"
31-
}
31+
},
32+
"packageManager": "pnpm@11.1.1"
3233
}

oxlint.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineConfig } from "oxlint";
2+
3+
export default defineConfig({
4+
ignorePatterns: ["src/authzedapi"],
5+
});

package.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@
4141
"test": "./scripts/run-and-test.sh",
4242
"only-run-tests": "vitest",
4343
"buf": "buf generate && tsc-esm-fix --src src/authzedapi --ext='.js'",
44-
"lint": "./node_modules/.bin/eslint src",
45-
"lint:package": "publint --pack npm",
46-
"format": "oxfmt",
47-
"build": "tsc",
44+
"lint": "pnpm oxlint --type-check --type-aware",
45+
"lint:package": "pnpm publint --pack npm",
46+
"format": "pnpm oxfmt",
47+
"format:check": "pnpm oxfmt --check",
48+
"build": "pnpm tsc",
4849
"postbuild": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs && cp dist/src/index.d.ts dist/src/index.d.cts",
49-
"prepublish": "yarn build",
50-
"build-js-client": "tsc --declaration false --outDir js-dist"
50+
"prepublish": "pnpm build",
51+
"build-js-client": "pnpm tsc --declaration false --outDir js-dist"
5152
},
5253
"dependencies": {
5354
"@grpc/grpc-js": "^1.14.3",
@@ -56,19 +57,17 @@
5657
"google-protobuf": "^4.0.1"
5758
},
5859
"devDependencies": {
59-
"@eslint/eslintrc": "^3.3.3",
60-
"@eslint/js": "^9.39.2",
6160
"@protobuf-ts/plugin": "^2.11.1",
6261
"@tsconfig/node18": "^18.2.6",
63-
"@typescript-eslint/eslint-plugin": "^8.54.0",
64-
"@typescript-eslint/parser": "^8.54.0",
65-
"eslint": "^9.39.2",
6662
"grpc-tools": "^1.13.1",
6763
"oxfmt": "^0.28.0",
64+
"oxlint": "^1.64.0",
65+
"oxlint-tsgolint": "^0.22.1",
6866
"publint": "^0.3.17",
6967
"rollup": "^4.57.1",
7068
"tsc-esm-fix": "^3.1.2",
7169
"typescript": "^5.9",
7270
"vitest": "^4.0.18"
73-
}
71+
},
72+
"packageManager": "pnpm@11.1.1"
7473
}

0 commit comments

Comments
 (0)