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 3939 "test" : " vitest"
4040 },
4141 "dependencies" : {
42- "jscodeshift" : " 0.15.1 "
42+ "jscodeshift" : " 0.15.2 "
4343 },
4444 "devDependencies" : {
4545 "@changesets/cli" : " ^2.27.1" ,
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ const requirePackage = (name: string) => {
2727 return { } ;
2828} ;
2929
30+ const defaultExtensions = DEFAULT_EXTENSIONS . concat ( [ "ts" , "tsx" ] )
31+ . map ( ( ext ) => ( ext . startsWith ( "." ) ? ext . substring ( 1 ) : ext ) )
32+ . sort ( )
33+ . join ( "," ) ;
34+
3035/* eslint-disable @typescript-eslint/naming-convention */
3136export const getJsCodeshiftParser = ( ) =>
3237 argsParser . options ( {
@@ -77,16 +82,7 @@ export const getJsCodeshiftParser = () =>
7782 } ,
7883 extensions : {
7984 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 ,
9086 help : "transform files with these file extensions (comma separated list)" ,
9187 metavar : "EXT" ,
9288 } ,
Original file line number Diff line number Diff line change @@ -1974,7 +1974,7 @@ __metadata:
19741974 aws-sdk : " npm:2.1563.0"
19751975 eslint : " npm:^8.56.0"
19761976 eslint-plugin-import : " npm:^2.29.0"
1977- jscodeshift : " npm:0.15.1 "
1977+ jscodeshift : " npm:0.15.2 "
19781978 lint-staged : " npm:^13.0.3"
19791979 prettier : " npm:3.0.3"
19801980 simple-git-hooks : " npm:^2.8.1"
@@ -4133,9 +4133,9 @@ __metadata:
41334133 languageName : node
41344134 linkType : hard
41354135
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 "
41394139 dependencies :
41404140 " @babel/core " : " npm:^7.23.0"
41414141 " @babel/parser " : " npm:^7.23.0"
@@ -4164,7 +4164,7 @@ __metadata:
41644164 optional : true
41654165 bin :
41664166 jscodeshift : bin/jscodeshift.js
4167- checksum : 10c0/334de6ffa776a68b3f59f2f18a285ea977f3339d85e3517f3854761e65769ffa7e453c35cde320fc969106d573df39bd3fb08b23db54ae17c1b1516e5bf05742
4167+ checksum : 10c0/79afb059b9ca92712af02bdc8d6ff144de7aaf5e2cdcc6f6534e7a86a7347b0a278d9f4884f2c78dac424162a353aafff183a60e868f71132be2c5b5304aeeb8
41684168 languageName : node
41694169 linkType : hard
41704170
You can’t perform that action at this time.
0 commit comments