From 1a63f055f89801b2dedf4d00a2fbee85e083b4e5 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Wed, 1 Nov 2023 10:05:41 +0100 Subject: [PATCH] only log "done" locally, the CI has no use for it --- scripts/prepare/bundle.ts | 5 ++++- scripts/prepare/check-scripts.ts | 1 + scripts/prepare/check.ts | 5 ++++- scripts/prepare/esm-bundle.ts | 5 ++++- scripts/prepare/tsc.ts | 5 ++++- scripts/upload-bench.ts | 1 + 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/scripts/prepare/bundle.ts b/scripts/prepare/bundle.ts index 1228e445a034..6343274be11d 100755 --- a/scripts/prepare/bundle.ts +++ b/scripts/prepare/bundle.ts @@ -1,4 +1,5 @@ #!/usr/bin/env ../../node_modules/.bin/ts-node +/* eslint-disable no-console */ import * as fs from 'fs-extra'; import path, { dirname, join, relative } from 'path'; @@ -158,7 +159,9 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { ); } - console.log('done'); + if (process.env.CI !== 'true') { + console.log('done'); + } }; /* UTILS */ diff --git a/scripts/prepare/check-scripts.ts b/scripts/prepare/check-scripts.ts index 86418acd93ba..5cb7e5616706 100755 --- a/scripts/prepare/check-scripts.ts +++ b/scripts/prepare/check-scripts.ts @@ -1,4 +1,5 @@ #!/usr/bin/env ./node_modules/.bin/ts-node-script +/* eslint-disable no-console */ import { join } from 'path'; import * as ts from 'typescript'; diff --git a/scripts/prepare/check.ts b/scripts/prepare/check.ts index d200e921ea0b..ea8b81fe8533 100755 --- a/scripts/prepare/check.ts +++ b/scripts/prepare/check.ts @@ -1,4 +1,5 @@ #!/usr/bin/env ../../node_modules/.bin/ts-node-script +/* eslint-disable no-console */ import { join } from 'path'; import fs from 'fs-extra'; @@ -24,7 +25,9 @@ const run = async ({ cwd }: { cwd: string }) => { // - check for missing dependencies/peerDependencies // - check for unused exports - console.log('done'); + if (process.env.CI !== 'true') { + console.log('done'); + } }; run({ cwd: process.cwd() }).catch((err: unknown) => { diff --git a/scripts/prepare/esm-bundle.ts b/scripts/prepare/esm-bundle.ts index e75ddc75b679..3ef74a8f743f 100755 --- a/scripts/prepare/esm-bundle.ts +++ b/scripts/prepare/esm-bundle.ts @@ -1,4 +1,5 @@ #!/usr/bin/env ../../node_modules/.bin/ts-node +/* eslint-disable no-console */ import * as fs from 'fs-extra'; import path, { dirname, join, relative } from 'path'; @@ -158,7 +159,9 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { ); } - console.log('done'); + if (process.env.CI !== 'true') { + console.log('done'); + } }; /* UTILS */ diff --git a/scripts/prepare/tsc.ts b/scripts/prepare/tsc.ts index cc248979ef70..f051d370cb12 100755 --- a/scripts/prepare/tsc.ts +++ b/scripts/prepare/tsc.ts @@ -1,4 +1,5 @@ #!/usr/bin/env ../../node_modules/.bin/ts-node +/* eslint-disable no-console */ import { join } from 'path'; import fs, { move } from 'fs-extra'; @@ -76,7 +77,9 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { } if (!watch) { - console.log('done'); + if (process.env.CI !== 'true') { + console.log('done'); + } } }; diff --git a/scripts/upload-bench.ts b/scripts/upload-bench.ts index e841ec363c33..ffdad7c71e0d 100644 --- a/scripts/upload-bench.ts +++ b/scripts/upload-bench.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import { join } from 'path'; import { BigQuery } from '@google-cloud/bigquery';