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 {
24
24
const toLower = ( arg : string ) => arg . toLowerCase ( )
25
25
const arrayToLower = ( arg : string [ ] ) => arg . map ( toLower )
26
26
27
- const nodejsPlatformTypes = [
27
+ const nodejsPlatformTypes = new Set ( [
28
28
'javascript' ,
29
29
'js' ,
30
30
'nodejs' ,
@@ -33,7 +33,7 @@ const nodejsPlatformTypes = [
33
33
'ts' ,
34
34
'tsx' ,
35
35
'typescript'
36
- ]
36
+ ] )
37
37
38
38
const yargsConfig = {
39
39
configuration : {
@@ -168,7 +168,7 @@ export const cdxgen: CliSubcommand = {
168
168
let cleanupPackageLock = false
169
169
if (
170
170
yargv . type !== 'yarn' &&
171
- nodejsPlatformTypes . includes ( yargv . type ) &&
171
+ nodejsPlatformTypes . has ( yargv . type ) &&
172
172
existsSync ( './yarn.lock' )
173
173
) {
174
174
if ( existsSync ( './package-lock.json' ) ) {
You can’t perform that action at this time.
0 commit comments