node-bin-gen 11.1.1 → 11.2.0
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/index.js +4 -4
- package/package.json +2 -3
package/index.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
import { open, unlink, mkdir, writeFile, readFile } from "node:fs/promises";
|
|
5
5
|
import { Writable, Transform } from "node:stream";
|
|
6
6
|
import { join, resolve, dirname } from "node:path";
|
|
7
|
-
import {
|
|
7
|
+
import { debuglog } from "node:util";
|
|
8
8
|
import { execFile, spawn } from "node:child_process";
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
|
|
11
11
|
import verr from "verror";
|
|
12
|
-
import
|
|
12
|
+
import rimraf from "rimraf";
|
|
13
13
|
import zlib from "zlib";
|
|
14
14
|
import yargs from "yargs";
|
|
15
15
|
|
|
@@ -17,7 +17,6 @@ const __filename = fileURLToPath(import.meta.url);
|
|
|
17
17
|
const __dirname = dirname(__filename);
|
|
18
18
|
|
|
19
19
|
const { VError } = verr;
|
|
20
|
-
const rimraf = promisify(rimrafcb);
|
|
21
20
|
|
|
22
21
|
const argparser = yargs(process.argv.slice(2));
|
|
23
22
|
argparser.option("skip-binaries", {
|
|
@@ -94,6 +93,7 @@ async function buildArchPackage(os, cpu, version, pre) {
|
|
|
94
93
|
|
|
95
94
|
debug("removing", dir);
|
|
96
95
|
await rimraf(dir, { glob: false });
|
|
96
|
+
debug("creating", dir);
|
|
97
97
|
await mkdir(dir).catch((e) => {
|
|
98
98
|
if (e.code != "EEXIST") throw e;
|
|
99
99
|
});
|
|
@@ -169,7 +169,7 @@ async function fetchManifest(version) {
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
main().catch((err) => {
|
|
172
|
-
console.warn(err
|
|
172
|
+
console.warn(err);
|
|
173
173
|
process.exit(1);
|
|
174
174
|
});
|
|
175
175
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-bin-gen",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Generate a node binary package",
|
|
5
5
|
"author": "Aria Stewart <aredridel@dinhe.net>",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"node": ">=18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"
|
|
19
|
-
"rimraf": "^3.0.0",
|
|
18
|
+
"rimraf": "^4.0.4",
|
|
20
19
|
"verror": "^1.9.0",
|
|
21
20
|
"yargs": "^17.0.1"
|
|
22
21
|
},
|