Skip to content

Commit c792a66

Browse files
authored
Pin chalk to ^4.1 (microsoft#46985)
* Pin chalk to ^4.1 * Revert microsoft#46931
1 parent 670ad45 commit c792a66

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

package-lock.json

+8-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"browser-resolve": "^1.11.2",
6262
"browserify": "latest",
6363
"chai": "latest",
64-
"chalk": "latest",
64+
"chalk": "^4.1.2",
6565
"convert-source-map": "latest",
6666
"del": "5.1.0",
6767
"diff": "^4.0.2",

scripts/browserIntegrationTest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
const chalk = require("chalk");
23
const { join } = require("path");
34
const { readFileSync } = require("fs");
45
try {
@@ -17,7 +18,6 @@ const playwright = require("playwright");
1718
const debugging = false;
1819

1920
(async () => {
20-
const chalk = (await import("chalk")).default;
2121
for (const browserType of ["chromium", "firefox"]) {
2222
const browser = await playwright[browserType].launch({ headless: !debugging });
2323
const context = await browser.newContext();

scripts/build/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const mkdirp = require("mkdirp");
88
const del = require("del");
99
const File = require("vinyl");
1010
const ts = require("../../lib/typescript");
11+
const chalk = require("chalk");
1112
const which = require("which");
1213
const { spawn } = require("child_process");
1314
const { CancellationToken, CancelError, Deferred } = require("prex");
@@ -26,7 +27,6 @@ const { Readable, Duplex } = require("stream");
2627
* @property {boolean} [waitForExit=true]
2728
*/
2829
async function exec(cmd, args, options = {}) {
29-
const chalk = (await import("chalk")).default;
3030
return /**@type {Promise<{exitCode: number}>}*/(new Promise((resolve, reject) => {
3131
const { ignoreExitCode, cancelToken = CancellationToken.none, waitForExit = true } = options;
3232
cancelToken.throwIfCancellationRequested();

0 commit comments

Comments
 (0)