File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const {
2424const toLower = ( arg : string ) => arg . toLowerCase ( )
2525const arrayToLower = ( arg : string [ ] ) => arg . map ( toLower )
2626
27- const nodejsPlatformTypes = [
27+ const nodejsPlatformTypes = new Set ( [
2828 'javascript' ,
2929 'js' ,
3030 'nodejs' ,
@@ -33,7 +33,7 @@ const nodejsPlatformTypes = [
3333 'ts' ,
3434 'tsx' ,
3535 'typescript'
36- ]
36+ ] )
3737
3838const yargsConfig = {
3939 configuration : {
@@ -168,7 +168,7 @@ export const cdxgen: CliSubcommand = {
168168 let cleanupPackageLock = false
169169 if (
170170 yargv . type !== 'yarn' &&
171- nodejsPlatformTypes . includes ( yargv . type ) &&
171+ nodejsPlatformTypes . has ( yargv . type ) &&
172172 existsSync ( './yarn.lock' )
173173 ) {
174174 if ( existsSync ( './package-lock.json' ) ) {
You can’t perform that action at this time.
0 commit comments