We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dac470 commit 0bb92bcCopy full SHA for 0bb92bc
src/cfg-resolve.js
@@ -3,6 +3,7 @@ import {cosmiconfigSync} from 'cosmiconfig';
3
import toCamelCase from 'to-camel-case';
4
import mergeOptions from 'merge-options';
5
import normalizePath from 'normalize-path';
6
+import fg from 'fast-glob';
7
8
export default ({input, flags = {}}) => {
9
const explorer = cosmiconfigSync('posthtml');
@@ -95,7 +96,7 @@ export default ({input, flags = {}}) => {
95
96
output = normalizePath(output);
97
}
98
- skip = skip.map(file => normalizePath(path.join(path.resolve(root), file)));
99
+ skip = fg.sync(skip, {cwd: path.resolve(root)}).map(file => normalizePath(path.join(path.resolve(root), file)));
100
101
return mergeOptions(config ?? {}, {
102
input,
0 commit comments