Skip to content

Commit f2e01d3

Browse files
committed
fix: fix CI build by using pnpm and adding missing tsconfig options
1 parent b6d2f7f commit f2e01d3

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/CI.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,23 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [14.x, 16.x, 18.x, 20.x]
15+
node-version: [18.x, 20.x]
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
with:
23+
version: 9
1924

2025
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2227
with:
2328
node-version: ${{ matrix.node-version }}
29+
cache: "pnpm"
2430

2531
- name: Build
2632
run: |
27-
npm install
33+
pnpm install
2834
tsc -p tsconfig.json

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4+
"rootDir": "src",
45
"outDir": "out",
56
"target": "es6",
67
"declaration": true,
78
"strict": true,
8-
"allowJs": true
9+
"allowJs": true,
10+
"skipLibCheck": true,
11+
"types": ["node"]
912
},
1013
"include": ["src"],
1114
"exclude": ["node_modules"]

0 commit comments

Comments
 (0)