pmcf 1.59.8 → 1.59.10

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": "pmcf",
3
- "version": "1.59.8",
3
+ "version": "1.59.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
39
39
  },
40
40
  "dependencies": {
41
- "npm-pkgbuild": "^17.2.4",
41
+ "npm-pkgbuild": "^17.2.5",
42
42
  "pacc": "^3.3.0",
43
43
  "pkg-dir": "^8.0.0"
44
44
  },
package/src/host.mjs CHANGED
@@ -359,6 +359,10 @@ export class Host extends Base {
359
359
  result.properties.provides = [...this.provides];
360
360
  result.properties.replaces = [`mf-${this.hostName}`, ...this.replaces];
361
361
  result.properties.backup = "root/.ssh/known_hosts";
362
+ result.properties.hooks = new URL(
363
+ "host.install",
364
+ import.meta.url
365
+ ).pathname;
362
366
 
363
367
  result.sources.push(
364
368
  new FileContentProvider(stagingDir + "/")[Symbol.asyncIterator]()
package/src/location.mjs CHANGED
@@ -96,18 +96,10 @@ export class Location extends Owner {
96
96
  new FileContentProvider(stagingDir + "/")[Symbol.asyncIterator]()
97
97
  );
98
98
 
99
- /*
100
- const install = "location.install";
101
-
102
- console.log(new URL(install, import.meta.url));
103
-
104
- await copyFile(
105
- new URL(install, import.meta.url),
106
- join(stagingDir, install)
107
- );
108
-
109
- result.properties.install = install;
110
- */
99
+ result.properties.hooks = new URL(
100
+ "location.install",
101
+ import.meta.url
102
+ ).pathname;
111
103
 
112
104
  yield result;
113
105
  }