putout 35.24.0 → 35.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ChangeLog +6 -0
- package/lib/cli/get-files.js +3 -2
- package/package.json +2 -2
package/ChangeLog
CHANGED
package/lib/cli/get-files.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const {normalize} = require('node:path');
|
|
4
4
|
const {lstat} = require('node:fs/promises');
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const fastGlob = require('fast-glob');
|
|
7
7
|
const tryToCatch = require('try-to-catch');
|
|
8
8
|
|
|
9
9
|
const {getSupportedGlob} = require('./supported-files');
|
|
@@ -24,14 +24,15 @@ async function getFiles(args, options) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const globOptions = {
|
|
27
|
+
unique: true,
|
|
27
28
|
dot: true,
|
|
28
|
-
nodir: true,
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
const addExt = (options) => async function addExt(a) {
|
|
32
32
|
const [[e], files] = await Promise.all([
|
|
33
33
|
tryToCatch(lstat, a),
|
|
34
34
|
safeGlob(a, {
|
|
35
|
+
onlyFiles: false,
|
|
35
36
|
...options,
|
|
36
37
|
}),
|
|
37
38
|
]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "putout",
|
|
3
|
-
"version": "35.24.
|
|
3
|
+
"version": "35.24.1",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
|
|
@@ -195,9 +195,9 @@
|
|
|
195
195
|
"debug": "^4.1.1",
|
|
196
196
|
"deepmerge": "^4.0.0",
|
|
197
197
|
"escalade": "^3.1.1",
|
|
198
|
+
"fast-glob": "^3.2.2",
|
|
198
199
|
"find-up": "^7.0.0",
|
|
199
200
|
"fullstore": "^3.0.0",
|
|
200
|
-
"glob": "^10.3.15",
|
|
201
201
|
"goldstein": "^5.3.0",
|
|
202
202
|
"ignore": "^5.0.4",
|
|
203
203
|
"is-relative": "^1.0.0",
|