Skip to content

Commit 40c81d6

Browse files
author
Maciej Wilczyński
committed
Copy instead of linking on Windows
1 parent 6b64c74 commit 40c81d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/layer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ function zipRequirements() {
3636
}
3737
return BbPromise.all(promises).then(() => {
3838
if (zipCachePath !== targetZipPath) {
39-
fse.symlink(zipCachePath, targetZipPath, 'file')
39+
if (process.platform === 'win32') {
40+
fse.copySync(zipCachePath, targetZipPath);
41+
} else {
42+
fse.symlink(zipCachePath, targetZipPath, 'file')
43+
}
4044
}
4145
});
4246
}

0 commit comments

Comments
 (0)