npm-pkgbuild 10.7.10 → 10.8.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/package.json +5 -5
- package/src/content/file-content-provider.mjs +1 -1
- package/src/content/node-modules-content-provider.mjs +3 -3
- package/src/content/npm-pack-content-provider.mjs +1 -1
- package/src/extract-from-package.mjs +2 -2
- package/src/npm-pkgbuild-cli.mjs +2 -2
- package/src/output/arch.mjs +10 -3
- package/src/output/debian.mjs +10 -3
- package/src/output/packager.mjs +3 -3
- package/src/output/rpm.mjs +10 -3
- package/src/package.mjs +3 -4
- package/src/publish.mjs +2 -2
- package/src/util.mjs +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.8.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"aggregate-async-iterator": "^1.1.13",
|
|
45
45
|
"commander": "^9.3.0",
|
|
46
46
|
"content-entry": "^5.0.6",
|
|
47
|
-
"content-entry-filesystem": "^5.0.
|
|
47
|
+
"content-entry-filesystem": "^5.0.7",
|
|
48
48
|
"content-entry-transform": "^1.4.7",
|
|
49
49
|
"execa": "^6.1.0",
|
|
50
50
|
"expression-expander": "^7.0.18",
|
|
51
|
-
"globby": "^13.1.
|
|
51
|
+
"globby": "^13.1.2",
|
|
52
52
|
"ini": "^3.0.0",
|
|
53
53
|
"iterable-string-interceptor": "^2.0.3",
|
|
54
54
|
"key-value-transformer": "^3.0.2",
|
|
55
|
-
"node-fetch": "^3.2.
|
|
55
|
+
"node-fetch": "^3.2.6",
|
|
56
56
|
"npm-package-walker": "^6.0.2",
|
|
57
57
|
"npm-packlist": "^5.1.0",
|
|
58
58
|
"pacote": "^13.5.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"ava": "^4.3.0",
|
|
64
64
|
"c8": "^7.11.3",
|
|
65
65
|
"documentation": "^13.2.5",
|
|
66
|
-
"semantic-release": "^19.0.
|
|
66
|
+
"semantic-release": "^19.0.3",
|
|
67
67
|
"stream-buffers": "^3.0.2"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { tmpdir, homedir } from "os";
|
|
2
|
-
import { join } from "path";
|
|
3
|
-
import { mkdtemp, readFile, writeFile } from "fs/promises";
|
|
1
|
+
import { tmpdir, homedir } from "node:os";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { mkdtemp, readFile, writeFile } from "node:fs/promises";
|
|
4
4
|
import { globby } from "globby";
|
|
5
5
|
import Arborist from "@npmcli/arborist";
|
|
6
6
|
import { parse } from "ini";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readFile } from "fs/promises";
|
|
2
|
-
import { join } from "path";
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { join } from "node:path";
|
|
3
3
|
import { packageDirectory } from "pkg-dir";
|
|
4
4
|
import { packageWalker } from "npm-package-walker";
|
|
5
5
|
import { createContext } from "expression-expander";
|
package/src/npm-pkgbuild-cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { readFileSync } from "fs";
|
|
4
|
-
import { fileURLToPath } from "url";
|
|
3
|
+
import { readFileSync } from "node:fs";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { program } from "commander";
|
|
6
6
|
import {
|
|
7
7
|
createExpressionTransformer,
|
package/src/output/arch.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { join } from "path";
|
|
2
|
-
import { createReadStream, createWriteStream } from "fs";
|
|
3
|
-
import {
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createReadStream, createWriteStream } from "node:fs";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { pipeline } from "node:stream/promises";
|
|
4
5
|
import { execa } from "execa";
|
|
5
6
|
import { EmptyContentEntry, ReadableStreamContentEntry } from "content-entry";
|
|
6
7
|
import {
|
|
@@ -155,6 +156,12 @@ package() {
|
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
158
|
|
|
159
|
+
if (options.verbose) {
|
|
160
|
+
console.log(
|
|
161
|
+
await readFile(join(staging, PKGBUILD), { encoding: "utf8" })
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
158
165
|
const makepkg = await execa("makepkg", ["-f", "-e"], {
|
|
159
166
|
cwd: staging,
|
|
160
167
|
env: { PKGDEST: destination }
|
package/src/output/debian.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { join } from "path";
|
|
2
|
-
import { createReadStream } from "fs";
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createReadStream } from "node:fs";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
3
4
|
import { execa } from "execa";
|
|
4
5
|
import {
|
|
5
6
|
EmptyContentEntry,
|
|
@@ -99,7 +100,7 @@ export class DEBIAN extends Packager {
|
|
|
99
100
|
`${packageNameMapping[name] ? packageNameMapping[name] : name} (${e})`
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
|
|
103
|
+
|
|
103
104
|
const fp = fieldProvider(properties, fields);
|
|
104
105
|
const debianControlName = "DEBIAN/control";
|
|
105
106
|
|
|
@@ -126,6 +127,12 @@ export class DEBIAN extends Packager {
|
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
|
|
130
|
+
if (options.verbose) {
|
|
131
|
+
console.log(
|
|
132
|
+
await readFile(join(staging, debianControlName), { encoding: "utf8" })
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
129
136
|
const dpkg = await execa("dpkg", ["-b", staging, destination]);
|
|
130
137
|
|
|
131
138
|
if (options.verbose) {
|
package/src/output/packager.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { join, dirname } from "path";
|
|
2
|
-
import { tmpdir } from "os";
|
|
3
|
-
import { mkdtemp, mkdir } from "fs/promises";
|
|
1
|
+
import { join, dirname } from "node:path";
|
|
2
|
+
import { tmpdir } from "node:os";
|
|
3
|
+
import { mkdtemp, mkdir } from "node:fs/promises";
|
|
4
4
|
import { analysePublish } from "../publish.mjs";
|
|
5
5
|
|
|
6
6
|
/**
|
package/src/output/rpm.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { join } from "path";
|
|
2
|
-
import { createReadStream } from "fs";
|
|
3
|
-
import {
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
import { createReadStream } from "node:fs";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { cp } from "node:fs/promises";
|
|
4
5
|
import { execa } from "execa";
|
|
5
6
|
import { EmptyContentEntry, ReadableStreamContentEntry } from "content-entry";
|
|
6
7
|
import { transform } from "content-entry-transform";
|
|
@@ -152,6 +153,12 @@ export class RPM extends Packager {
|
|
|
152
153
|
files.push(file.destination);
|
|
153
154
|
}
|
|
154
155
|
|
|
156
|
+
if (options.verbose) {
|
|
157
|
+
console.log(
|
|
158
|
+
await readFile(join(staging, specFileName), { encoding: "utf8" })
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
155
162
|
const rpmbuild = await execa("rpmbuild", [
|
|
156
163
|
"--define",
|
|
157
164
|
`_topdir ${tmpdir}`,
|
package/src/package.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { constants } from "fs";
|
|
2
|
-
import { mkdir, readFile, writeFile, copyFile } from "fs/promises";
|
|
3
|
-
import { join, dirname } from "path";
|
|
1
|
+
import { constants } from "node:fs";
|
|
2
|
+
import { mkdir, readFile, writeFile, copyFile } from "node:fs/promises";
|
|
3
|
+
import { join, dirname } from "node:path";
|
|
4
4
|
import { globbyStream } from "globby";
|
|
5
5
|
import { utf8StreamOptions } from "./util.mjs";
|
|
6
6
|
|
|
@@ -8,7 +8,6 @@ const pkgEntriesToBeRemoved = [
|
|
|
8
8
|
"version",
|
|
9
9
|
"name",
|
|
10
10
|
"dependencies",
|
|
11
|
-
|
|
12
11
|
"jspm",
|
|
13
12
|
"jsnext:main",
|
|
14
13
|
"man",
|
package/src/publish.mjs
CHANGED
package/src/util.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { join, dirname } from "path";
|
|
2
|
-
import { mkdir } from "fs/promises";
|
|
3
|
-
import { pipeline } from "stream/promises";
|
|
4
|
-
import { createWriteStream } from "fs";
|
|
1
|
+
import { join, dirname } from "node:path";
|
|
2
|
+
import { mkdir } from "node:fs/promises";
|
|
3
|
+
import { pipeline } from "node:stream/promises";
|
|
4
|
+
import { createWriteStream } from "node:fs";
|
|
5
5
|
|
|
6
6
|
export const utf8StreamOptions = { encoding: "utf8" };
|
|
7
7
|
|