Skip to content

Commit ae60577

Browse files
Batch building/compiling tests (#2558)
We have to many tests in to many packages now. On windows I get `The commandline is too long`. Solving this by batching 50 tests at the time. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 17a8f27 commit ae60577

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
TESTS="$(find .. -name '*.test.ts')"
5-
6-
pnpm run build:base --outdir=dist --out-extension:.js=.cjs $TESTS
4+
find .. -name '*.test.ts' | xargs -n 50 pnpm run build:base --outdir=dist --out-extension:.js=.cjs

0 commit comments

Comments
 (0)