Skip to content

Commit

Permalink
build: fix windows error starting demos (#11302)
Browse files Browse the repository at this point in the history
**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.
```
  • Loading branch information
benelan authored Jan 14, 2025
1 parent f086c99 commit 62460ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calcite-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 62460ba

Please sign in to comment.