From 62460ba4302bf48a4eecbc45e8e8c3effa09ebfc Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 14 Jan 2025 13:08:58 -0800 Subject: [PATCH] build: fix windows error starting demos (#11302) **Related Issue:** #11284 ## Summary Resolve a Windows error reported by @geospatialem, which occurs when starting the demos. ```text > @esri/calcite-components@3.0.0-next.96 start > npm run util:clean-js-files && concurrently --kill-others --raw "trap 'npm run util:clean-js-files' INT TERM EXIT && tsc --project ./tsconfig-demos.json --watch" "npm run build:watch-dev" > @esri/calcite-components@3.0.0-next.96 util:clean-js-files > rimraf --glob -- *.js {src,.storybook,support}/**/*.js 'trap' is not recognized as an internal or external command, operable program or batch file. ``` --- packages/calcite-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/calcite-components/package.json b/packages/calcite-components/package.json index 6b2ac5a3c96..9a959f76db8 100644 --- a/packages/calcite-components/package.json +++ b/packages/calcite-components/package.json @@ -52,7 +52,7 @@ "screenshot-tests": "npm run build-storybook", "screenshot-tests:preview": "npm run util:prep-build-reqs && NODE_OPTIONS=--openssl-legacy-provider STORYBOOK_SCREENSHOT_LOCAL_BUILD=true storybook dev", "screenshot-tests:publish": "npm run screenshot-tests && storybook-to-ghpages --existing-output-dir=docs", - "start": "npm run util:clean-js-files && concurrently --kill-others --raw \"trap 'npm run util:clean-js-files' INT TERM EXIT && tsc --project ./tsconfig-demos.json --watch\" \"npm run build:watch-dev\"", + "start": "npm run util:clean-js-files && concurrently --kill-others --raw \"trap 'npm run util:clean-js-files' INT TERM EXIT >/dev/null 2>&1 || true && tsc --project ./tsconfig-demos.json --watch\" \"npm run build:watch-dev\"", "test": "vitest run", "test:watch": "vitest", "util:clean-js-files": "rimraf --glob -- *.js {src,.storybook,support}/**/*.js",