fix #1860 - Cannot find module for any node_modules

When running on windows, 'UNIX' was incorrectly being passed into jszip as the host platform which causes it to generate a zip file which lambda doesn't unpack properly. ( I think its the \ vs / thing  - the zip file looks correct when I open it in a gui tool, but using unpack unpacks a bunch of files with '\' in the filename and no actual folder structure )
This commit is contained in:
Andrew McDonald 2016-08-15 11:41:22 -07:00
parent a7235446ad
commit fa2088808b

View File

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