@nodii/dev 0.6.104 → 0.6.105
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/dist/core.js +1 -1
- package/dist/doctor.js +3 -1
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -4,7 +4,7 @@ import { chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
|
4
4
|
import { homedir, platform } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const VERSION = "0.6.
|
|
7
|
+
export const VERSION = "0.6.105";
|
|
8
8
|
export const configPath = () =>
|
|
9
9
|
process.env.NODII_DEV_CONFIG_PATH ??
|
|
10
10
|
join(homedir(), ".config/nodii-dev/config.json");
|
package/dist/doctor.js
CHANGED
|
@@ -404,7 +404,9 @@ export async function doctorCommand(deps = {}) {
|
|
|
404
404
|
|
|
405
405
|
// No managed hooks means no managed copy: the hook checks above report that.
|
|
406
406
|
try {
|
|
407
|
-
|
|
407
|
+
// Someone asked now, so not the hour-old answer SessionStart can use: it would
|
|
408
|
+
// call a copy the latest release just after a new one ships.
|
|
409
|
+
const copy = await (deps.managedStatus ?? managedStatus)({ fresh: true });
|
|
408
410
|
if (copy) {
|
|
409
411
|
const extra = { cliPath: copy.cliPath, version: copy.version, latest: copy.latest };
|
|
410
412
|
if (!copy.latest) checks.push(cannot("managed_cli", `${copy.cliPath} is ${copy.version}; the latest release could not be read from npm`, extra));
|