From 1514baec4629d8968a473ff2c3830149972c2925 Mon Sep 17 00:00:00 2001 From: Gustavo Perdomo Date: Sat, 13 Jul 2024 18:53:28 -0400 Subject: [PATCH] feat(nx-set-shas): remove chalk dependency --- packages/nx-set-shas/package.json | 1 - packages/nx-set-shas/src/lib/gitlab/command.ts | 5 +---- packages/nx-set-shas/tsconfig.json | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/nx-set-shas/package.json b/packages/nx-set-shas/package.json index c7543192..5b773e30 100644 --- a/packages/nx-set-shas/package.json +++ b/packages/nx-set-shas/package.json @@ -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" }, diff --git a/packages/nx-set-shas/src/lib/gitlab/command.ts b/packages/nx-set-shas/src/lib/gitlab/command.ts index 5a3efa5b..70bf7810 100644 --- a/packages/nx-set-shas/src/lib/gitlab/command.ts +++ b/packages/nx-set-shas/src/lib/gitlab/command.ts @@ -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'; @@ -168,9 +167,7 @@ export class GitLabCommand extends Command { } 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; diff --git a/packages/nx-set-shas/tsconfig.json b/packages/nx-set-shas/tsconfig.json index 69cbfd58..e5d6cc36 100644 --- a/packages/nx-set-shas/tsconfig.json +++ b/packages/nx-set-shas/tsconfig.json @@ -8,8 +8,7 @@ "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "resolveJsonModule": true, - "esModuleInterop": true + "resolveJsonModule": true }, "files": [], "include": [],