pmcf 4.9.7 → 4.9.8
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 +1 -1
- package/src/host.mjs +2 -4
- package/types/host.d.mts +11 -0
package/package.json
CHANGED
package/src/host.mjs
CHANGED
|
@@ -437,7 +437,7 @@ export class Host extends ServiceOwner {
|
|
|
437
437
|
{ dir: this.directory, pattern: "*_key" },
|
|
438
438
|
{ destination: "/etc/ssh/", mode: 0o600 }
|
|
439
439
|
),
|
|
440
|
-
new FileContentProvider(dir
|
|
440
|
+
new FileContentProvider({ dir, pattern: ["**/*", "**/.ssh/*"] })
|
|
441
441
|
],
|
|
442
442
|
outputs: this.outputs,
|
|
443
443
|
properties: {
|
|
@@ -490,7 +490,7 @@ export class Host extends ServiceOwner {
|
|
|
490
490
|
yield packageData;
|
|
491
491
|
|
|
492
492
|
if (this.extra) {
|
|
493
|
-
|
|
493
|
+
yield {
|
|
494
494
|
dir,
|
|
495
495
|
sources: [
|
|
496
496
|
new FileContentProvider({
|
|
@@ -506,8 +506,6 @@ export class Host extends ServiceOwner {
|
|
|
506
506
|
dependencies: [pkgName]
|
|
507
507
|
}
|
|
508
508
|
};
|
|
509
|
-
|
|
510
|
-
yield packageData;
|
|
511
509
|
}
|
|
512
510
|
}
|
|
513
511
|
}
|
package/types/host.d.mts
CHANGED
|
@@ -266,7 +266,18 @@ export class Host extends ServiceOwner {
|
|
|
266
266
|
requires: any[];
|
|
267
267
|
backup: string;
|
|
268
268
|
};
|
|
269
|
+
} | {
|
|
270
|
+
dir: any;
|
|
271
|
+
sources: FileContentProvider[];
|
|
272
|
+
outputs: Set<typeof import("npm-pkgbuild").DEBIAN | typeof import("npm-pkgbuild").ARCH | typeof import("npm-pkgbuild").OCI | typeof import("npm-pkgbuild").DOCKER>;
|
|
273
|
+
properties: {
|
|
274
|
+
name: string;
|
|
275
|
+
description: string;
|
|
276
|
+
access: string;
|
|
277
|
+
dependencies: string[];
|
|
278
|
+
};
|
|
269
279
|
}, void, unknown>;
|
|
270
280
|
}
|
|
271
281
|
import { ServiceOwner } from "pmcf";
|
|
282
|
+
import { FileContentProvider } from "npm-pkgbuild";
|
|
272
283
|
import { Base } from "pmcf";
|