Skip to content

Commit

Permalink
[mate-scripts] run vite with NO_COLORS on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrinko committed Sep 4, 2024
1 parent 582499f commit c453006
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mate-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mate-academy/scripts",
"version": "1.9.6",
"version": "1.9.7",
"description": "Scripts to init, run, test, deploy Mate academy homework projects",
"main": "bin/mateScripts.js",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions mate-scripts/src/commands/Test.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,10 @@ export class TestCommand extends Command {
const stdoutListener = (data: any) => {
if (
testsStarted
|| !(
data.toString().includes(`http://localhost:${freePort}`)
|| data.toString().includes('Compiled with warnings')
)
|| !(
data.toString().includes(`http://localhost:${freePort}`)
|| data.toString().includes('Compiled with warnings')
)
) {
return;
}
Expand Down
6 changes: 5 additions & 1 deletion mate-scripts/src/services/Vite.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ export class ViteService {
? ' --open'
: '';

const prexif = process.env.CI
? 'NO_COLORS=true '
: '';

return execFn(
`${this.binDir}vite dev${PORT}${OPEN}`,
`${prexif}${this.binDir}vite dev${PORT}${OPEN}`,
showLogs,
) as any;
}
Expand Down

0 comments on commit c453006

Please sign in to comment.