@vttforge/cli 0.15.1 → 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 CHANGED
@@ -1,5 +1,21 @@
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
+
11
+ ## 0.15.2
12
+
13
+ ### Patch Changes
14
+
15
+ - 12aae87: The scaffold templates pin `@vttforge/core` at the version this release publishes.
16
+ - 1b42a83: The scaffold templates pin `@vttforge/core` and `@vttforge/styles` at the versions this release publishes.
17
+ - 12aae87: The scaffold templates pin `@vttforge/core` at the version this release publishes.
18
+
3
19
  ## 0.15.1
4
20
 
5
21
  ### 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-D3qRQqRr.mjs";
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-D3qRQqRr.mjs";
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.1";
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-D3qRQqRr.mjs.map
3725
+ //# sourceMappingURL=src-vwmR9t7H.mjs.map