Skip to content

Commit 64a0d1a

Browse files
Update dist file
1 parent dd4dc6b commit 64a0d1a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dist/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,10 @@ function getBooleanInput(name, options) {
214214
exports.getBooleanInput = getBooleanInput;
215215
function getPathsToUpdate() {
216216
const rawPaths = core_1.getInput('file-path');
217-
return flatten(rawPaths.split(/\r?\n/).map(expandPathPattern));
217+
const allowDot = getBooleanInput('allow-dot');
218+
return flatten(rawPaths.split(/\r?\n/).map((path) => {
219+
return expandPathPattern(path, { dot: allowDot });
220+
}));
218221
}
219222
exports.getPathsToUpdate = getPathsToUpdate;
220223
function getActionOptions() {
@@ -228,10 +231,10 @@ function isNotNull(arg) {
228231
return arg !== null;
229232
}
230233
exports.isNotNull = isNotNull;
231-
function expandPathPattern(path) {
234+
function expandPathPattern(path, { dot = false }) {
232235
const pathPattern = path.trim();
233236
if (fast_glob_1.isDynamicPattern(pathPattern)) {
234-
return fast_glob_1.sync(pathPattern);
237+
return fast_glob_1.sync(pathPattern, { dot });
235238
}
236239
return [pathPattern];
237240
}

0 commit comments

Comments
 (0)