From 736ad3506b027cd2822a0ba51e1fb7a57d94385d Mon Sep 17 00:00:00 2001 From: Corey Pyle Date: Thu, 5 Dec 2024 12:05:51 -0500 Subject: [PATCH] JavaScript (v3): Add compile step to tests for TS type checks. --- .../frontend-client/package.json | 1 + javascriptv3/package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/package.json b/javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/package.json index 43306c4f794..9a749c19c57 100644 --- a/javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/package.json +++ b/javascriptv3/example_code/cognito-identity-provider/scenarios/cognito-developer-guide-react-example/frontend-client/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "vite --host 0.0.0.0", + "compile": "tsc", "build": "tsc && vite build", "preview": "vite preview" }, diff --git a/javascriptv3/package.json b/javascriptv3/package.json index 3eb1986b962..0f537f5e0c7 100644 --- a/javascriptv3/package.json +++ b/javascriptv3/package.json @@ -2,7 +2,8 @@ "name": "root", "private": true, "scripts": { - "test": "npm run test --workspaces --if-present -- --silent", + "compile": "npm run compile --workspaces --if-present", + "test": "npm run compile && npm run test --workspaces --if-present -- --silent", "integration-test": "npm run integration-test --workspaces --if-present -- --silent; exit_code=$?; npm run merge-test-results; npm run log-tests; exit ${exit_code:-99}", "merge-test-results": "jrm test-results.xml \"**/test_results/**/*.junit.xml\"", "log-tests": "cat test-results.xml",