folke / ultra-runner

🏃⛰ Ultra fast monorepo script runner and build tool
https://www.npmjs.com/package/ultra-runner
Apache License 2.0
1.2k stars 32 forks source link

fix: windows echo command issues #267

Open Adam-Shea opened 10 months ago

Adam-Shea commented 10 months ago

I saw that the windows build was failing on FAIL __tests__/spawn.ts ● lines I tracked this down to the echo command being used. Whilst the linux echo supports both -n and \n, windows does not. It seems the only way to create a new line with windows echo is by running to command again which doesn't really fit the test case. This solution however passes for both linux and windows and follows the lint rules.