Skip to content

Commit ac4307e

Browse files
committed
fix windows copy fallback
1 parent a2bdc01 commit ac4307e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function linkRequirements() {
4343
try {
4444
fse.symlinkSync(`${requirementsDir}/${file}`, `./${file}`);
4545
} catch (exception) {
46-
if (exception.code === 'EPERM' && process.platform !== 'win32') {
46+
if (exception.code === 'EPERM' && process.platform === 'win32') {
4747
fse.copySync(`${requirementsDir}/${file}`, `./${file}`);
4848
} else {
4949
let linkDest = null;

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-python-requirements",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"engines": {
55
"node": ">=6.0"
66
},

0 commit comments

Comments
 (0)