@@ -36,7 +36,7 @@ function fromLocalWebpack(extensionPath, sourceMappingURLBase) {
3636 const result = es . through ( ) ;
3737 const packagedDependencies = [ ] ;
3838 const packageJsonConfig = require ( path . join ( extensionPath , 'package.json' ) ) ;
39- if ( Array . isArray ( packageJsonConfig . dependencies ) ) {
39+ if ( packageJsonConfig . dependencies ) {
4040 const webpackRootConfig = require ( path . join ( extensionPath , 'extension.webpack.config.js' ) ) ;
4141 for ( const key in webpackRootConfig . externals ) {
4242 if ( key in packageJsonConfig . dependencies ) {
@@ -77,7 +77,7 @@ function fromLocalWebpack(extensionPath, sourceMappingURLBase) {
7777 return data ;
7878 } ) )
7979 . pipe ( packageJsonFilter . restore ) ;
80- const webpackStreams = webpackConfigLocations . map ( webpackConfigPath => {
80+ const webpackStreams = webpackConfigLocations . map ( webpackConfigPath => ( ) => {
8181 const webpackDone = ( err , stats ) => {
8282 util . log ( `Bundled extension: ${ util . colors . yellow ( path . join ( path . basename ( extensionPath ) , path . relative ( extensionPath , webpackConfigPath ) ) ) } ...` ) ;
8383 if ( err ) {
@@ -118,7 +118,7 @@ function fromLocalWebpack(extensionPath, sourceMappingURLBase) {
118118 this . emit ( 'data' , data ) ;
119119 } ) ) ;
120120 } ) ;
121- es . merge ( ... webpackStreams , patchFilesStream )
121+ es . merge ( sequence ( webpackStreams ) , patchFilesStream )
122122 // .pipe(es.through(function (data) {
123123 // // debug
124124 // console.log('out', data.path, data.contents.length);
@@ -216,10 +216,10 @@ function packageExtensionsStream(optsIn) {
216216 . filter ( ( { name } ) => excludedExtensions . indexOf ( name ) === - 1 )
217217 . filter ( ( { name } ) => opts . desiredExtensions ? opts . desiredExtensions . indexOf ( name ) >= 0 : true )
218218 . filter ( ( { name } ) => builtInExtensions . every ( b => b . name !== name ) ) ;
219- const localExtensions = ( ) => es . merge ( ...localExtensionDescriptions . map ( extension => {
220- return fromLocal ( extension . path , opts . sourceMappingURLBase )
221- . pipe ( rename ( p => p . dirname = `extensions/${ extension . name } /${ p . dirname } ` ) ) ;
222- } ) ) ;
219+ const localExtensions = ( ) => sequence ( [ ...localExtensionDescriptions . map ( extension => ( ) => {
220+ return fromLocal ( extension . path , opts . sourceMappingURLBase )
221+ . pipe ( rename ( p => p . dirname = `extensions/${ extension . name } /${ p . dirname } ` ) ) ;
222+ } ) ] ) ;
223223 const localExtensionDependencies = ( ) => gulp . src ( 'extensions/node_modules/**' , { base : '.' } ) ;
224224 const marketplaceExtensions = ( ) => es . merge ( ...builtInExtensions
225225 . filter ( ( { name } ) => opts . desiredExtensions ? opts . desiredExtensions . indexOf ( name ) >= 0 : true )
0 commit comments