npm-pkgbuild 7.3.2 → 7.3.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "7.3.2",
3
+ "version": "7.3.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,9 +40,9 @@
40
40
  "dependencies": {
41
41
  "aggregate-async-iterator": "^1.1.7",
42
42
  "commander": "^8.3.0",
43
- "content-entry": "^2.7.1",
44
- "content-entry-filesystem": "^3.0.1",
45
- "execa": "^5.1.1",
43
+ "content-entry": "^2.9.6",
44
+ "content-entry-filesystem": "^3.1.9",
45
+ "execa": "^6.0.0",
46
46
  "expression-expander": "^7.0.9",
47
47
  "globby": "^12.0.2",
48
48
  "iterable-string-interceptor": "^1.0.8",
@@ -55,11 +55,11 @@
55
55
  "ava": "^3.15.0",
56
56
  "c8": "^7.10.0",
57
57
  "documentation": "^13.2.5",
58
- "semantic-release": "^18.0.0",
58
+ "semantic-release": "^18.0.1",
59
59
  "stream-buffers": "^3.0.2"
60
60
  },
61
61
  "engines": {
62
- "node": ">=16.12.0"
62
+ "node": ">=16.13.0"
63
63
  },
64
64
  "repository": {
65
65
  "type": "git",
@@ -3,16 +3,18 @@ import { tmpdir } from "os";
3
3
  import { createWriteStream } from "fs";
4
4
  import { mkdtemp, mkdir, chmod } from "fs/promises";
5
5
  import { pipeline } from "stream/promises";
6
- import execa from "execa";
6
+ import execa } from "execa";
7
7
  import { EmptyContentEntry } from "content-entry";
8
8
  import { Packager } from "./packager.mjs";
9
9
  import { keyValueTransformer } from "../key-value-transformer.mjs";
10
10
 
11
+ const executableAttributes = { chmod: "0775" };
12
+
11
13
  const permissions = {
12
- "DEBIAN/preinst": { chmod: "0775" },
13
- "DEBIAN/postinst": { chmod: "0775" },
14
- "DEBIAN/prerm": { chmod: "0775" },
15
- "DEBIAN/postrm": { chmod: "0775" }
14
+ "DEBIAN/preinst": executableAttributes,
15
+ "DEBIAN/postinst": executableAttributes,
16
+ "DEBIAN/prerm": executableAttributes,
17
+ "DEBIAN/postrm": executableAttributes
16
18
  };
17
19
 
18
20
  export class Deb extends Packager {
@@ -68,8 +70,9 @@ export class Deb extends Packager {
68
70
  if (entry.name === "DEBIAN/control") {
69
71
  debianControlEntry = entry;
70
72
  } else {
73
+ console.log("ENTRY", entry.name, entry.basename);
71
74
  await pipeline(
72
- await entry.getReadStream(),
75
+ await entry.readStream,
73
76
  createWriteStream(destName)
74
77
  );
75
78
 
@@ -94,7 +97,7 @@ export class Deb extends Packager {
94
97
 
95
98
  await pipeline(
96
99
  keyValueTransformer(
97
- await debianControlEntry.getReadStream(),
100
+ await debianControlEntry.readStream,
98
101
  controlProperties
99
102
  ),
100
103
  createWriteStream(destName)
@@ -3,7 +3,7 @@ import { tmpdir } from "os";
3
3
  import { finished } from "stream";
4
4
  import { promisify } from "util";
5
5
  import { mkdtemp, mkdir, chmod } from "fs/promises";
6
- import execa from "execa";
6
+ import execa } from "execa";
7
7
  import { Packager } from "./packager.mjs";
8
8
  import { quote } from "../util.mjs";
9
9