@@ -30,7 +30,8 @@ const product = require('../product.json');
3030const shrinkwrap = require ( '../npm-shrinkwrap.json' ) ;
3131const crypto = require ( 'crypto' ) ;
3232
33- const dependencies = Object . keys ( shrinkwrap . dependencies ) . concat ( [ 'vsda' /* vsda can come in from distro build, do not remove */ ] ) ;
33+ const dependencies = Object . keys ( shrinkwrap . dependencies )
34+ . concat ( Array . isArray ( product . extraNodeModules ) ? product . extraNodeModules : [ ] ) ; // additional dependencies from our product configuration
3435const baseModules = Object . keys ( process . binding ( 'natives' ) ) . filter ( n => ! / ^ _ | \/ / . test ( n ) ) ;
3536const nodeModules = [ 'electron' , 'original-fs' ]
3637 . concat ( dependencies )
@@ -269,13 +270,7 @@ function packageTask(platform, arch, opts) {
269270 . pipe ( util . cleanNodeModule ( 'native-keymap' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ '**/*.node' ] ) )
270271 . pipe ( util . cleanNodeModule ( 'windows-foreground-love' , [ 'binding.gyp' , 'build/**' , 'src/**' ] , [ '**/*.node' ] ) )
271272 . pipe ( util . cleanNodeModule ( 'gc-signals' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ '**/*.node' , 'src/index.js' ] ) )
272- . pipe ( util . cleanNodeModule ( 'node-pty' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ 'build/Release/**' ] ) )
273- // vsda can come in from distro build, do not remove
274- . pipe ( util . cleanNodeModule ( 'vsda' , [ '**' ] , [ ( function ( ) {
275- if ( process . platform === 'win32' ) { return 'build/Release/vsda_win32.node' ; }
276- if ( process . platform === 'darwin' ) { return 'build/Release/vsda_darwin.node' ; }
277- if ( process . platform === 'linux' ) { return process . arch === 'x64' ? 'build/Release/vsda_linux64.node' : 'build/Release/vsda_linux32.node' ; }
278- } ) ( ) , 'index.js' ] ) ) ;
273+ . pipe ( util . cleanNodeModule ( 'node-pty' , [ 'binding.gyp' , 'build/**' , 'src/**' , 'deps/**' ] , [ 'build/Release/**' ] ) ) ;
279274
280275 let all = es . merge (
281276 packageJsonStream ,
0 commit comments