Skip to content

Commit 8c9b9df

Browse files
committed
Build: Pass --omit='' to npm install in build-download
Since the builder sets `NODE_ENV=production`, when running `npm install` inside `node_modules/download.jqueryui.com`, we need to set `--omit=''` explicitly or it'd skip installing dev dependencies.
1 parent 8beb542 commit 8c9b9df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Gruntfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ grunt.registerTask( "build-download", function() {
6666
grunt.log.writeln( "Initializing download module, might take a while..." );
6767
// TODO: Prefer --omit=dev but can't because `grunt prepare` runs grunt-check-modules,
6868
// which fails if a dev dependency is missing.
69-
exec( "npm install", {
69+
// Since the builder sets `NODE_ENV=production`, we need to set `--omit=''` explicitly
70+
// or it'd skip installing dev dependencies.
71+
exec( "npm install --omit=''", {
7072
cwd: "node_modules/download.jqueryui.com"
7173
}, function( error, stdout, stderr ) {
7274
if ( error ) {
@@ -87,7 +89,7 @@ grunt.registerTask( "build-download", function() {
8789
writeFiles();
8890
done();
8991
});
90-
})
92+
});
9193
});
9294

9395
// Build demos

0 commit comments

Comments
 (0)