mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
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:
parent
a7235446ad
commit
fa2088808b
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user