Skip to content

Commit b17b8e2

Browse files
Update most dev dependencies (#14267)
* Update ESLint * Remove unused lodash and enhanced-resolve * Update chalk * Update `fancy-log` * Update `mergeiterator` * [lockfile] Update `cached-path-relative` * [lockfile] Update `tar` * [lockfile] Update `elliptic` * [lockfile] Update `copy-props` * [lockfile] Update `ssri` * [lockfile] Update `y18n` * [lockfile] Update `ini`
1 parent e9756cb commit b17b8e2

File tree

3 files changed

+264
-140
lines changed

3 files changed

+264
-140
lines changed

babel-worker.cjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
const { transformSync } = require("@babel/core");
22
const { mkdirSync, statSync, readFileSync, writeFileSync } = require("fs");
33
const { dirname } = require("path");
4-
const chalk = require("chalk");
54
const fancyLog = require("fancy-log");
65

6+
let chalk;
7+
const chalkP = import("chalk").then(ns => {
8+
chalk = ns.default;
9+
});
10+
711
function needCompile(src, dest) {
812
let destStat;
913
try {
@@ -19,7 +23,9 @@ function needCompile(src, dest) {
1923
return srcStat.mtimeMs > destStat.mtimeMs;
2024
}
2125

22-
exports.transform = function (src, dest) {
26+
exports.transform = function transform(src, dest) {
27+
if (!chalk) return chalkP.then(() => transform(src, dest));
28+
2329
mkdirSync(dirname(dest), { recursive: true });
2430
if (!needCompile(src, dest)) {
2531
return;

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,17 @@
4343
"@typescript-eslint/eslint-plugin": "^5.5.0",
4444
"@typescript-eslint/parser": "^5.5.0",
4545
"babel-plugin-transform-charcodes": "^0.2.0",
46-
"chalk": "^2.4.2",
46+
"chalk": "^5.0.0",
4747
"charcodes": "^0.2.0",
48-
"enhanced-resolve": "^5.8.2",
49-
"eslint": "^8.1.0",
48+
"eslint": "^8.9.0",
5049
"eslint-formatter-codeframe": "^7.32.1",
5150
"eslint-import-resolver-node": "^0.3.6",
5251
"eslint-plugin-flowtype": "^8.0.3",
5352
"eslint-plugin-import": "^2.25.4",
54-
"eslint-plugin-jest": "^25.2.2",
53+
"eslint-plugin-jest": "^26.1.0",
5554
"eslint-plugin-node": "^11.1.0",
56-
"eslint-plugin-prettier": "^3.4.0",
57-
"fancy-log": "^1.3.3",
55+
"eslint-plugin-prettier": "^4.0.0",
56+
"fancy-log": "^2.0.0",
5857
"flow-bin": "^0.123.0",
5958
"glob": "^7.1.7",
6059
"gulp": "^4.0.2",
@@ -65,8 +64,7 @@
6564
"jest": "^27.4.0",
6665
"jest-worker": "^27.4.0",
6766
"lint-staged": "^9.2.0",
68-
"lodash": "^4.17.21",
69-
"mergeiterator": "^1.2.5",
67+
"mergeiterator": "^1.4.4",
7068
"prettier": "2.5.0",
7169
"rollup": "~2.54.0",
7270
"rollup-plugin-dts": "^2.0.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy