mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 13:29:44 +00:00
bundle optional dependencies too
This commit is contained in:
parent
87b408b33b
commit
13a1295973
|
@ -183,8 +183,9 @@ function packageTask(platform, arch, opts) {
|
|||
var license = gulp.src(['Credits_*', 'LICENSE.txt', 'ThirdPartyNotices.txt'], { base: '.' });
|
||||
var api = gulp.src('src/vs/vscode.d.ts').pipe(rename('out/vs/vscode.d.ts'));
|
||||
|
||||
var depsSrc = _.flatten(Object.keys(packagejson.dependencies)
|
||||
.map(function (d) { return ['node_modules/' + d + '/**', '!node_modules/' + d + '/**/{test,tests}/**']; }));
|
||||
var depsSrc = _.flatten(Object.keys(packagejson.dependencies).concat(Object.keys(packagejson.optionalDependencies))
|
||||
.map(function (d) { return ['node_modules/' + d + '/**', '!node_modules/' + d + '/**/{test,tests}/**']; })
|
||||
);
|
||||
|
||||
var deps = gulp.src(depsSrc, { base: '.', dot: true })
|
||||
.pipe(util.cleanNodeModule('fsevents', ['binding.gyp', 'fsevents.cc', 'build/**', 'src/**', 'test/**'], true))
|
||||
|
|
Loading…
Reference in a new issue