memorizz 0.9.0 → 0.10.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/bin/memorizz.js +4 -2
- package/package.json +1 -1
package/bin/memorizz.js
CHANGED
|
@@ -74,12 +74,14 @@ function findCompatibleCliOnPath() {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
const args = process.argv.slice(2);
|
|
77
|
+
// The Python CLI must upgrade this wrapper as well as its pinned uv runtime.
|
|
78
|
+
const childEnv = { ...process.env, MEMORIZZ_INSTALL_METHOD: "npm" };
|
|
77
79
|
const uv = findExe("uv");
|
|
78
80
|
const exe = (uv && findUvManagedCli(uv)) || findCompatibleCliOnPath();
|
|
79
81
|
|
|
80
82
|
let res;
|
|
81
83
|
if (exe) {
|
|
82
|
-
res = spawnSync(exe, args, { stdio: "inherit" });
|
|
84
|
+
res = spawnSync(exe, args, { stdio: "inherit", env: childEnv });
|
|
83
85
|
} else {
|
|
84
86
|
if (!uv) {
|
|
85
87
|
process.stderr.write(
|
|
@@ -92,7 +94,7 @@ if (exe) {
|
|
|
92
94
|
res = spawnSync(
|
|
93
95
|
uv,
|
|
94
96
|
["tool", "run", "--python", PYTHON_VERSION, "--from", PACKAGE_SPEC, "memorizz", ...args],
|
|
95
|
-
{ stdio: "inherit" }
|
|
97
|
+
{ stdio: "inherit", env: childEnv }
|
|
96
98
|
);
|
|
97
99
|
}
|
|
98
100
|
|
package/package.json
CHANGED