Skip to content

Commit

Permalink
feat(nx-set-shas): remove chalk dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gperdomor committed Jul 13, 2024
1 parent 29bb868 commit 1514bae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/nx-set-shas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
},
"dependencies": {
"@nx-tools/core": "6.0.1",
"chalk": "^4.1.2",
"clipanion": "^4.0.0-rc.3",
"semver": "^7.6.2"
},
Expand Down
5 changes: 1 addition & 4 deletions packages/nx-set-shas/src/lib/gitlab/command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import chalk from 'chalk';
import { Command, Option } from 'clipanion';
import { spawnSync } from 'node:child_process';
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
Expand Down Expand Up @@ -168,9 +167,7 @@ export class GitLabCommand extends Command<Context> {
}
lines.push(`NX_BASE=${BASE_SHA}`, `NX_HEAD=${HEAD_SHA}`);
writeFileSync(output, lines.join('\n'), { encoding: 'utf-8' });
this.context.logger.info(
chalk.blue(`NX_BASE and NX_HEAD environment variables have been written to '${output}'\n`)
);
this.context.logger.info(`NX_BASE and NX_HEAD environment variables have been written to '${output}'\n`);
}

return 0;
Expand Down
3 changes: 1 addition & 2 deletions packages/nx-set-shas/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"esModuleInterop": true
"resolveJsonModule": true
},
"files": [],
"include": [],
Expand Down

0 comments on commit 1514bae

Please sign in to comment.