Skip to content

Commit 98344b6

Browse files
committed
improve handling dist argument to work with node in addition to npm
1 parent aea3022 commit 98344b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function makeSchema(plotlyPath, schemaPath) {
7171
}
7272
}
7373

74-
var isDist = process.argv[2] === 'dist';
74+
var isDist = process.argv.indexOf('dist') !== -1;
7575

7676
var pathToSchema = isDist ?
7777
constants.pathToSchemaDist :

0 commit comments

Comments
 (0)