npm-pkgbuild 15.1.1 → 15.1.2
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": "15.1.
|
|
3
|
+
"version": "15.1.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"uti": "^8.4.1"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@types/node": "^20.11.
|
|
76
|
+
"@types/node": "^20.11.28",
|
|
77
77
|
"ava": "^6.1.2",
|
|
78
78
|
"c8": "^9.1.0",
|
|
79
79
|
"documentation": "^14.0.3",
|
|
80
|
-
"semantic-release": "^23.0.
|
|
80
|
+
"semantic-release": "^23.0.4",
|
|
81
81
|
"stream-buffers": "^3.0.2",
|
|
82
82
|
"typescript": "^5.4.2"
|
|
83
83
|
},
|
|
@@ -354,16 +354,6 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
354
354
|
properties: context.expand(properties)
|
|
355
355
|
};
|
|
356
356
|
|
|
357
|
-
/*
|
|
358
|
-
console.log(
|
|
359
|
-
"RESULT",
|
|
360
|
-
result.variant,
|
|
361
|
-
result.properties,
|
|
362
|
-
sources.map(s => s.toString()).join("\n"),
|
|
363
|
-
output,
|
|
364
|
-
arch
|
|
365
|
-
);*/
|
|
366
|
-
|
|
367
357
|
function* forEachOutput(result) {
|
|
368
358
|
if (Object.entries(result.output).length === 0) {
|
|
369
359
|
yield result;
|
|
@@ -389,7 +379,7 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
389
379
|
}, []);
|
|
390
380
|
}
|
|
391
381
|
|
|
392
|
-
|
|
382
|
+
const outputResult = {
|
|
393
383
|
...result,
|
|
394
384
|
variant: { ...result.variant, output: name },
|
|
395
385
|
output: { [name]: output },
|
|
@@ -404,6 +394,17 @@ export async function* extractFromPackage(options = {}, env = {}) {
|
|
|
404
394
|
...output.properties
|
|
405
395
|
}
|
|
406
396
|
};
|
|
397
|
+
|
|
398
|
+
/*
|
|
399
|
+
console.log(
|
|
400
|
+
"RESULT",
|
|
401
|
+
outputResult.variant,
|
|
402
|
+
outputResult.properties,
|
|
403
|
+
sources.map(s => s.toString()).join("\n"),
|
|
404
|
+
outputResult.output
|
|
405
|
+
);*/
|
|
406
|
+
|
|
407
|
+
yield outputResult;
|
|
407
408
|
}
|
|
408
409
|
}
|
|
409
410
|
|
package/src/output/docker.mjs
CHANGED
|
@@ -72,7 +72,7 @@ export class DOCKER extends Packager {
|
|
|
72
72
|
dependencies,
|
|
73
73
|
options,
|
|
74
74
|
publishingDetails,
|
|
75
|
-
expander
|
|
75
|
+
expander
|
|
76
76
|
) {
|
|
77
77
|
const { properties, staging } = await this.prepare(options, publishingDetails);
|
|
78
78
|
|
|
@@ -97,7 +97,7 @@ export class DOCKER extends Packager {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
async function* trailingLines() {
|
|
100
|
-
yield `WORKDIR ${properties.workdir}\n`;
|
|
100
|
+
yield `WORKDIR ${expander(properties.workdir)}\n`;
|
|
101
101
|
yield "COPY . .\n";
|
|
102
102
|
if (properties.entrypoints) {
|
|
103
103
|
yield `ENTRYPOINT ["node", "${
|
|
@@ -36,7 +36,7 @@ export class DOCKER extends Packager {
|
|
|
36
36
|
static prepare(options: any, variant: {
|
|
37
37
|
arch: string;
|
|
38
38
|
}): Promise<boolean>;
|
|
39
|
-
create(sources: any, transformer: any, dependencies: any, options: any, publishingDetails: any, expander
|
|
39
|
+
create(sources: any, transformer: any, dependencies: any, options: any, publishingDetails: any, expander: any): Promise<string>;
|
|
40
40
|
publish(artifact: any, publishingDetails: any, properties: any, logger?: {
|
|
41
41
|
(...data: any[]): void;
|
|
42
42
|
(message?: any, ...optionalParams: any[]): void;
|