File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
strategy :
12
12
matrix :
13
- node : [10, 12, 14]
13
+ node : [12, 14, 16 ]
14
14
steps :
15
15
- uses : actions/checkout@v1
16
16
- uses : actions/setup-node@v1
86
86
- uses : actions/checkout@v2
87
87
- uses : actions/setup-node@v1
88
88
with :
89
- node-version : 14
89
+ node-version : 16
90
90
- run : cd test/tscc && npm install && npx @tscc/tscc
91
91
- run : cd test/tscc && node out.js
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { YargsParser } from './yargs-parser.js'
18
18
// version support policy. The YARGS_MIN_NODE_VERSION is used for testing only.
19
19
const minNodeVersion = ( process && process . env && process . env . YARGS_MIN_NODE_VERSION )
20
20
? Number ( process . env . YARGS_MIN_NODE_VERSION )
21
- : 10
21
+ : 12
22
22
if ( process && process . version ) {
23
23
const major = Number ( process . version . match ( / v ( [ ^ . ] + ) / ) ! [ 1 ] )
24
24
if ( major < minNodeVersion ) {
Original file line number Diff line number Diff line change @@ -681,7 +681,7 @@ export class YargsParser {
681
681
}
682
682
683
683
setConfigObject ( config )
684
- } catch ( ex ) {
684
+ } catch ( ex : any ) {
685
685
// Deno will receive a PermissionDenied error if an attempt is
686
686
// made to load config without the --allow-read flag:
687
687
if ( ex . name === 'PermissionDenied' ) error = ex
@@ -759,7 +759,7 @@ export class YargsParser {
759
759
argv [ ali ] = value
760
760
} )
761
761
} catch ( err ) {
762
- error = err
762
+ error = err as Error
763
763
}
764
764
}
765
765
}
Original file line number Diff line number Diff line change 77
77
" !*.d.ts"
78
78
],
79
79
"engines" : {
80
- "node" : " >=10 "
80
+ "node" : " >=12 "
81
81
},
82
82
"standardx" : {
83
83
"ignore" : [
Original file line number Diff line number Diff line change 2
2
"name" : " optimized-test" ,
3
3
"version" : " 0.0.0" ,
4
4
"dependencies" : {
5
- "@tscc/tscc" : " ^0.6 .4" ,
5
+ "@tscc/tscc" : " ^0.7 .4" ,
6
6
"@types/node" : " ^10.0.3"
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments