Skip to content

Commit abd996c

Browse files
committed
fix: Ensure dot-file matching with micromatch
Fixes update issues with .library
1 parent 83b7ccc commit abd996c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

packages/fs/lib/adapters/AbstractAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class AbstractAdapter extends AbstractReaderWriter {
9696
* @returns {boolean} True if path is excluded, otherwise false
9797
*/
9898
_isPathExcluded(virPath) {
99-
return micromatch(virPath, this._excludes).length > 0;
99+
return micromatch(virPath, this._excludes, {dot: true}).length > 0;
100100
}
101101

102102
/**

packages/project/lib/build/cache/ResourceRequestManager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ class ResourceRequestManager {
274274
matchedResources.push(value);
275275
}
276276
} else {
277-
const globMatches = micromatch(resourcePaths, value);
277+
const globMatches = micromatch(resourcePaths, value, {
278+
dot: true
279+
});
278280
for (const match of globMatches) {
279281
if (!matchedResources.includes(match)) {
280282
matchedResources.push(match);

0 commit comments

Comments
 (0)