@nocobase/build 1.6.21 → 1.6.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/tarPlugin.js +2 -2
- package/package.json +3 -3
package/lib/tarPlugin.js
CHANGED
|
@@ -31,7 +31,7 @@ __export(tarPlugin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(tarPlugin_exports);
|
|
33
33
|
var import_path = __toESM(require("path"));
|
|
34
|
-
var import_tar =
|
|
34
|
+
var import_tar = require("tar");
|
|
35
35
|
var import_fast_glob = __toESM(require("fast-glob"));
|
|
36
36
|
var import_fs_extra = __toESM(require("fs-extra"));
|
|
37
37
|
var import_constant = require("./constant");
|
|
@@ -50,7 +50,7 @@ function tarPlugin(cwd, log) {
|
|
|
50
50
|
const tarFiles = import_fast_glob.default.sync(files, { cwd });
|
|
51
51
|
import_fs_extra.default.mkdirpSync(import_path.default.dirname(tarball));
|
|
52
52
|
import_fs_extra.default.rmSync(tarball, { force: true });
|
|
53
|
-
return import_tar.
|
|
53
|
+
return (0, import_tar.create)({ gzip: true, file: tarball, cwd }, tarFiles);
|
|
54
54
|
}
|
|
55
55
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
56
|
0 && (module.exports = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/build",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.22",
|
|
4
4
|
"description": "Library build tool based on rollup.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"postcss-preset-env": "^9.1.2",
|
|
40
40
|
"react-imported-component": "^6.5.4",
|
|
41
41
|
"style-loader": "^3.3.3",
|
|
42
|
-
"tar": "^
|
|
42
|
+
"tar": "^7.4.3",
|
|
43
43
|
"tsup": "8.2.4",
|
|
44
44
|
"typescript": "5.1.3",
|
|
45
45
|
"update-notifier": "3.0.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "321c0effa18670c0c3edfa09c79d535351ef2b0d"
|
|
55
55
|
}
|