npm-pkgbuild 22.2.3 → 22.2.5
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 +3 -4
- package/src/output/docker.mjs +4 -4
- package/src/types.mjs +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npm-pkgbuild",
|
|
3
|
-
"version": "22.2.
|
|
3
|
+
"version": "22.2.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": false
|
|
@@ -54,14 +54,13 @@
|
|
|
54
54
|
"compare-versions": "^6.1.1",
|
|
55
55
|
"content-entry": "^15.0.2",
|
|
56
56
|
"content-entry-filesystem": "^9.1.2",
|
|
57
|
-
"content-entry-transform": "^1.7.
|
|
57
|
+
"content-entry-transform": "^1.7.7",
|
|
58
58
|
"execa": "^10.0.1",
|
|
59
59
|
"ini": "^7.0.0",
|
|
60
|
-
"iterable-string-interceptor": "^3.0.8",
|
|
61
60
|
"key-value-transformer": "^3.3.2",
|
|
62
61
|
"npm-package-walker": "^8.0.11",
|
|
63
62
|
"npm-packlist": "^11.3.0",
|
|
64
|
-
"pacc": "^11.13.
|
|
63
|
+
"pacc": "^11.13.2",
|
|
65
64
|
"package-directory": "^8.2.0",
|
|
66
65
|
"pacote": "^22.0.0",
|
|
67
66
|
"picomatch": "^4.0.7",
|
package/src/output/docker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
2
|
import { readFile } from "node:fs/promises";
|
|
3
3
|
import { execa } from "execa";
|
|
4
|
-
import {
|
|
4
|
+
import { string_attribute_writable, types } from "pacc";
|
|
5
5
|
import { ContentEntry, IteratorContentEntry } from "content-entry";
|
|
6
6
|
import { transform } from "content-entry-transform";
|
|
7
7
|
import { aggregateFifo } from "aggregate-async-iterator";
|
|
@@ -64,12 +64,12 @@ export class DOCKER extends Packager {
|
|
|
64
64
|
static attributes = {
|
|
65
65
|
name: {
|
|
66
66
|
...pkgbuild_name_attribute,
|
|
67
|
-
|
|
67
|
+
type: types["lowercase-string"]
|
|
68
68
|
},
|
|
69
69
|
version: pkgbuild_version_attribute,
|
|
70
70
|
description: pkgbuild_description_attribute,
|
|
71
|
-
|
|
72
|
-
workdir: { ...
|
|
71
|
+
maintainer: { ...string_attribute_writable, name: "maintainer", externalName: "author" },
|
|
72
|
+
workdir: { ...string_attribute_writable, default: "/", mandatory: true }
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
/**
|
package/src/types.mjs
CHANGED
|
@@ -37,12 +37,10 @@ export const architecture_type = {
|
|
|
37
37
|
name: "architecture",
|
|
38
38
|
|
|
39
39
|
toInternal: (value, attribute) => {
|
|
40
|
-
// console.log("architectureType toInternal", value);
|
|
41
40
|
return value;
|
|
42
41
|
},
|
|
43
42
|
|
|
44
43
|
toExternal: (value, attribute) => {
|
|
45
|
-
// console.log("architectureType toExternal", value);
|
|
46
44
|
return attribute.mapping?.[value] ?? value;
|
|
47
45
|
}
|
|
48
46
|
};
|
|
@@ -64,7 +62,7 @@ export const pkgbuild_name_attribute = {
|
|
|
64
62
|
export const dependency_attribute_collection_writable = {
|
|
65
63
|
...string_collection_attribute_writable,
|
|
66
64
|
type: dependency_type,
|
|
67
|
-
separator:
|
|
65
|
+
separator: undefined,
|
|
68
66
|
pattern: /^[a-z_][a-z0-9_\-]*$/i
|
|
69
67
|
};
|
|
70
68
|
|