Skip to content

Commit 5e56831

Browse files
authored
Default ignores/.exoframeignore doesn't work on Windows (#289)
* Default ignores/.exoframeignore doesn't work on Windows Closes #284
1 parent 23839ee commit 5e56831

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ dist/
1111

1212
package-lock.json
1313
exoframe.json
14+
yarn.lock

src/commands/deploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ exports.handler = async (args = {}) => {
183183
const tarStream = tar.pack(workdir, {
184184
// ignore files from ignore list
185185
ignore: name => {
186-
const relativePath = name.replace(`${workdir}/`, '');
186+
const relativePath = path.relative(workdir, name);
187187
const result = multimatch([relativePath], ignores).length !== 0;
188188
return result;
189189
},

0 commit comments

Comments
 (0)