@crustjs/core 0.3.2 → 0.3.3

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as CrustError, _ as defineContext, a as runInvocation, b as normalizeArg, d as installExtensionContexts, f as validateCommandSections, g as contextSources, h as defineExtension, i as resolveTypedPath, m as registerFlag, n as executeInvocation, o as snapshotCommand, p as createCommandNode, r as prepareInvocation, u as cloneCommandNode, v as definingOf, x as normalizeFlag, y as validateContextAvailability } from "./invocation-B17RvTLb.js";
1
+ import { S as CrustError, _ as defineContext, a as runInvocation, b as normalizeArg, d as installExtensionContexts, f as validateCommandSections, g as contextSources, h as defineExtension, i as resolveTypedPath, m as registerFlag, n as executeInvocation, o as snapshotCommand, p as createCommandNode, r as prepareInvocation, u as cloneCommandNode, v as definingOf, x as normalizeFlag, y as validateContextAvailability } from "./invocation-CDq_hxre.js";
2
2
  import { resolveArtifactDir } from "@crustjs/utils/artifacts";
3
3
  //#region src/identity.ts
4
4
  /** Mint an Extension identity from any non-blank, trimmed string. */
@@ -1417,6 +1417,9 @@ const DEFAULT_IO = {
1417
1417
  * validates its documentation sections, optionally runs Extension build hooks when the
1418
1418
  * build output directory is set, writes its final JSON snapshot and Build Report, and exits
1419
1419
  * without dispatching a Command Action. In-process callers use `Crust.snapshot()`.
1420
+ *
1421
+ * Only source entries run by `crust build` honor it: finished Bun/Node bundles carry
1422
+ * `process.env.CRUST_INTERNAL_BUILD === "1"` as a literal and compile the protocol out.
1420
1423
  */
1421
1424
  const SNAPSHOT_PATH_ENV = "CRUST_INTERNAL_SNAPSHOT_PATH";
1422
1425
  const EXIT_CODE_CANCELLED = 130;
@@ -1674,7 +1677,7 @@ async function executeInvocation(node, options, materializeCommandDefinition) {
1674
1677
  ...DEFAULT_IO,
1675
1678
  ...options?.io
1676
1679
  };
1677
- const snapshotPath = process.env[SNAPSHOT_PATH_ENV];
1680
+ const snapshotPath = process.env.CRUST_INTERNAL_BUILD === "1" ? void 0 : process.env[SNAPSHOT_PATH_ENV];
1678
1681
  if (snapshotPath) {
1679
1682
  try {
1680
1683
  const base = buildExtensionTree(node, materializeCommandDefinition);
package/dist/tooling.d.ts CHANGED
@@ -8,6 +8,9 @@ import { BUILD_OUT_DIR_ENV } from "@crustjs/utils/artifacts";
8
8
  * validates its documentation sections, optionally runs Extension build hooks when the
9
9
  * build output directory is set, writes its final JSON snapshot and Build Report, and exits
10
10
  * without dispatching a Command Action. In-process callers use `Crust.snapshot()`.
11
+ *
12
+ * Only source entries run by `crust build` honor it: finished Bun/Node bundles carry
13
+ * `process.env.CRUST_INTERNAL_BUILD === "1"` as a literal and compile the protocol out.
11
14
  */
12
15
  export declare const SNAPSHOT_PATH_ENV = "CRUST_INTERNAL_SNAPSHOT_PATH";
13
16
  //#endregion
package/dist/tooling.js CHANGED
@@ -1,4 +1,4 @@
1
- import { c as sectionsFor, l as visibleSectionsFor, s as isListed, t as SNAPSHOT_PATH_ENV } from "./invocation-B17RvTLb.js";
1
+ import { c as sectionsFor, l as visibleSectionsFor, s as isListed, t as SNAPSHOT_PATH_ENV } from "./invocation-CDq_hxre.js";
2
2
  import { BUILD_OUT_DIR_ENV } from "@crustjs/utils/artifacts";
3
3
  //#region src/command/documentation.ts
4
4
  function isNonFiniteNumber(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crustjs/core",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Core library for the Crust CLI framework",
5
5
  "type": "module",
6
6
  "sideEffects": false,