Skip to content

Commit

Permalink
fix(scripts): properly import chalk for nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed May 17, 2021
1 parent efabc7e commit 8bb74d0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
"@testing-library/jest-dom": "5.11.9",
"@testing-library/react": "10.4.9",
"@testing-library/react-hooks": "5.0.3",
"@types/chalk": "2.2.0",
"@types/copy-webpack-plugin": "6.4.0",
"@types/jest": "24.9.1",
"@types/jest-axe": "3.2.2",
Expand All @@ -103,7 +102,7 @@
"@types/webpack-env": "1.16.0",
"@types/yargs": "13.0.11",
"beachball": "1.53.1",
"chalk": "2.4.2",
"chalk": "4.1.1",
"copy-webpack-plugin": "8.1.0",
"cross-env": "^5.1.4",
"css-loader": "5.0.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/exec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check
const path = require('path');
const child_process = require('child_process');
const chalk = require('chalk').default;
const chalk = require('chalk');
const { logStatus } = require('./logging');

const SEPARATOR = process.platform === 'win32' ? ';' : ':',
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-beta.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

const path = require('path');
const chalk = require('chalk').default;
const chalk = require('chalk');
const execSync = require('./exec-sync');
const getAllPackageInfo = require('./monorepo/getAllPackageInfo');

Expand Down
3 changes: 1 addition & 2 deletions scripts/update-package-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
* node update-package-versions.js "6.0.0-alpha" ">=6.0.0-0 <7.0.0-0"
*/

const path = require('path');
const process = require('process');
const chalk = require('chalk').default;
const chalk = require('chalk');
const getAllPackageInfo = require('./monorepo/getAllPackageInfo');
const writeConfig = require('./write-config');

Expand Down
17 changes: 9 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4644,13 +4644,6 @@
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.12.tgz#6160ae454cd89dae05adc3bb97997f488b608201"
integrity sha512-aN5IAC8QNtSUdQzxu7lGBgYAOuU1tmRU4c9dIq5OKGf/SBVjXo+ffM2wEjudAWbgpOhy60nLoAGH1xm8fpCKFQ==

"@types/[email protected]":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@types/chalk/-/chalk-2.2.0.tgz#b7f6e446f4511029ee8e3f43075fb5b73fbaa0ba"
integrity sha512-1zzPV9FDe1I/WHhRkf9SNgqtRJWZqrBWgu7JGveuHmmyR9CnAPCie2N/x+iHrgnpYBIcCJWHBoMRv2TRWktsvw==
dependencies:
chalk "*"

"@types/cheerio@*":
version "0.22.11"
resolved "https://registry.yarnpkg.com/@types/cheerio/-/cheerio-0.22.11.tgz#61c0facf9636d14ba5f77fc65ed8913aa845d717"
Expand Down Expand Up @@ -8809,7 +8802,7 @@ chainsaw@~0.1.0:
dependencies:
traverse ">=0.3.0 <0.4"

chalk@*, chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.2.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2, chalk@^2.4.0, chalk@^2.4.1, chalk@^2.4.2:
[email protected], chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.2.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2, chalk@^2.4.0, chalk@^2.4.1, chalk@^2.4.2:
version "2.4.2"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424"
integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==
Expand All @@ -8826,6 +8819,14 @@ [email protected], chalk@^4.0.0, chalk@^4.1.0:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

[email protected]:
version "4.1.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.1.tgz#c80b3fab28bf6371e6863325eee67e618b77e6ad"
integrity sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==
dependencies:
ansi-styles "^4.1.0"
supports-color "^7.1.0"

chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
Expand Down

0 comments on commit 8bb74d0

Please sign in to comment.