Skip to content

Commit

Permalink
only log "done" locally, the CI has no use for it
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Nov 1, 2023
1 parent 6a11004 commit 1a63f05
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
5 changes: 4 additions & 1 deletion scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions scripts/prepare/check-scripts.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
5 changes: 4 additions & 1 deletion scripts/prepare/check.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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) => {
Expand Down
5 changes: 4 additions & 1 deletion scripts/prepare/esm-bundle.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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 */
Expand Down
5 changes: 4 additions & 1 deletion scripts/prepare/tsc.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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');
}
}
};

Expand Down
1 change: 1 addition & 0 deletions scripts/upload-bench.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { join } from 'path';
import { BigQuery } from '@google-cloud/bigquery';

Expand Down

0 comments on commit 1a63f05

Please sign in to comment.