@north-light/cli 0.3.416 → 0.3.418

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.
@@ -35,6 +35,15 @@ async function main() {
35
35
  console.warn('[crtr postinstall] pi tree-root-ordering patch failed (non-fatal):', error?.message ?? error);
36
36
  }
37
37
  if (process.env.CI) return;
38
+ // A git checkout is a development tree: its `dist/` is whatever was last built
39
+ // (often stale against the dependencies just installed), and the global `crtr`
40
+ // may be linked to it. Staging it here would silently select that mix as the
41
+ // live runtime for every node on the machine. Generations from a checkout come
42
+ // only from an explicit `npm run build && npm run install-runtime`.
43
+ if (existsSync(join(ROOT, '.git'))) {
44
+ console.log('crouter source checkout installed. Run `npm run build && npm run install-runtime` to produce a runtime generation.');
45
+ return;
46
+ }
38
47
  // A published tarball always ships `dist/`; a source checkout being installed
39
48
  // never does, and its runtime generation comes from an explicit
40
49
  // `npm run build && npm run install-runtime` afterwards. Staging an unbuilt