File tree 5 files changed +1081
-1009
lines changed
5 files changed +1081
-1009
lines changed Original file line number Diff line number Diff line change 1
- FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18
1
+ FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-20
Original file line number Diff line number Diff line change 7
7
- uses : actions/checkout@v3
8
8
- uses : actions/setup-node@v3
9
9
with :
10
- node-version : 18
10
+ node-version : 20
11
11
cache : yarn
12
12
- run : yarn install --frozen-lockfile
13
13
- run : yarn format:check
16
16
- run : yarn build
17
17
- run : yarn test
18
18
19
- - name : test built package
19
+ - name : test built package on node@20
20
20
run : |
21
21
mkdir ../foo
22
22
cd ../foo
32
32
assert.strictEqual(esbuildPluginBrowserslist().name, 'esbuild-plugin-browserslist');
33
33
assert.strictEqual(resolveToEsbuildTarget(['chrome 90'])[0], 'chrome90');
34
34
" > test.js
35
+
36
+ node -v
37
+ node test.js
38
+
39
+ # Not using a matrix here since it's simpler
40
+ # to just duplicate it and not spawn new instances
41
+ - uses : actions/setup-node@v3
42
+ with :
43
+ node-version : 18
44
+ - name : test build package on node@18
45
+ run : |
46
+ cd ../foo
47
+
48
+ node -v
35
49
node test.js
Original file line number Diff line number Diff line change 45
45
fetch-depth : 0
46
46
- uses : actions/setup-node@v3
47
47
with :
48
- node-version : 18
48
+ node-version : 20
49
49
registry-url : ' https://registry.npmjs.org'
50
50
cache : ' yarn'
51
51
- run : yarn install --frozen-lockfile
Original file line number Diff line number Diff line change 11
11
"main" : " ./dist/index.js" ,
12
12
"types" : " ./dist/index.d.ts" ,
13
13
"engines" : {
14
- "node" : " >=14 "
14
+ "node" : " >=18 "
15
15
},
16
16
"files" : [
17
17
" dist"
34
34
"zod" : " ^3.21.4"
35
35
},
36
36
"devDependencies" : {
37
- "@commitlint/cli" : " ^17.6.6 " ,
38
- "@commitlint/config-conventional" : " ^17.6.6 " ,
37
+ "@commitlint/cli" : " ^18.0.0 " ,
38
+ "@commitlint/config-conventional" : " ^18.0.0 " ,
39
39
"@nihalgonsalves/esconfig" : " ^0.6.0" ,
40
40
"@types/debug" : " ^4.1.8" ,
41
41
"@types/node" : " 18" ,
You can’t perform that action at this time.
0 commit comments