build(#10336): use fast-glob
This commit is contained in:
parent
8b30a0d641
commit
fc76829eb4
|
@ -1,10 +1,9 @@
|
||||||
import { existsSync, readFileSync } from 'node:fs';
|
import { existsSync, readFileSync } from 'node:fs';
|
||||||
import { writeFile } from 'node:fs/promises';
|
import { writeFile } from 'node:fs/promises';
|
||||||
import { basename, dirname } from 'node:path/posix';
|
import { basename, dirname } from 'node:path/posix';
|
||||||
import { promisify } from 'node:util';
|
|
||||||
import { GENERATOR, type State, generate } from 'astring';
|
import { GENERATOR, type State, generate } from 'astring';
|
||||||
import type * as estree from 'estree';
|
import type * as estree from 'estree';
|
||||||
import glob from 'glob';
|
import glob from 'fast-glob';
|
||||||
import { format } from 'prettier';
|
import { format } from 'prettier';
|
||||||
|
|
||||||
interface SatisfiesExpression extends estree.BaseExpression {
|
interface SatisfiesExpression extends estree.BaseExpression {
|
||||||
|
@ -617,7 +616,7 @@ function toStories(component: string): string {
|
||||||
}
|
}
|
||||||
|
|
||||||
// promisify(glob)('src/{components,pages,ui,widgets}/**/*.vue').then(
|
// promisify(glob)('src/{components,pages,ui,widgets}/**/*.vue').then(
|
||||||
promisify(glob)('src/components/global/**/*.vue').then(
|
glob('src/components/global/**/*.vue').then(
|
||||||
(components) =>
|
(components) =>
|
||||||
Promise.all(
|
Promise.all(
|
||||||
components.map((component) => {
|
components.map((component) => {
|
||||||
|
|
|
@ -94,7 +94,6 @@
|
||||||
"@testing-library/vue": "^6.6.1",
|
"@testing-library/vue": "^6.6.1",
|
||||||
"@types/escape-regexp": "0.0.1",
|
"@types/escape-regexp": "0.0.1",
|
||||||
"@types/estree": "^1.0.0",
|
"@types/estree": "^1.0.0",
|
||||||
"@types/glob": "^8.1.0",
|
|
||||||
"@types/gulp": "4.0.10",
|
"@types/gulp": "4.0.10",
|
||||||
"@types/gulp-rename": "2.0.1",
|
"@types/gulp-rename": "2.0.1",
|
||||||
"@types/matter-js": "0.18.2",
|
"@types/matter-js": "0.18.2",
|
||||||
|
@ -120,7 +119,7 @@
|
||||||
"eslint": "8.37.0",
|
"eslint": "8.37.0",
|
||||||
"eslint-plugin-import": "2.27.5",
|
"eslint-plugin-import": "2.27.5",
|
||||||
"eslint-plugin-vue": "9.10.0",
|
"eslint-plugin-vue": "9.10.0",
|
||||||
"glob": "^9.3.2",
|
"fast-glob": "^3.2.12",
|
||||||
"happy-dom": "8.9.0",
|
"happy-dom": "8.9.0",
|
||||||
"msw": "^1.1.0",
|
"msw": "^1.1.0",
|
||||||
"msw-storybook-addon": "^1.8.0",
|
"msw-storybook-addon": "^1.8.0",
|
||||||
|
|
Loading…
Reference in New Issue