@1agh/maude 0.18.1 → 0.18.2
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.
|
@@ -67,19 +67,14 @@ function isVirtualBunfsPath(p: string | null): boolean {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
function isDevServerDir(dir: string): boolean {
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
// package.json
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const text = require('node:fs').readFileSync(pkgPath, 'utf8') as string;
|
|
79
|
-
return /"@maude\/dev-server"/.test(text);
|
|
80
|
-
} catch {
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
70
|
+
// Anchor: http.ts is the route-table file — unique enough to identify the
|
|
71
|
+
// dev-server install dir. We do NOT also require package.json: npm excludes
|
|
72
|
+
// nested workspace package.json files from tarballs by default, so checking
|
|
73
|
+
// for it caused walk-up to silently fall through to /$bunfs/root for every
|
|
74
|
+
// npm-installed user. Discovered in v0.18.1 retro. Process.execPath walk-up
|
|
75
|
+
// only traverses node_modules layers above the binary, so false-match risk
|
|
76
|
+
// from a stray http.ts file in the user's working tree is negligible.
|
|
77
|
+
return existsSync(join(dir, 'http.ts'));
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
function resolveDevServerRoot(): string {
|