This commit is contained in:
jack zhang 2024-06-25 11:50:40 +08:00 committed by GitHub
parent 9daf893704
commit 1f05006e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,5 +37,6 @@ export function tarPlugin(cwd: string, log: PkgLog) {
const tarFiles = fg.sync(files, { cwd });
fs.mkdirpSync(path.dirname(tarball));
fs.rmSync(tarball, { force: true });
return tar.c({ gzip: true, file: tarball, cwd }, tarFiles);
}