From 6e88e70b165411e70a188d9278d123a0860bf47b Mon Sep 17 00:00:00 2001 From: dblock Date: Thu, 1 Aug 2024 14:18:32 -0400 Subject: [PATCH] Added npm run generate-types. Signed-off-by: dblock --- package.json | 1 + tools/src/tester/_generate_story_types.ts | 2 +- tools/src/tester/types/story.types.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b574d42df..d19a938de 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "scripts": { "coverage:spec": "ts-node tools/src/coverage/coverage.ts", "dump-cluster-spec": "ts-node tools/src/dump-cluster-spec/dump-cluster-spec.ts", + "generate-types": "ts-node tools/src/tester/_generate_story_types.ts", "lint:spec": "ts-node tools/src/linter/lint.ts", "lint": "eslint . --report-unused-disable-directives", "lint--fix": "eslint . --fix --report-unused-disable-directives", diff --git a/tools/src/tester/_generate_story_types.ts b/tools/src/tester/_generate_story_types.ts index d4ab6271e..d520fc02d 100644 --- a/tools/src/tester/_generate_story_types.ts +++ b/tools/src/tester/_generate_story_types.ts @@ -28,7 +28,7 @@ void js2ts.compile(schema, 'Story', * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file by running: -* "npx ts-node tools/src/tester/_generate_story_types.ts" in a terminal. +* "npm run generate-types" in a terminal. */ ` }) diff --git a/tools/src/tester/types/story.types.ts b/tools/src/tester/types/story.types.ts index 8ad3bf134..2a98e5aab 100644 --- a/tools/src/tester/types/story.types.ts +++ b/tools/src/tester/types/story.types.ts @@ -14,7 +14,7 @@ * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file by running: - * "npx ts-node tools/src/tester/_generate_story_types.ts" in a terminal. + * "npm run generate-types" in a terminal. */ /**