diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-12-11 23:08:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-11 23:08:26 +0900 |
| commit | 8e6fffee68cfa36f66c0e10f84f159d1ade72e70 (patch) | |
| tree | 1ec8cbb51dd86ae344b7dffc564a5cf1cd259032 /scripts | |
| parent | fix(sw): オフライン時のfetch timeout処理を実装 (#16952) (diff) | |
| download | misskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.tar.gz misskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.tar.bz2 misskey-8e6fffee68cfa36f66c0e10f84f159d1ade72e70.zip | |
enhance: use native glob (#16965)
* enhance: use native glob
* remove tiny-glob
* remove fast-glob
* refactor
* fix: use async glob if possible
---------
Co-authored-by: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/tarball.mjs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/tarball.mjs b/scripts/tarball.mjs index fddbe3b04a..d1fe4de4f5 100644 --- a/scripts/tarball.mjs +++ b/scripts/tarball.mjs @@ -3,11 +3,10 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { createWriteStream } from 'node:fs'; +import { createWriteStream, promises as fsp } 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 await (const entry of fsp.glob(patterns, { cwd, ignore, dot: true })) { pack.add(entry); } |