Skip to content

Commit

Permalink
Revert #46931
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Dec 2, 2021
1 parent cbeb8ff commit e1b49bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/browserIntegrationTest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
const chalk = require("chalk");
const { join } = require("path");
const { readFileSync } = require("fs");
try {
Expand All @@ -17,7 +18,6 @@ const playwright = require("playwright");
const debugging = false;

(async () => {
const chalk = (await import("chalk")).default;
for (const browserType of ["chromium", "firefox"]) {
const browser = await playwright[browserType].launch({ headless: !debugging });
const context = await browser.newContext();
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const mkdirp = require("mkdirp");
const del = require("del");
const File = require("vinyl");
const ts = require("../../lib/typescript");
const chalk = require("chalk");
const which = require("which");
const { spawn } = require("child_process");
const { CancellationToken, CancelError, Deferred } = require("prex");
Expand All @@ -26,7 +27,6 @@ const { Readable, Duplex } = require("stream");
* @property {boolean} [waitForExit=true]
*/
async function exec(cmd, args, options = {}) {
const chalk = (await import("chalk")).default;
return /**@type {Promise<{exitCode: number}>}*/(new Promise((resolve, reject) => {
const { ignoreExitCode, cancelToken = CancellationToken.none, waitForExit = true } = options;
cancelToken.throwIfCancellationRequested();
Expand Down

0 comments on commit e1b49bb

Please sign in to comment.