remove fast-glob

This commit is contained in:
syuilo 2025-12-08 12:11:55 +09:00
parent 3c8448deec
commit a9de4294d2
5 changed files with 2 additions and 15 deletions

View File

@ -60,7 +60,6 @@
"cssnano": "7.1.2",
"esbuild": "0.27.0",
"execa": "9.6.0",
"fast-glob": "3.3.3",
"ignore-walk": "8.0.0",
"js-yaml": "4.1.1",
"postcss": "8.5.6",

View File

@ -56,7 +56,6 @@
"cross-env": "10.1.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-vue": "10.6.2",
"fast-glob": "3.3.3",
"happy-dom": "20.0.11",
"intersection-observer": "0.12.2",
"micromatch": "4.0.8",

View File

@ -128,7 +128,6 @@
"cypress": "15.7.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-vue": "10.6.2",
"fast-glob": "3.3.3",
"happy-dom": "20.0.11",
"intersection-observer": "0.12.2",
"micromatch": "4.0.8",

View File

@ -22,9 +22,6 @@ importers:
execa:
specifier: 9.6.0
version: 9.6.0
fast-glob:
specifier: 3.3.3
version: 3.3.3
ignore-walk:
specifier: 8.0.0
version: 8.0.0
@ -1008,9 +1005,6 @@ importers:
eslint-plugin-vue:
specifier: 10.6.2
version: 10.6.2(@stylistic/eslint-plugin@5.5.0(eslint@9.39.1))(@typescript-eslint/parser@8.48.0(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1)(vue-eslint-parser@10.2.0(eslint@9.39.1))
fast-glob:
specifier: 3.3.3
version: 3.3.3
happy-dom:
specifier: 20.0.11
version: 20.0.11
@ -1247,9 +1241,6 @@ importers:
eslint-plugin-vue:
specifier: 10.6.2
version: 10.6.2(@stylistic/eslint-plugin@5.5.0(eslint@9.39.1))(@typescript-eslint/parser@8.48.0(eslint@9.39.1)(typescript@5.9.3))(eslint@9.39.1)(vue-eslint-parser@10.2.0(eslint@9.39.1))
fast-glob:
specifier: 3.3.3
version: 3.3.3
happy-dom:
specifier: 20.0.11
version: 20.0.11

View File

@ -3,11 +3,10 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { createWriteStream } from 'node:fs';
import { createWriteStream, globSync } from 'node:fs';
import { mkdir } from 'node:fs/promises';
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import glob from 'fast-glob';
import walk from 'ignore-walk';
import { Pack } from 'tar/pack';
import meta from '../package.json' with { type: "json" };
@ -25,7 +24,7 @@ export default async function build() {
const pack = new Pack({ cwd, gzip: true });
const patterns = await walk({ path: cwd, ignoreFiles: ['.gitignore'] });
for await (const entry of glob.stream(patterns, { cwd, ignore, dot: true })) {
for (const entry of globSync(patterns, { cwd, ignore, dot: true })) {
pack.add(entry);
}