File tree 5 files changed +785
-437
lines changed
5 files changed +785
-437
lines changed Original file line number Diff line number Diff line change @@ -17,29 +17,18 @@ jobs:
17
17
strategy :
18
18
matrix :
19
19
node-version :
20
- - ' 20.9'
21
- - ' 18.17'
22
- - ' 16.20'
23
- - ' 14.16'
20
+ - ' 22.13'
24
21
runs-on : macos-latest
25
22
steps :
26
- - name : Install Rosetta
27
- if : ${{ matrix.node-version == '14.16' }}
28
- run : /usr/sbin/softwareupdate --install-rosetta --agree-to-license
29
23
- name : Checkout
30
24
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31
25
- name : Setup Node.js
32
26
uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
33
27
with :
34
28
node-version : " ${{ matrix.node-version }}"
35
29
cache : ' yarn'
36
- architecture : ${{ matrix.node-version == '14.16' && 'x64' || env.RUNNER_ARCH }}
37
- - name : Install (Node.js v16+)
38
- if : ${{ matrix.node-version != '14.16' }}
30
+ - name : Install dependencies
39
31
run : yarn install --frozen-lockfile
40
- - name : Install (Node.js < v16)
41
- if : ${{ matrix.node-version == '14.16' }}
42
- run : yarn install --frozen-lockfile --ignore-engines
43
32
- name : Lint
44
33
run : yarn lint
45
34
- name : Test
Original file line number Diff line number Diff line change
1
+ 22.13.0
Original file line number Diff line number Diff line change 26
26
" lib"
27
27
],
28
28
"engines" : {
29
- "node" : " >= 10 .0.0"
29
+ "node" : " >= 22 .0.0"
30
30
},
31
31
"publishConfig" : {
32
32
"provenance" : true
33
33
},
34
34
"devDependencies" : {
35
35
"@types/debug" : " ^4.1.5" ,
36
- "@types/fs-extra" : " ^9.0.1" ,
37
36
"@types/jest" : " ^29.0.0" ,
38
- "@types/node" : " ^13.7.7 " ,
37
+ "@types/node" : " ^22.10.5 " ,
39
38
"@types/promise-retry" : " ^1.1.3" ,
40
39
"jest" : " ^29.0.0" ,
41
40
"prettier" : " ^3.4.2" ,
42
41
"ts-jest" : " ^29.0.0" ,
43
42
"typedoc" : " ~0.25.13" ,
44
43
"typedoc-plugin-missing-exports" : " ^2.2.0" ,
45
- "typescript" : " 4.9.3 "
44
+ "typescript" : " ~5.4.5 "
46
45
},
47
46
"dependencies" : {
48
47
"debug" : " ^4.1.1" ,
49
- "fs-extra" : " ^9.0.1" ,
50
48
"promise-retry" : " ^2.0.1"
51
49
}
52
50
}
Original file line number Diff line number Diff line change 1
1
import debug from 'debug' ;
2
- import * as fs from 'fs-extra' ;
3
- import * as os from 'os' ;
4
- import * as path from 'path' ;
2
+
3
+ import * as fs from 'node:fs/promises' ;
4
+ import * as os from 'node:os' ;
5
+ import * as path from 'node:path' ;
5
6
6
7
const d = debug ( 'electron-notarize:helpers' ) ;
7
8
@@ -13,11 +14,11 @@ export async function withTempDir<T>(fn: (dir: string) => Promise<T>) {
13
14
result = await fn ( dir ) ;
14
15
} catch ( err ) {
15
16
d ( 'work failed' ) ;
16
- await fs . remove ( dir ) ;
17
+ await fs . rm ( dir , { recursive : true } ) ;
17
18
throw err ;
18
19
}
19
20
d ( 'work succeeded' ) ;
20
- await fs . remove ( dir ) ;
21
+ await fs . rm ( dir , { recursive : true } ) ;
21
22
return result ;
22
23
}
23
24
You can’t perform that action at this time.
0 commit comments