@pulse-editor/cli 0.1.14 → 0.1.15
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.
|
@@ -49,7 +49,16 @@ export async function loadPulseConfig() {
|
|
|
49
49
|
recursive: true,
|
|
50
50
|
force: true,
|
|
51
51
|
});
|
|
52
|
-
|
|
52
|
+
const config = mod.default;
|
|
53
|
+
// Always use the version from package.json as the source of truth
|
|
54
|
+
const pkgJsonPath = path.join(projectDirName, "package.json");
|
|
55
|
+
if (existsSync(pkgJsonPath)) {
|
|
56
|
+
const pkg = JSON.parse(await fs.readFile(pkgJsonPath, "utf-8"));
|
|
57
|
+
if (pkg.version) {
|
|
58
|
+
config.version = pkg.version;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return config;
|
|
53
62
|
}
|
|
54
63
|
export function getLocalNetworkIP() {
|
|
55
64
|
const interfaces = networkInterfaces();
|