@xemahq/repo-build-tooling 0.3.0 → 0.4.0
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": "@xemahq/repo-build-tooling",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Dev-time build tooling shared by every Xema repository. Ships as plain ESM with zero dependencies so the published artifact is the reviewed source.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Neuralchowder Inc. <developer@xema.dev> (https://xema.dev)",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
39
39
|
import { execFileSync } from 'node:child_process';
|
|
40
40
|
import { existsSync, readFileSync, realpathSync } from 'node:fs';
|
|
41
|
-
import { join
|
|
41
|
+
import { join } from 'node:path';
|
|
42
42
|
import { pathToFileURL } from 'node:url';
|
|
43
43
|
|
|
44
44
|
const DEP_FIELDS = ['dependencies', 'devDependencies', 'peerDependencies'];
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// `node_modules/` but leaves the SECOND one inside the path,
|
|
27
27
|
// producing leaked emits like:
|
|
28
28
|
//
|
|
29
|
-
// require("@xemahq/
|
|
29
|
+
// require("@xemahq/contracts/policy/node_modules/
|
|
30
30
|
// @xemahq/kernel-contracts/execution-context/dist/lib/subject")
|
|
31
31
|
//
|
|
32
32
|
// …which crashes the pod at boot with ERR_PACKAGE_PATH_NOT_EXPORTED
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
// via `@ApiProperty({ enum: ... })`, the plugin emits the
|
|
39
39
|
// declaration file path under the package's published layout:
|
|
40
40
|
//
|
|
41
|
-
// require("@xemahq/
|
|
41
|
+
// require("@xemahq/contracts/capability/dist/lib/capability-grant")
|
|
42
42
|
//
|
|
43
43
|
// This crashes at boot with the same ERR_PACKAGE_PATH_NOT_EXPORTED
|
|
44
44
|
// whenever the contracts package's published `exports` map does NOT
|
|
@@ -628,7 +628,7 @@ async function selfTest() {
|
|
|
628
628
|
throw new Error(`self-test: detector missed the ${shape} shape: ${literal}`);
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
|
-
const clean = 'require("@xemahq/
|
|
631
|
+
const clean = 'require("@xemahq/contracts");require("./local");require("../shared/util");';
|
|
632
632
|
if (findLeaks(clean).length !== 0) {
|
|
633
633
|
throw new Error(`self-test: detector matched clean output: ${JSON.stringify(findLeaks(clean))}`);
|
|
634
634
|
}
|