File tree Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Expand file tree Collapse file tree 4 files changed +17
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " aws-sdk-js-codemod " : patch
3
+ ---
4
+
5
+ Bump jscodeshift to v0.15.2
Original file line number Diff line number Diff line change 39
39
"test" : " vitest"
40
40
},
41
41
"dependencies" : {
42
- "jscodeshift" : " 0.15.1 "
42
+ "jscodeshift" : " 0.15.2 "
43
43
},
44
44
"devDependencies" : {
45
45
"@changesets/cli" : " ^2.27.1" ,
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ const requirePackage = (name: string) => {
27
27
return { } ;
28
28
} ;
29
29
30
+ const defaultExtensions = DEFAULT_EXTENSIONS . concat ( [ "ts" , "tsx" ] )
31
+ . map ( ( ext ) => ( ext . startsWith ( "." ) ? ext . substring ( 1 ) : ext ) )
32
+ . sort ( )
33
+ . join ( "," ) ;
34
+
30
35
/* eslint-disable @typescript-eslint/naming-convention */
31
36
export const getJsCodeshiftParser = ( ) =>
32
37
argsParser . options ( {
@@ -77,16 +82,7 @@ export const getJsCodeshiftParser = () =>
77
82
} ,
78
83
extensions : {
79
84
display_index : 3 ,
80
- // Explicitly add all extensions as default to avoid bug in jscodeshift.
81
- // Refs: https://github.com/facebook/jscodeshift/issues/582
82
- // Source code: https://github.com/facebook/jscodeshift/blob/51da1a5c4ba3707adb84416663634d4fc3141cbb/src/Worker.js#L80
83
- default : [
84
- ...DEFAULT_EXTENSIONS . map ( ( ext ) => ( ext . startsWith ( "." ) ? ext . substring ( 1 ) : ext ) ) ,
85
- "ts" ,
86
- "tsx" ,
87
- ]
88
- . sort ( )
89
- . join ( "," ) ,
85
+ default : defaultExtensions ,
90
86
help : "transform files with these file extensions (comma separated list)" ,
91
87
metavar : "EXT" ,
92
88
} ,
Original file line number Diff line number Diff line change @@ -1974,7 +1974,7 @@ __metadata:
1974
1974
aws-sdk : " npm:2.1563.0"
1975
1975
eslint : " npm:^8.56.0"
1976
1976
eslint-plugin-import : " npm:^2.29.0"
1977
- jscodeshift : " npm:0.15.1 "
1977
+ jscodeshift : " npm:0.15.2 "
1978
1978
lint-staged : " npm:^13.0.3"
1979
1979
prettier : " npm:3.0.3"
1980
1980
simple-git-hooks : " npm:^2.8.1"
@@ -4133,9 +4133,9 @@ __metadata:
4133
4133
languageName : node
4134
4134
linkType : hard
4135
4135
4136
- " jscodeshift@npm:0.15.1 " :
4137
- version : 0.15.1
4138
- resolution : " jscodeshift@npm:0.15.1 "
4136
+ " jscodeshift@npm:0.15.2 " :
4137
+ version : 0.15.2
4138
+ resolution : " jscodeshift@npm:0.15.2 "
4139
4139
dependencies :
4140
4140
" @babel/core " : " npm:^7.23.0"
4141
4141
" @babel/parser " : " npm:^7.23.0"
@@ -4164,7 +4164,7 @@ __metadata:
4164
4164
optional : true
4165
4165
bin :
4166
4166
jscodeshift : bin/jscodeshift.js
4167
- checksum : 10c0/334de6ffa776a68b3f59f2f18a285ea977f3339d85e3517f3854761e65769ffa7e453c35cde320fc969106d573df39bd3fb08b23db54ae17c1b1516e5bf05742
4167
+ checksum : 10c0/79afb059b9ca92712af02bdc8d6ff144de7aaf5e2cdcc6f6534e7a86a7347b0a278d9f4884f2c78dac424162a353aafff183a60e868f71132be2c5b5304aeeb8
4168
4168
languageName : node
4169
4169
linkType : hard
4170
4170
You can’t perform that action at this time.
0 commit comments