@bakers-build/core 0.11.1-next.5 → 0.11.1-next.7
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.
|
@@ -7,9 +7,14 @@ export function cliRootOf(a, b, home) {
|
|
|
7
7
|
while (i < x.length && x[i] === y[i])
|
|
8
8
|
i++;
|
|
9
9
|
let cliRoot = x.slice(0, i).join(sep) || sep;
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const marker = `${sep}node_modules`;
|
|
11
|
+
const first = cliRoot.indexOf(marker);
|
|
12
|
+
const last = cliRoot.lastIndexOf(marker);
|
|
13
|
+
// A global install nests the CLI's own tree in the prefix; mounting the prefix would hide the run image's packages.
|
|
14
|
+
if (last > first && !cliRoot.includes(`${sep}.pnpm${sep}`))
|
|
15
|
+
cliRoot = cliRoot.slice(0, last);
|
|
16
|
+
else if (first >= 0)
|
|
17
|
+
cliRoot = cliRoot.slice(0, first + marker.length);
|
|
13
18
|
const rel = relative(cliRoot, home);
|
|
14
19
|
if (rel === '' || (!rel.startsWith('..') && !isAbsolute(rel)))
|
|
15
20
|
throw new Error(`runtime: the CLI build ${cliRoot} would mount ${home} into every run; install the CLI and its addons in one tree`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/core",
|
|
3
|
-
"version": "0.11.1-next.
|
|
3
|
+
"version": "0.11.1-next.7",
|
|
4
4
|
"description": "bakers.build surface-agnostic kernel: host contract, split-config helpers, addon preset/discovery machinery, shared primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"yaml": "^2.7.0"
|
|
41
41
|
},
|
|
42
42
|
"bakersBuild": {
|
|
43
|
-
"commit": "
|
|
43
|
+
"commit": "9f305d0873788b79f7af9e8eb650eb4115fa72d6",
|
|
44
44
|
"channel": "next"
|
|
45
45
|
}
|
|
46
46
|
}
|