Skip to content

Commit

Permalink
- fix bug: srcdir contain keywrods that are filtered out, making a…
Browse files Browse the repository at this point in the history
… empty lib folder.

   - 1.1.10 patched `srcdir` however the result still get blocked by filter rules of `copySync`.
 - bump version
  • Loading branch information
zbryikt committed Dec 16, 2022
1 parent 4dea670 commit f18db70
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Logs

## v1.1.11

- fix bug: `srcdir` contain keywrods that are filtered out, making a empty lib folder.
- 1.1.10 patched `srcdir` however the result still get blocked by filter rules of `copySync`.


## v1.1.10

- fix bug: `srcdir` contain keywrods that are filtered out, making a empty lib folder.
Expand Down
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ cmds['default'] = {
fsExtra.copySync(srcdir, desdir, {
dereference: true,
filter: function(it){
return !/.+\/node_modules|\/\.git/.exec(it);
return !/.+[^.]\/node_modules|\/\.git/.exec(it);
}
});
}
Expand Down
5 changes: 4 additions & 1 deletion lib/main.ls
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ cmds.default =
else
fs-extra.copy-sync(
srcdir, desdir,
{dereference: true, filter: -> !/.+\/node_modules|\/\.git/.exec(it)}
# for parent node_modules, there will always be a dot before `node_modules`.
# but we want to remove files under `node_modules` inside srcdir,
# which will be `/[^.]/node_modules`
{dereference: true, filter: -> !/.+[^.]\/node_modules|\/\.git/.exec(it)}
)

p = Promise.resolve!then -> console.log " -- #srcdir -> #desdir "
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"cli.js"
],
"description": "Frontend dependency installer",
"version": "1.1.10",
"version": "1.1.11",
"homepage": "https://github.com/plotdb/fedep",
"repository": {
"type": "git",
Expand Down

0 comments on commit f18db70

Please sign in to comment.