fix(build): tar cli (#6722)

This commit is contained in:
Junyi 2025-04-21 09:31:27 +08:00 committed by GitHub
parent 569ae3c110
commit 73956a834d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@
*/
import path from 'path';
import tar from 'tar';
import { create } from 'tar';
import fg from 'fast-glob';
import fs from 'fs-extra';
@ -38,5 +38,5 @@ export function tarPlugin(cwd: string, log: PkgLog) {
fs.mkdirpSync(path.dirname(tarball));
fs.rmSync(tarball, { force: true });
return tar.c({ gzip: true, file: tarball, cwd }, tarFiles);
return create({ gzip: true, file: tarball, cwd }, tarFiles);
}