Merge pull request #1863 from bfhobbes/fix-issue-1860-bad-zipi-when-deploying-from-windows

fix #1860 - Cannot find module for any node_modules
This commit is contained in:
Florian Motlik 2016-08-18 09:48:37 +02:00 committed by GitHub
commit f8ee88be0d

View File

@ -51,8 +51,8 @@ module.exports = {
}
});
const platformName = ['UNIX', 'DOS'].indexOf(process.platform) !== -1 ? process.platform :
'UNIX';
const platformName = ['UNIX', 'DOS', 'win32'].indexOf(process.platform) !== -1 ?
process.platform : 'UNIX';
return zip.generateAsync({
type: 'nodebuffer',