@toolproof-core/schema 1.0.4 → 1.0.5
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/generated/normalized/Genesis.json +0 -257
- package/dist/generated/resources/Genesis.json +0 -295
- package/dist/generated/schemas/Genesis.json +0 -146
- package/dist/generated/schemas/standalone/Goal.json +0 -33
- package/dist/generated/schemas/standalone/Job.json +0 -42
- package/dist/generated/schemas/standalone/RawStrategy.json +0 -46
- package/dist/generated/schemas/standalone/ResourceType.json +0 -34
- package/dist/generated/schemas/standalone/RunnableStrategy.json +0 -51
- package/dist/generated/schemas/standalone/StrategyRun.json +0 -65
- package/dist/generated/{typesTS → types}/standalone/Resource_Genesis.d.ts +1 -1
- package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_Job.d.ts +1 -1
- package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_RawStrategy.d.ts +1 -1
- package/{src/generated/typesTS → dist/generated/types}/standalone/Resource_ResourceType.d.ts +1 -1
- package/dist/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/dist/generated/{typesTS/typesTS.d.ts → types/types.d.ts} +13 -42
- package/dist/index.d.ts +6 -6
- package/dist/scripts/_lib/config.d.ts +12 -12
- package/dist/scripts/_lib/config.js +25 -27
- package/dist/scripts/generateSchemaShims.js +2 -2
- package/dist/scripts/generateStandaloneSchema.js +1 -1
- package/dist/scripts/{generateStandaloneTypeTS.js → generateStandaloneType.js} +9 -9
- package/dist/scripts/{generateTypesTS.js → generateTypes.js} +11 -11
- package/dist/scripts/normalizeAnchorsToPointers.d.ts +1 -1
- package/dist/scripts/normalizeAnchorsToPointers.js +33 -12
- package/package.json +5 -5
- package/src/Genesis.json +0 -170
- package/src/generated/dependencies/dependencyMap.json +2 -13
- package/src/generated/normalized/Genesis.json +0 -257
- package/src/generated/resources/Genesis.json +0 -295
- package/src/generated/schemas/Genesis.json +0 -146
- package/src/generated/schemas/standalone/Goal.json +0 -33
- package/src/generated/schemas/standalone/Job.json +0 -42
- package/src/generated/schemas/standalone/RawStrategy.json +0 -46
- package/src/generated/schemas/standalone/ResourceType.json +0 -34
- package/src/generated/schemas/standalone/RunnableStrategy.json +0 -51
- package/src/generated/schemas/standalone/StrategyRun.json +0 -65
- package/src/generated/{typesTS → types}/standalone/Resource_Genesis.d.ts +1 -1
- package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_Job.d.ts +1 -1
- package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_RawStrategy.d.ts +1 -1
- package/{dist/generated/typesTS → src/generated/types}/standalone/Resource_ResourceType.d.ts +1 -1
- package/src/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.d.ts +1 -1
- package/src/generated/{typesTS/typesTS.d.ts → types/types.d.ts} +13 -42
- package/src/index.ts +6 -7
- package/src/scripts/_lib/config.ts +27 -29
- package/src/scripts/generateSchemaShims.ts +2 -2
- package/src/scripts/generateStandaloneSchema.ts +1 -1
- package/src/scripts/{generateStandaloneTypeTS.ts → generateStandaloneType.ts} +9 -9
- package/src/scripts/{generateTypesTS.ts → generateTypes.ts} +11 -11
- package/src/scripts/normalizeAnchorsToPointers.ts +38 -12
- /package/dist/generated/{typesTS → types}/standalone/Resource_Genesis.js +0 -0
- /package/dist/generated/{typesTS → types}/standalone/Resource_Job.js +0 -0
- /package/dist/generated/{typesTS → types}/standalone/Resource_RawStrategy.js +0 -0
- /package/dist/generated/{typesTS → types}/standalone/Resource_ResourceType.js +0 -0
- /package/dist/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.js +0 -0
- /package/dist/generated/{typesTS/typesTS.js → types/types.js} +0 -0
- /package/dist/scripts/{generateStandaloneTypeTS.d.ts → generateStandaloneType.d.ts} +0 -0
- /package/dist/scripts/{generateTypesTS.d.ts → generateTypes.d.ts} +0 -0
- /package/src/generated/{typesTS → types}/standalone/Resource_Genesis.js +0 -0
- /package/src/generated/{typesTS → types}/standalone/Resource_Job.js +0 -0
- /package/src/generated/{typesTS → types}/standalone/Resource_RawStrategy.js +0 -0
- /package/src/generated/{typesTS → types}/standalone/Resource_ResourceType.js +0 -0
- /package/src/generated/{typesTS → types}/standalone/Resource_RunnableStrategy.js +0 -0
- /package/src/generated/{typesTS/typesTS.js → types/types.js} +0 -0
|
@@ -20,14 +20,12 @@ export class SchemaConfig {
|
|
|
20
20
|
this.root = getEnv('TP_SCHEMA_ROOT', process.cwd());
|
|
21
21
|
this.sourceDir = getEnv('TP_SCHEMA_SOURCE_DIR', 'src/');
|
|
22
22
|
this.sourceFile = getEnv('TP_SCHEMA_SOURCE_FILE', 'Genesis.json');
|
|
23
|
-
// Intermediate, generated artifact produced by normalizeAnchorsToPointers.
|
|
24
|
-
// This should NOT live next to the source-of-truth schemas.
|
|
25
23
|
this.normalizedDir = getEnv('TP_SCHEMA_NORMALIZED_DIR', 'src/generated/normalized');
|
|
26
24
|
this.schemasDir = getEnv('TP_SCHEMA_SCHEMAS_DIR', 'src/generated/schemas');
|
|
27
25
|
this.resourcesDir = getEnv('TP_SCHEMA_RESOURCES_DIR', 'src/generated/resources');
|
|
28
26
|
this.dependencyMapPath = getEnv('TP_SCHEMA_DEPENDENCY_MAP_PATH', 'src/generated/dependencies/dependencyMap.json');
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
27
|
+
this.typesSrcDir = getEnv('TP_SCHEMA_TYPES_SRC_DIR', 'src/generated/types');
|
|
28
|
+
this.typesDistDir = getEnv('TP_SCHEMA_TYPES_DIST_DIR', 'dist/generated/types');
|
|
31
29
|
this.baseUrl = getEnv('TP_SCHEMA_BASE_URL', 'https://schemas.toolproof.com');
|
|
32
30
|
this.version = getEnv('TP_SCHEMA_VERSION', 'v0');
|
|
33
31
|
}
|
|
@@ -68,39 +66,39 @@ export class SchemaConfig {
|
|
|
68
66
|
getSchemaPath(filename) {
|
|
69
67
|
return path.join(this.getSchemasDir(), filename);
|
|
70
68
|
}
|
|
71
|
-
|
|
69
|
+
getStandaloneSchemaDir() {
|
|
72
70
|
return path.join(this.getSchemasDir(), 'standalone');
|
|
73
71
|
}
|
|
74
|
-
|
|
75
|
-
return path.join(this.
|
|
72
|
+
getStandaloneSchemaPath(filename) {
|
|
73
|
+
return path.join(this.getStandaloneSchemaDir(), filename);
|
|
76
74
|
}
|
|
77
|
-
|
|
78
|
-
return path.isAbsolute(this.
|
|
79
|
-
? this.
|
|
80
|
-
: path.join(this.root, this.
|
|
75
|
+
getTypesSrcDir() {
|
|
76
|
+
return path.isAbsolute(this.typesSrcDir)
|
|
77
|
+
? this.typesSrcDir
|
|
78
|
+
: path.join(this.root, this.typesSrcDir);
|
|
81
79
|
}
|
|
82
|
-
|
|
83
|
-
return path.isAbsolute(this.
|
|
84
|
-
? this.
|
|
85
|
-
: path.join(this.root, this.
|
|
80
|
+
getTypesDistDir() {
|
|
81
|
+
return path.isAbsolute(this.typesDistDir)
|
|
82
|
+
? this.typesDistDir
|
|
83
|
+
: path.join(this.root, this.typesDistDir);
|
|
86
84
|
}
|
|
87
|
-
|
|
88
|
-
return path.join(this.
|
|
85
|
+
getTypesSrcPath(filename) {
|
|
86
|
+
return path.join(this.getTypesSrcDir(), filename);
|
|
89
87
|
}
|
|
90
|
-
|
|
91
|
-
return path.join(this.
|
|
88
|
+
getTypesDistPath(filename) {
|
|
89
|
+
return path.join(this.getTypesDistDir(), filename);
|
|
92
90
|
}
|
|
93
|
-
|
|
94
|
-
return path.join(this.
|
|
91
|
+
getStandaloneTypeSrcDir() {
|
|
92
|
+
return path.join(this.getTypesSrcDir(), 'standalone');
|
|
95
93
|
}
|
|
96
|
-
|
|
97
|
-
return path.join(this.
|
|
94
|
+
getStandaloneTypeDistDir() {
|
|
95
|
+
return path.join(this.getTypesDistDir(), 'standalone');
|
|
98
96
|
}
|
|
99
|
-
|
|
100
|
-
return path.join(this.
|
|
97
|
+
getStandaloneTypeSrcPath(filename) {
|
|
98
|
+
return path.join(this.getStandaloneTypeSrcDir(), filename);
|
|
101
99
|
}
|
|
102
|
-
|
|
103
|
-
return path.join(this.
|
|
100
|
+
getStandaloneTypeDistPath(filename) {
|
|
101
|
+
return path.join(this.getStandaloneTypeDistDir(), filename);
|
|
104
102
|
}
|
|
105
103
|
getResourcesDir() {
|
|
106
104
|
return path.isAbsolute(this.resourcesDir)
|
|
@@ -10,7 +10,7 @@ import { getConfig } from './_lib/config.js';
|
|
|
10
10
|
*
|
|
11
11
|
* Generates shims for:
|
|
12
12
|
* - schemas dir: config.getSchemasDir() (schema files)
|
|
13
|
-
* - standalone schemas dir: config.
|
|
13
|
+
* - standalone schemas dir: config.getStandaloneSchemaDir() (standalone schema files)
|
|
14
14
|
* - resources dir: config.getResourcesDir() (resource envelope files)
|
|
15
15
|
*
|
|
16
16
|
* Usage: node ./dist/scripts/generateSchemaShims.js
|
|
@@ -34,7 +34,7 @@ function main() {
|
|
|
34
34
|
try {
|
|
35
35
|
const config = getConfig();
|
|
36
36
|
const schemasDir = config.getSchemasDir();
|
|
37
|
-
const standaloneSchemasDir = config.
|
|
37
|
+
const standaloneSchemasDir = config.getStandaloneSchemaDir();
|
|
38
38
|
const resourcesDir = config.getResourcesDir();
|
|
39
39
|
const generatedResourceTypesDir = config.getNormalizedDir();
|
|
40
40
|
let totalCount = 0;
|
|
@@ -154,7 +154,7 @@ async function main() {
|
|
|
154
154
|
}
|
|
155
155
|
const schemasDir = config.getSchemasDir();
|
|
156
156
|
const genesisPath = path.join(schemasDir, config.getSourceFile());
|
|
157
|
-
const outPath = config.
|
|
157
|
+
const outPath = config.getStandaloneSchemaPath(`${name}.json`);
|
|
158
158
|
if (!fs.existsSync(genesisPath)) {
|
|
159
159
|
throw new Error(`Genesis.json not found at ${genesisPath}. Run extractSchemasFromResourceTypeShells first.`);
|
|
160
160
|
}
|
|
@@ -4,12 +4,12 @@ import { getConfig } from "./_lib/config.js";
|
|
|
4
4
|
* Generate a typed Resource variant where `nucleus` is typed to a specific schema
|
|
5
5
|
* extracted under the configured output directory.
|
|
6
6
|
*
|
|
7
|
-
* Usage: node ./dist/scripts/
|
|
7
|
+
* Usage: node ./dist/scripts/generateStandaloneTypes.js --name Job
|
|
8
8
|
*/
|
|
9
9
|
// PURE: Generate the content of a standalone Resource type definition file for a given schema name.
|
|
10
10
|
function generateStandaloneTypeLogic(name) {
|
|
11
11
|
const header = "// Auto-generated strict composite type. Do not edit.\n";
|
|
12
|
-
const ts = `import type { ShellMaterializedBase, ${name} as NucleusSchema } from "../
|
|
12
|
+
const ts = `import type { ShellMaterializedBase, ${name} as NucleusSchema } from "../types.js";\n` +
|
|
13
13
|
`export type Resource_${name} = ShellMaterializedBase & { nucleus: NucleusSchema };\n`;
|
|
14
14
|
return header + ts;
|
|
15
15
|
}
|
|
@@ -57,7 +57,7 @@ function main() {
|
|
|
57
57
|
}
|
|
58
58
|
const inPath = name === "Genesis"
|
|
59
59
|
? config.getSchemaPath("Genesis.json")
|
|
60
|
-
: config.
|
|
60
|
+
: config.getStandaloneSchemaPath(`${name}.json`);
|
|
61
61
|
if (!fs.existsSync(inPath)) {
|
|
62
62
|
if (name === "Genesis") {
|
|
63
63
|
console.error(`Schema file not found: ${inPath}`);
|
|
@@ -79,12 +79,12 @@ function main() {
|
|
|
79
79
|
// Output setup
|
|
80
80
|
const outName = `Resource_${name}.d.ts`;
|
|
81
81
|
const outJsName = `Resource_${name}.js`;
|
|
82
|
-
const outDir = config.
|
|
83
|
-
const distLibDir = config.
|
|
82
|
+
const outDir = config.getStandaloneTypeSrcDir();
|
|
83
|
+
const distLibDir = config.getStandaloneTypeDistDir();
|
|
84
84
|
// Process src output
|
|
85
85
|
fs.mkdirSync(outDir, { recursive: true });
|
|
86
|
-
const outPath = config.
|
|
87
|
-
const outJsPath = config.
|
|
86
|
+
const outPath = config.getStandaloneTypeSrcPath(outName);
|
|
87
|
+
const outJsPath = config.getStandaloneTypeSrcPath(outJsName);
|
|
88
88
|
fs.writeFileSync(outPath, tsContent, "utf8");
|
|
89
89
|
console.log(`Wrote ${outPath}`);
|
|
90
90
|
if (!fs.existsSync(outJsPath)) {
|
|
@@ -93,8 +93,8 @@ function main() {
|
|
|
93
93
|
}
|
|
94
94
|
// Process dist output
|
|
95
95
|
fs.mkdirSync(distLibDir, { recursive: true });
|
|
96
|
-
const distDtsPath = config.
|
|
97
|
-
const distJsPath = config.
|
|
96
|
+
const distDtsPath = config.getStandaloneTypeDistPath(outName);
|
|
97
|
+
const distJsPath = config.getStandaloneTypeDistPath(outJsName);
|
|
98
98
|
fs.writeFileSync(distDtsPath, tsContent, "utf8");
|
|
99
99
|
fs.writeFileSync(distJsPath, jsContent, "utf8");
|
|
100
100
|
console.log(`Wrote ${distDtsPath}`);
|
|
@@ -322,9 +322,9 @@ function postProcessEmittedTypes(ts, parsedSchema) {
|
|
|
322
322
|
return ts;
|
|
323
323
|
}
|
|
324
324
|
// PURE: Add banner + formatting/guards to build the final .d.ts content.
|
|
325
|
-
function finalizeOutputDts(
|
|
325
|
+
function finalizeOutputDts(emittedType) {
|
|
326
326
|
const banner = '// Auto-generated from JSON schemas. Do not edit.\n';
|
|
327
|
-
let output = banner + '\n' +
|
|
327
|
+
let output = banner + '\n' + emittedType + '\n';
|
|
328
328
|
// Final guard: strip any lingering `[k: string]: unknown;` that might have been
|
|
329
329
|
// reintroduced by later transforms.
|
|
330
330
|
output = output.replace(/^\s*\[k:\s*string\]:\s*unknown;\s*$/gm, '');
|
|
@@ -347,8 +347,8 @@ async function main() {
|
|
|
347
347
|
try {
|
|
348
348
|
const config = getConfig();
|
|
349
349
|
const inputDir = config.getSchemasDir();
|
|
350
|
-
const srcLibTypesDir = config.
|
|
351
|
-
const srcLibOutputPath = config.
|
|
350
|
+
const srcLibTypesDir = config.getTypesSrcDir();
|
|
351
|
+
const srcLibOutputPath = config.getTypesSrcPath('types.d.ts');
|
|
352
352
|
fs.mkdirSync(srcLibTypesDir, { recursive: true });
|
|
353
353
|
const schemaFileName = config.getSourceFile();
|
|
354
354
|
const schemaPath = path.join(inputDir, schemaFileName);
|
|
@@ -389,8 +389,8 @@ async function main() {
|
|
|
389
389
|
console.warn('Failed to write types to src/_lib:', e);
|
|
390
390
|
}
|
|
391
391
|
// Also write a copy into dist so consumers get the generated declarations
|
|
392
|
-
const distLibTypesDir = config.
|
|
393
|
-
const distLibOutputPath = config.
|
|
392
|
+
const distLibTypesDir = config.getTypesDistDir();
|
|
393
|
+
const distLibOutputPath = config.getTypesDistPath('types.d.ts');
|
|
394
394
|
try {
|
|
395
395
|
fs.mkdirSync(distLibTypesDir, { recursive: true });
|
|
396
396
|
fs.writeFileSync(distLibOutputPath, output, 'utf8');
|
|
@@ -400,26 +400,26 @@ async function main() {
|
|
|
400
400
|
// If copying to dist fails, log but don't crash the generator.
|
|
401
401
|
console.warn('Failed to write types to dist:', e);
|
|
402
402
|
}
|
|
403
|
-
// Ensure there is a runtime-resolvable module next to `
|
|
403
|
+
// Ensure there is a runtime-resolvable module next to `types.d.ts`
|
|
404
404
|
// Some consumers and TS NodeNext resolution expect a concrete .js next to .d.ts
|
|
405
405
|
// The file is intentionally empty as all exports are types-only.
|
|
406
406
|
try {
|
|
407
|
-
const srcLibTypesJsPath = config.
|
|
407
|
+
const srcLibTypesJsPath = config.getTypesSrcPath('types.js');
|
|
408
408
|
if (!fs.existsSync(srcLibTypesJsPath)) {
|
|
409
409
|
fs.writeFileSync(srcLibTypesJsPath, 'export {}\n', 'utf8');
|
|
410
410
|
console.log('Wrote', srcLibTypesJsPath);
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
catch (e) {
|
|
414
|
-
console.warn('Failed to write
|
|
414
|
+
console.warn('Failed to write types.js to src/_lib:', e);
|
|
415
415
|
}
|
|
416
416
|
try {
|
|
417
|
-
const distLibTypesJsPath = config.
|
|
417
|
+
const distLibTypesJsPath = config.getTypesDistPath('types.js');
|
|
418
418
|
fs.writeFileSync(distLibTypesJsPath, 'export {}\n', 'utf8');
|
|
419
419
|
console.log('Wrote', distLibTypesJsPath);
|
|
420
420
|
}
|
|
421
421
|
catch (e) {
|
|
422
|
-
console.warn('Failed to write
|
|
422
|
+
console.warn('Failed to write types.js to dist/_lib:', e);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
catch (err) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare function stripAnchors<T>(schema: T): T;
|
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { getConfig } from './_lib/config.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
/*
|
|
5
|
+
* Rewrite anchor-style references to JSON Pointer references in Genesis.json.
|
|
6
|
+
* We also strip all $anchor fields from the output since they are no longer needed after rewriting refs.
|
|
7
|
+
*/
|
|
8
|
+
// PURE: Remove all `$anchor` keys from a schema tree without rewriting refs.
|
|
9
|
+
export function stripAnchors(schema) {
|
|
10
|
+
const seen = new WeakMap();
|
|
11
|
+
function walk(node) {
|
|
12
|
+
if (!node || typeof node !== 'object')
|
|
13
|
+
return node;
|
|
14
|
+
const existing = seen.get(node);
|
|
15
|
+
if (existing)
|
|
16
|
+
return existing;
|
|
17
|
+
if (Array.isArray(node)) {
|
|
18
|
+
const out = [];
|
|
19
|
+
seen.set(node, out);
|
|
20
|
+
for (const item of node)
|
|
21
|
+
out.push(walk(item));
|
|
22
|
+
return out;
|
|
23
|
+
}
|
|
24
|
+
const out = {};
|
|
25
|
+
seen.set(node, out);
|
|
26
|
+
for (const [key, value] of Object.entries(node)) {
|
|
27
|
+
if (key === '$anchor')
|
|
28
|
+
continue;
|
|
29
|
+
out[key] = walk(value);
|
|
30
|
+
}
|
|
31
|
+
return out;
|
|
32
|
+
}
|
|
33
|
+
return walk(schema);
|
|
34
|
+
}
|
|
16
35
|
// PURE: Rewrite anchor-style `$ref` strings (`#Anchor`) into JSON Pointer refs (`#/$defs/DefName`).
|
|
17
36
|
function normalizeAnchorsToPointers(input) {
|
|
18
37
|
if (!input || typeof input !== "object")
|
|
@@ -90,6 +109,8 @@ function main() {
|
|
|
90
109
|
}
|
|
91
110
|
// Rewrite anchors in the nucleusSchema (pure function call)
|
|
92
111
|
genesis.nucleusSchema = normalizeAnchorsToPointers(genesis.nucleusSchema);
|
|
112
|
+
// Strip $anchor fields from the schemas (pure function call)
|
|
113
|
+
genesis.nucleusSchema = stripAnchors(genesis.nucleusSchema);
|
|
93
114
|
// Write normalized version
|
|
94
115
|
fs.mkdirSync(path.dirname(normalizedPath), { recursive: true });
|
|
95
116
|
fs.writeFileSync(normalizedPath, JSON.stringify(genesis, null, 4), 'utf-8');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolproof-core/schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "JSON schemas and TypeScript types for ToolProof",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"normalizeAnchorsToPointers": "node ./dist/scripts/normalizeAnchorsToPointers.js",
|
|
35
35
|
"extractSchemasFromResourceTypeShells": "node ./dist/scripts/extractSchemasFromResourceTypeShells.js",
|
|
36
36
|
"generateStandaloneSchema": "node ./dist/scripts/generateStandaloneSchema.js",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"generateTypes": "node ./dist/scripts/generateTypes.js",
|
|
38
|
+
"generateStandaloneType": "node ./dist/scripts/generateStandaloneType.js",
|
|
39
39
|
"wrapResourceTypesWithResourceShells": "node ./dist/scripts/wrapResourceTypesWithResourceShells.js",
|
|
40
40
|
"generateSchemaShims": "node ./dist/scripts/generateSchemaShims.js",
|
|
41
41
|
"generateDependencies": "node ./dist/scripts/generateDependencies.js",
|
|
42
|
-
"generateResourceTypeGenesisType": "node ./dist/scripts/
|
|
43
|
-
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run normalizeAnchorsToPointers && pnpm run extractSchemasFromResourceTypeShells && pnpm run generateStandaloneSchema -- --name Job && pnpm run generateStandaloneSchema -- --name ResourceType && pnpm run generateStandaloneSchema -- --name RawStrategy && pnpm run generateStandaloneSchema -- --name RunnableStrategy && pnpm run generateStandaloneSchema -- --name StrategyRun && pnpm run generateStandaloneSchema -- --name Goal && pnpm run wrapResourceTypesWithResourceShells && pnpm run generateSchemaShims && pnpm run
|
|
42
|
+
"generateResourceTypeGenesisType": "node ./dist/scripts/generateStandaloneType.js --name Genesis",
|
|
43
|
+
"update": "rimraf /s /q dist && pnpm run build:scripts && pnpm run normalizeAnchorsToPointers && pnpm run extractSchemasFromResourceTypeShells && pnpm run generateStandaloneSchema -- --name Job && pnpm run generateStandaloneSchema -- --name ResourceType && pnpm run generateStandaloneSchema -- --name RawStrategy && pnpm run generateStandaloneSchema -- --name RunnableStrategy && pnpm run generateStandaloneSchema -- --name StrategyRun && pnpm run generateStandaloneSchema -- --name Goal && pnpm run wrapResourceTypesWithResourceShells && pnpm run generateSchemaShims && pnpm run generateTypes && pnpm run generateStandaloneType -- --name Job && pnpm run generateStandaloneType -- --name ResourceType && pnpm run generateStandaloneType -- --name RawStrategy && pnpm run generateStandaloneType -- --name RunnableStrategy && pnpm run generateResourceTypeGenesisType && pnpm run generateDependencies && pnpm run build"
|
|
44
44
|
}
|
|
45
45
|
}
|