@vttforge/cli 0.15.2 → 0.15.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/CHANGELOG.md +8 -0
- package/dist/bin.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-3yl_b4Xd.mjs → src-vwmR9t7H.mjs} +12 -2
- package/dist/src-vwmR9t7H.mjs.map +1 -0
- package/package.json +1 -1
- package/templates/module-js/package.json +1 -1
- package/templates/module-ts/package.json +1 -1
- package/templates/system-js/package.json +1 -1
- package/templates/system-ts/package.json +1 -1
- package/dist/src-3yl_b4Xd.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @vttforge/cli
|
|
2
2
|
|
|
3
|
+
## 0.15.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6ad9da6: Audit rule 007 reads `resourceField()` from `@vttforge/core` as a `{ value, max }` field, at the top level or nested in a SchemaField, so a system using it is not flagged. The scaffold templates pin `@vttforge/core` at the version this release publishes.
|
|
8
|
+
- e5567cb: The scaffold templates pin `@vttforge/core` at the version this release publishes.
|
|
9
|
+
- e5567cb: The scaffold templates pin `@vttforge/core` at the version this release publishes.
|
|
10
|
+
|
|
3
11
|
## 0.15.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as definesName, a as runDev, g as bareUsePattern, h as LEGACY_GLOBALS, i as runInit, m as maskComments, n as runLintCommand, p as REMOVED_UTILS, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, x as runReleaseRules, y as _internal } from "./src-
|
|
2
|
+
import { _ as definesName, a as runDev, g as bareUsePattern, h as LEGACY_GLOBALS, i as runInit, m as maskComments, n as runLintCommand, p as REMOVED_UTILS, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, x as runReleaseRules, y as _internal } from "./src-vwmR9t7H.mjs";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as runManifestRules, a as runDev, b as runSourceRules, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, v as SEVERITY_RANK } from "./src-
|
|
1
|
+
import { S as runManifestRules, a as runDev, b as runSourceRules, c as emitZip, d as formatReport, f as runAudit, i as runInit, l as readManifest, n as runLintCommand, o as emitReleaseZip, r as ScaffoldError, s as runBuild, t as VTTFORGE_CLI_VERSION, u as runAuditCommand, v as SEVERITY_RANK } from "./src-vwmR9t7H.mjs";
|
|
2
2
|
export { SEVERITY_RANK, ScaffoldError, VTTFORGE_CLI_VERSION, emitReleaseZip, emitZip, formatReport, readManifest, runAudit, runAuditCommand, runBuild, runDev, runInit, runLintCommand, runManifestRules, runSourceRules };
|
|
@@ -11,7 +11,7 @@ import { createServer } from "node:http";
|
|
|
11
11
|
import { homedir } from "node:os";
|
|
12
12
|
import { promisify } from "node:util";
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.15.
|
|
14
|
+
var version = "0.15.3";
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/audit/manifest-rules.ts
|
|
17
17
|
/**
|
|
@@ -1028,6 +1028,7 @@ async function sourceHasValueMaxSchemaAtPath(sourceFiles, targetPath, actorClass
|
|
|
1028
1028
|
const owner = classes.find((c) => decl.index > c.openIdx && decl.index < c.endIdx);
|
|
1029
1029
|
if (owner && !actorClasses.has(owner.className)) continue;
|
|
1030
1030
|
}
|
|
1031
|
+
if (decl.resource) return true;
|
|
1031
1032
|
const topKeys = extractTopLevelKeys(decl.body);
|
|
1032
1033
|
if (topKeys.has("value") && topKeys.has("max")) return true;
|
|
1033
1034
|
}
|
|
@@ -1036,6 +1037,15 @@ async function sourceHasValueMaxSchemaAtPath(sourceFiles, targetPath, actorClass
|
|
|
1036
1037
|
}
|
|
1037
1038
|
function findAllSchemaFields(content) {
|
|
1038
1039
|
const out = [];
|
|
1040
|
+
for (const m of content.matchAll(/(\w+)\s*:\s*(?:[\w.]+\.)?resourceField\s*\(/g)) {
|
|
1041
|
+
if (m.index === void 0) continue;
|
|
1042
|
+
out.push({
|
|
1043
|
+
path: buildSchemaPath(content, m.index, m[1] ?? ""),
|
|
1044
|
+
body: "",
|
|
1045
|
+
index: m.index,
|
|
1046
|
+
resource: true
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1039
1049
|
for (const m of content.matchAll(/(\w+)\s*:\s*new\s+(?:[\w.]+\.)?SchemaField\s*\(\s*\{/g)) {
|
|
1040
1050
|
if (m.index === void 0) continue;
|
|
1041
1051
|
const fieldName = m[1] ?? "";
|
|
@@ -3712,4 +3722,4 @@ const VTTFORGE_CLI_VERSION = version;
|
|
|
3712
3722
|
//#endregion
|
|
3713
3723
|
export { runManifestRules as S, definesName as _, runDev as a, runSourceRules as b, emitZip as c, formatReport as d, runAudit as f, bareUsePattern as g, LEGACY_GLOBALS as h, runInit as i, readManifest as l, maskComments as m, runLintCommand as n, emitReleaseZip as o, REMOVED_UTILS as p, ScaffoldError as r, runBuild as s, VTTFORGE_CLI_VERSION as t, runAuditCommand as u, SEVERITY_RANK as v, runReleaseRules as x, _internal as y };
|
|
3714
3724
|
|
|
3715
|
-
//# sourceMappingURL=src-
|
|
3725
|
+
//# sourceMappingURL=src-vwmR9t7H.mjs.map
|