@baselane/materialize 0.1.0 → 0.1.1
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/dist/manifest-io.js +2 -2
- package/package.json +8 -5
package/dist/manifest-io.js
CHANGED
|
@@ -2,7 +2,7 @@ import { mkdir, readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
|
2
2
|
import { randomBytes } from "node:crypto";
|
|
3
3
|
import { hostname, homedir } from "node:os";
|
|
4
4
|
import { basename, dirname, join, resolve } from "node:path";
|
|
5
|
-
import { LEGACY_MANIFEST_PATH, MANIFEST_PATH, validateManifest } from "@baselane/packs";
|
|
5
|
+
import { LEGACY_MANIFEST_PATH, MANIFEST_PATH, serializeManifest, validateManifest } from "@baselane/packs";
|
|
6
6
|
export function targetLocation(opts) {
|
|
7
7
|
if (opts.global) {
|
|
8
8
|
const home = opts.homeDir ?? homedir();
|
|
@@ -58,7 +58,7 @@ export async function writeManifestFile(manifestPath, manifest) {
|
|
|
58
58
|
await mkdir(dirname(manifestPath), { recursive: true });
|
|
59
59
|
// Randomized suffix: two concurrent writers (e.g. install + agent sync) never collide on the same tmp path.
|
|
60
60
|
const tmp = `${manifestPath}.${randomBytes(6).toString("hex")}.tmp`;
|
|
61
|
-
await writeFile(tmp,
|
|
61
|
+
await writeFile(tmp, serializeManifest(manifest), "utf8");
|
|
62
62
|
try {
|
|
63
63
|
await rename(tmp, manifestPath);
|
|
64
64
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baselane/materialize",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Disk-reconcile and install engine (plan/apply/receipt/settings-merge/manifest-io/resolve/install) shared by the baselane CLI and desktop agent.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/baselane-sh/baselane.git",
|
|
11
11
|
"directory": "packages/materialize"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://baselane
|
|
13
|
+
"homepage": "https://github.com/baselane-sh/baselane",
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/",
|
|
16
16
|
"README.md"
|
|
@@ -19,14 +19,17 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@baselane/packs": "0.1.
|
|
23
|
-
"@baselane/distribute": "0.1.
|
|
22
|
+
"@baselane/packs": "0.1.1",
|
|
23
|
+
"@baselane/distribute": "0.1.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^24.0.0",
|
|
27
27
|
"typescript": "^5.9.0",
|
|
28
28
|
"vitest": "^2.0.0"
|
|
29
29
|
},
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/baselane-sh/baselane/issues"
|
|
32
|
+
},
|
|
30
33
|
"scripts": {
|
|
31
34
|
"test": "vitest run",
|
|
32
35
|
"typecheck": "tsc --noEmit",
|