@cmflow/atlas 3.4.0-beta.5 → 3.4.0-beta.7
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/README.md +7 -5
- package/dist/bin/atlas.mjs +29 -322
- package/dist/index.d.mts +1 -1
- package/dist/routeBackendTopologyService-D_aIIBbX.mjs +792 -0
- package/dist/rules/cleanObjectRule.d.mts +1 -1
- package/dist/rules/cmsI18nFieldRule.d.mts +1 -1
- package/dist/rules/dateConversionRule.d.mts +1 -1
- package/dist/rules/lodashGetRule.d.mts +1 -1
- package/dist/rules/mappingUtilityRule.d.mts +1 -1
- package/dist/rules/memberGetFieldRule.d.mts +1 -1
- package/dist/rules/quableI18nFieldRule.d.mts +1 -1
- package/dist/{types-DcvdOZ2j.d.mts → types-3y34Gf8R.d.mts} +3 -3
- package/dist/workers/routeBackendTopologyWorker.mjs +29 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FieldExtractionRule } from "../types-
|
|
1
|
+
import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
|
|
2
2
|
//#region src/rules/cmsI18nFieldRule.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* `CmsI18n#get`/`getAll` reads a localized field off the translations array passed to the
|
|
@@ -24,8 +24,6 @@ interface UserConfig {
|
|
|
24
24
|
* Can be set via the ATLAS_CWD environment variable.
|
|
25
25
|
*/
|
|
26
26
|
repoRoot?: string;
|
|
27
|
-
/** Backend identifiers used by the API project. */
|
|
28
|
-
backends: string[];
|
|
29
27
|
/**
|
|
30
28
|
* Default OpenAPI document URL used to extract the public contract exposed by the API.
|
|
31
29
|
* The CLI can still override this value with `--openapi-url`.
|
|
@@ -60,6 +58,8 @@ interface UserConfig {
|
|
|
60
58
|
* Static analysis options used to keep generated artifacts focused on business-relevant files and fields.
|
|
61
59
|
*/
|
|
62
60
|
analysis: {
|
|
61
|
+
/** Backend identifiers used by the API project. */
|
|
62
|
+
backends: string[];
|
|
63
63
|
/**
|
|
64
64
|
* Glob patterns excluded from `analysis_files`.
|
|
65
65
|
* Use this to hide technical plumbing files that add noise to route review documents.
|
|
@@ -99,4 +99,4 @@ interface UserConfig {
|
|
|
99
99
|
}
|
|
100
100
|
//#endregion
|
|
101
101
|
export { FieldExtractionRule as n, defineExpressionRule as r, UserConfig as t };
|
|
102
|
-
//# sourceMappingURL=types-
|
|
102
|
+
//# sourceMappingURL=types-3y34Gf8R.d.mts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as generateBackendTopologyArtifacts } from "../routeBackendTopologyService-D_aIIBbX.mjs";
|
|
2
|
+
import { parentPort, workerData } from "node:worker_threads";
|
|
3
|
+
//#region src/workers/routeBackendTopologyWorker.ts
|
|
4
|
+
const data = workerData;
|
|
5
|
+
generateBackendTopologyArtifacts({
|
|
6
|
+
cwd: data.cwd,
|
|
7
|
+
routeSelectors: data.routeSelectors,
|
|
8
|
+
onRouteProgress: ({ route, stage }) => {
|
|
9
|
+
if (stage !== "completed") return;
|
|
10
|
+
parentPort?.postMessage({
|
|
11
|
+
type: "progress",
|
|
12
|
+
route
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
onArtifact: async (artifact) => {
|
|
16
|
+
parentPort?.postMessage({
|
|
17
|
+
type: "artifact",
|
|
18
|
+
artifact
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}).catch((error) => {
|
|
22
|
+
parentPort?.postMessage({
|
|
23
|
+
type: "error",
|
|
24
|
+
message: error instanceof Error ? error.message : String(error)
|
|
25
|
+
});
|
|
26
|
+
process.exitCode = 1;
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export {};
|