@maka/maka-cli 5.81.0 → 5.81.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.81.0",
3
+ "version": "5.81.2",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1,17 +1,25 @@
1
- import { createRequire } from 'module';
2
- // Deliberately NOT named `require`: scripts/build-bundle.mjs rewrites
3
- // createRequire aliases into real bundler requires, and this file is on
4
- // its exclusion list precisely because the lookup below is dynamic.
5
- const requireFromHere = createRequire(import.meta.url);
1
+ import { readFileSync } from 'node:fs';
6
2
  function readPackageJson() {
7
- // Two depths: this file sits at src/tools/version/ in the source tree and
8
- // at bundle/typescript/src/tools/version/ once compiled, with package.json
9
- // copied alongside by the `prep` script. Both land on the same relative
10
- // path, but the second candidate keeps an unusual layout from silently
11
- // reporting 0.0.0-unknown.
3
+ // THE REQUIRE-FACTORY FROM node:module MAY NEVER APPEAR IN THIS FILE
4
+ // -- not as a call, not as an import, NOT EVEN AS A WORD IN A
5
+ // COMMENT. The maka-cli.com server evaluates the engine graph under
6
+ // the Meteor/SDK runtime, whose compile path intercepts files
7
+ // containing that token and evaluates reify-compiled CJS under
8
+ // native ESM rules -- "module is not defined in ES module scope",
9
+ // which killed every shared-run crew draft on 2026-08-30 (and, in
10
+ // hindsight, 2026-08-23). The 5.81.1 lazy-call fix was correct but
11
+ // insufficient: the TOKEN is the trigger, and the trigger may be a
12
+ // crude source scan, so the token is gone in every position. A plain
13
+ // fs read does the same job -- these lookups only ever loaded
14
+ // package.json. See cli-version.test.ts for the tripwire that keeps
15
+ // it out.
16
+ //
17
+ // Two depths: this file sits at src/tools/version/ in the source tree
18
+ // and at bundle/typescript/src/tools/version/ once compiled, with
19
+ // package.json copied alongside by the `prep` script.
12
20
  for (const rel of ['../../../package.json', '../../../../package.json']) {
13
21
  try {
14
- const pkg = requireFromHere(rel);
22
+ const pkg = JSON.parse(readFileSync(new URL(rel, import.meta.url), 'utf8'));
15
23
  if (pkg?.name === '@maka/maka-cli') {
16
24
  return pkg;
17
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cli-version.js","sourceRoot":"","sources":["../../../../../src/tools/version/cli-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAsBvC,sEAAsE;AACtE,wEAAwE;AACxE,oEAAoE;AACpE,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEvD,SAAS,eAAe;IACtB,0EAA0E;IAC1E,2EAA2E;IAC3E,wEAAwE;IACxE,uEAAuE;IACvE,2BAA2B;IAC3B,KAAK,MAAM,GAAG,IAAI,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,EAAE,CAAC;QACxE,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;YACjC,IAAI,GAAG,EAAE,IAAI,KAAK,gBAAgB,EAAE,CAAC;gBACnC,OAAO,GAAG,CAAC;YACb,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAC,wBAAwB,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,aAAiC,CAAC;AACtC,IAAI,cAAkC,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,UAAU,UAAU;IACxB,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,aAAa,GAAG,OAAO,oBAAoB,KAAK,QAAQ;YACtD,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAE,eAAe,EAAE,EAAE,OAAkB,IAAI,eAAe,CAAC;IAChE,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;;;;aAMa;AACb,MAAM,UAAU,QAAQ;IACtB,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,cAAc,GAAG,OAAO,kBAAkB,KAAK,QAAQ;YACrD,CAAC,CAAC,kBAAkB;YACpB,CAAC,CAAE,eAAe,EAAE,EAAE,YAAY,EAAE,CAAC,kBAAkB,CAAY,IAAI,QAAQ,CAAC;IACpF,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC"}
1
+ {"version":3,"file":"cli-version.js","sourceRoot":"","sources":["../../../../../src/tools/version/cli-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAsBvC,SAAS,eAAe;IACtB,qEAAqE;IACrE,8DAA8D;IAC9D,oEAAoE;IACpE,8DAA8D;IAC9D,+DAA+D;IAC/D,kEAAkE;IAClE,kEAAkE;IAClE,mEAAmE;IACnE,mEAAmE;IACnE,qEAAqE;IACrE,8DAA8D;IAC9D,oEAAoE;IACpE,UAAU;IACV,EAAE;IACF,sEAAsE;IACtE,kEAAkE;IAClE,sDAAsD;IACtD,KAAK,MAAM,GAAG,IAAI,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,EAAE,CAAC;QACxE,IAAI,CAAC;YACH,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;YAC5E,IAAI,GAAG,EAAE,IAAI,KAAK,gBAAgB,EAAE,CAAC;gBACnC,OAAO,GAAG,CAAC;YACb,CAAC;QACH,CAAC;QAAC,MAAM,CAAC,CAAC,wBAAwB,CAAC,CAAC;IACtC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,IAAI,aAAiC,CAAC;AACtC,IAAI,cAAkC,CAAC;AAEvC,8EAA8E;AAC9E,MAAM,UAAU,UAAU;IACxB,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,aAAa,GAAG,OAAO,oBAAoB,KAAK,QAAQ;YACtD,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAE,eAAe,EAAE,EAAE,OAAkB,IAAI,eAAe,CAAC;IAChE,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC;AAED;;;;;;aAMa;AACb,MAAM,UAAU,QAAQ;IACtB,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;QACjC,cAAc,GAAG,OAAO,kBAAkB,KAAK,QAAQ;YACrD,CAAC,CAAC,kBAAkB;YACpB,CAAC,CAAE,eAAe,EAAE,EAAE,YAAY,EAAE,CAAC,kBAAkB,CAAY,IAAI,QAAQ,CAAC;IACpF,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.81.0",
3
+ "version": "5.81.2",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",