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. */ /**