gentle-pi 0.10.5 → 0.10.6
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/extensions/pi-pretty.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { realpathSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
|
|
5
|
+
const packageJsonPath = realpathSync(
|
|
6
|
+
fileURLToPath(new URL("../package.json", import.meta.url)),
|
|
7
|
+
);
|
|
8
|
+
const requireFromRealPackage = createRequire(packageJsonPath);
|
|
9
|
+
const piPrettyModule = requireFromRealPackage("@heyhuynhgiabuu/pi-pretty");
|
|
2
10
|
|
|
3
11
|
const piPrettyExtension =
|
|
4
12
|
typeof piPrettyModule === "function"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gentle-pi",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "Turn Pi into el Gentleman: a senior-architect development harness with SDD/OpenSpec, subagents, strict TDD evidence, review guardrails, and skill discovery.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -58,3 +58,15 @@ test("package manifest installs pi-pretty through a wrapper without bundling nat
|
|
|
58
58
|
"pi-pretty must not be bundled because its native optional dependencies are platform-specific",
|
|
59
59
|
);
|
|
60
60
|
});
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
test("pi-pretty wrapper uses real package path resolution for pnpm symlink installs", () => {
|
|
64
|
+
const wrapper = readFileSync(
|
|
65
|
+
join(PACKAGE_ROOT, "extensions", "pi-pretty.ts"),
|
|
66
|
+
"utf8",
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
assert.match(wrapper, /realpathSync/);
|
|
70
|
+
assert.match(wrapper, /createRequire/);
|
|
71
|
+
assert.match(wrapper, /@heyhuynhgiabuu\/pi-pretty/);
|
|
72
|
+
});
|