mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-04 21:19:27 +08:00
fix(build): tar cli (#6722)
This commit is contained in:
parent
569ae3c110
commit
73956a834d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user