@gjsify/resolve-npm 0.39.0 → 0.41.0

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.
@@ -32,8 +32,8 @@
32
32
  // infra/gjs/framework packages that opted out of the triplet model.
33
33
  //
34
34
  // When a slot=native package is missing the corresponding `globals.mjs`
35
- // re-export file, the resolver emits a warn-once log and falls back to
36
- // `@gjsify/empty` (the current behavior) — surfacing the gap is desirable.
35
+ // re-export file, the resolver emits a warn-once log and leaves the specifier
36
+ // alone — surfacing the gap without gutting the bundle (see `case 'native'`).
37
37
  //
38
38
  // ── Platform-entry routing (ADR 0014) ──────────────────────────────────────
39
39
  //
@@ -403,11 +403,18 @@ function resolveSlot(rec, target) {
403
403
  if (rec.hasGlobals) {
404
404
  return `${rec.name}/globals`;
405
405
  }
406
+ // No `globals.mjs` behind the promise. Routing to `@gjsify/empty` here
407
+ // was the same MISSING_EXPORT mistake the `none` case below documents,
408
+ // and it cost more: every `packages/nativescript-bridge/*` package is
409
+ // in this state, so `--app nativescript` could not build ANY of them,
410
+ // unnoticed because no CI job built them (`tests/e2e/ns-bridge-bundles`).
411
+ // The warn-once stays — the DECLARATION is still wrong, and settling
412
+ // that vocabulary is its own change (`status/open-todos.md`).
406
413
  warnOnce(
407
414
  `${rec.name}-${target}-native-missing-globals`,
408
- `${rec.name} declares runtimes.${target}="native" but ships no globals.mjs — falling back to @gjsify/empty for --app ${target} builds.`,
415
+ `${rec.name} declares runtimes.${target}="native" but ships no globals.mjs — resolving it normally for --app ${target} builds.`,
409
416
  );
410
- return '@gjsify/empty';
417
+ return null;
411
418
  case 'none':
412
419
  // Intentionally no rewrite. The original draft routed `none` to
413
420
  // `@gjsify/empty` (idea: shrink GJS-only polyfills out of Node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/resolve-npm",
3
- "version": "0.39.0",
3
+ "version": "0.41.0",
4
4
  "description": "Resolve NPM package aliases",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",