Skip to content

Commit

Permalink
Added npm run generate-types.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Aug 1, 2024
1 parent b52f642 commit 6e88e70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tools/src/tester/_generate_story_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
`
})
Expand Down
2 changes: 1 addition & 1 deletion tools/src/tester/types/story.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

/**
Expand Down

0 comments on commit 6e88e70

Please sign in to comment.