nemoris 0.1.17 → 0.1.18
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 +1 -1
- package/src/cli-main.js +3 -2
package/package.json
CHANGED
package/src/cli-main.js
CHANGED
|
@@ -2779,8 +2779,9 @@ export async function main(argv = process.argv) {
|
|
|
2779
2779
|
// Re-read the installed package.json to get the actual new version
|
|
2780
2780
|
let newVersion;
|
|
2781
2781
|
try {
|
|
2782
|
-
const
|
|
2783
|
-
|
|
2782
|
+
const globalRoot = execSync("npm root -g", { encoding: "utf8", timeout: 5_000 }).trim();
|
|
2783
|
+
const installedPkg = JSON.parse(fs.readFileSync(path.join(globalRoot, "nemoris", "package.json"), "utf8"));
|
|
2784
|
+
newVersion = installedPkg.version || null;
|
|
2784
2785
|
} catch {
|
|
2785
2786
|
newVersion = null;
|
|
2786
2787
|
}
|