Copy the npmrc for the app bundling too.

To ensure we get the Electron binaries.
This commit is contained in:
joshaber 2016-06-22 15:10:15 -04:00
parent 7e2703ff88
commit 2d58f51ecc

View file

@ -69,6 +69,8 @@ packager(options, (error, appPaths) => {
})
function installDependencies () {
fs.copySync(path.join(projectRoot, '.npmrc'), path.join(buildRoot, '.npmrc'))
let packageJson = appPackage
if (process.env.NODE_ENV === 'development') {
packageJson = debugPackageJson(packageJson)