@platforma-sdk/block-tools 2.21.0 → 2.22.1

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/cli.mjs CHANGED
@@ -825,7 +825,7 @@ function dn(e) {
825
825
  if (!e.exists(".structure")) return { version: 0 };
826
826
  try {
827
827
  let t = JSON.parse(e.read(un)), n = { version: typeof t?.version == "number" ? t.version : 0 };
828
- return t?.ownNpmRegistry === !0 && (n.ownNpmRegistry = !0), n;
828
+ return typeof t?.ownNpmRegistry == "boolean" && (n.ownNpmRegistry = t.ownNpmRegistry), n;
829
829
  } catch {
830
830
  return { version: 0 };
831
831
  }
@@ -842,7 +842,7 @@ var pn = class extends Error {
842
842
  };
843
843
  function mn(e, t) {
844
844
  let n = { version: t.version };
845
- t.ownNpmRegistry === !0 && (n.ownNpmRegistry = !0), e.write(un, JSON.stringify(n));
845
+ t.ownNpmRegistry === !1 && (n.ownNpmRegistry = !1), e.write(un, JSON.stringify(n));
846
846
  }
847
847
  // src/structure/engine/runner.ts
848
848
  var hn = class extends Error {
@@ -1164,7 +1164,7 @@ function Rn(e) {
1164
1164
  blockVars: e.blockVars,
1165
1165
  version: e.version ?? 0,
1166
1166
  dryRun: e.dryRun ?? !1,
1167
- ownNpmRegistry: e.ownNpmRegistry ?? !1
1167
+ ownNpmRegistry: e.ownNpmRegistry ?? !0
1168
1168
  };
1169
1169
  }
1170
1170
  // src/structure/engine/discovery-fs.ts
@@ -1263,7 +1263,7 @@ function Gn(e) {
1263
1263
  blockVars: c,
1264
1264
  version: a.version,
1265
1265
  dryRun: e.dryRun ?? !1,
1266
- ownNpmRegistry: a.ownNpmRegistry === !0
1266
+ ownNpmRegistry: a.ownNpmRegistry !== !1
1267
1267
  });
1268
1268
  }
1269
1269
  // src/structure/rules/shared/key-order.ts
@@ -1655,7 +1655,7 @@ function qr() {
1655
1655
  function Jr(e) {
1656
1656
  return e.split(/[-_]+/).filter((e) => e.length > 0).map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
1657
1657
  }
1658
- var Yr = "\n\n # .structure \"ownNpmRegistry\": publish @platforma-open to npm.platforma.bio.\n npm-own-registry-scopes: '@platforma-open'";
1658
+ var Yr = "\n\n # Publish @platforma-open to npm.platforma.bio (opt out: .structure \"ownNpmRegistry\": false).\n npm-own-registry-scopes: '@platforma-open'";
1659
1659
  function Xr() {
1660
1660
  S("root", () => {
1661
1661
  C(({ ctx: e }) => !e.isSdkInternal, () => {