@platforma-sdk/block-tools 2.15.2 → 2.16.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.
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +5 -5
- package/dist/cli.mjs.map +1 -1
- package/dist/structure/engine/version.d.ts +1 -1
- package/package.json +8 -8
- package/src/structure/__tests__/workflow-imports-check.test.ts +74 -0
- package/src/structure/engine/version.ts +1 -1
- package/src/structure/rules/workflow-package-json.ts +6 -2
package/dist/cli.mjs
CHANGED
|
@@ -1015,14 +1015,14 @@ function vn(e, t, n, r = {}) {
|
|
|
1015
1015
|
return We(n, () => {
|
|
1016
1016
|
let i = Ie(e, n), a = !!r.initMode, o = _n(i, t, n, n.dryRun, r.templates, a, r.registryLookup, r.derivedPinLookup);
|
|
1017
1017
|
if (!n.dryRun && !n.updateDepsOnly && !a) {
|
|
1018
|
-
rn(t, { version:
|
|
1018
|
+
rn(t, { version: 3 });
|
|
1019
1019
|
let i = {
|
|
1020
1020
|
...r.rediscover ? r.rediscover(t) : n,
|
|
1021
1021
|
dryRun: !0
|
|
1022
1022
|
}, a = _n(Ie(e, i), t, i, !0, r.templates, !1, r.registryLookup, r.derivedPinLookup).filter((e) => e.path !== $t);
|
|
1023
1023
|
if (a.length > 0) throw new an(a[0]);
|
|
1024
1024
|
}
|
|
1025
|
-
return a && !n.dryRun && rn(t, { version:
|
|
1025
|
+
return a && !n.dryRun && rn(t, { version: 3 }), { changes: o };
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
1028
|
//#endregion
|
|
@@ -1932,7 +1932,7 @@ function Xr(e) {
|
|
|
1932
1932
|
type: "module",
|
|
1933
1933
|
scripts: {
|
|
1934
1934
|
build: "shx rm -rf dist && pl-tengo build",
|
|
1935
|
-
check: "pl-tengo check",
|
|
1935
|
+
check: "pl-tengo imports && pl-tengo check",
|
|
1936
1936
|
format: "/usr/bin/env emacs --script ./format.el || echo 'No emacs.'"
|
|
1937
1937
|
},
|
|
1938
1938
|
dependencies: {
|
|
@@ -1947,7 +1947,7 @@ function Xr(e) {
|
|
|
1947
1947
|
};
|
|
1948
1948
|
}
|
|
1949
1949
|
function Zr() {
|
|
1950
|
-
Z(), R("private", !0), R("type", "module"), z("build", "shx rm -rf dist && pl-tengo build"), z("check", "pl-tengo check"), z("format", "/usr/bin/env emacs --script ./format.el || echo 'No emacs.'"), C(({ ctx: e }) => !e.isSdkInternal, () => C(w(Q), () => {
|
|
1950
|
+
Z(), R("private", !0), R("type", "module"), z("build", "shx rm -rf dist && pl-tengo build"), z("check", "pl-tengo imports && pl-tengo check"), z("format", "/usr/bin/env emacs --script ./format.el || echo 'No emacs.'"), C(({ ctx: e }) => !e.isSdkInternal, () => C(w(Q), () => {
|
|
1951
1951
|
z("test", "vitest run --passWithNoTests"), U({ vitest: "catalog:" });
|
|
1952
1952
|
}, () => H("vitest"))), Pt("@platforma-sdk/workflow-tengo", "sdk:"), Rt("software"), U({
|
|
1953
1953
|
"@platforma-sdk/tengo-builder": "sdk:",
|
|
@@ -2319,7 +2319,7 @@ async function ki(e) {
|
|
|
2319
2319
|
blockVars: t,
|
|
2320
2320
|
modules: n,
|
|
2321
2321
|
isSdkInternal: !1,
|
|
2322
|
-
version:
|
|
2322
|
+
version: 3,
|
|
2323
2323
|
dryRun: !1
|
|
2324
2324
|
}), o = or.filter(er), s, c;
|
|
2325
2325
|
try {
|