Skip to content

Commit

Permalink
Update most dev dependencies (#14267)
Browse files Browse the repository at this point in the history
* 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`
  • Loading branch information
nicolo-ribaudo committed Feb 14, 2022
1 parent e9756cb commit b17b8e2
Show file tree
Hide file tree
Showing 3 changed files with 264 additions and 140 deletions.
10 changes: 8 additions & 2 deletions babel-worker.cjs
@@ -1,9 +1,13 @@
const { transformSync } = require("@babel/core");
const { mkdirSync, statSync, readFileSync, writeFileSync } = require("fs");
const { dirname } = require("path");
const chalk = require("chalk");
const fancyLog = require("fancy-log");

let chalk;
const chalkP = import("chalk").then(ns => {
chalk = ns.default;
});

function needCompile(src, dest) {
let destStat;
try {
Expand All @@ -19,7 +23,9 @@ function needCompile(src, dest) {
return srcStat.mtimeMs > destStat.mtimeMs;
}

exports.transform = function (src, dest) {
exports.transform = function transform(src, dest) {
if (!chalk) return chalkP.then(() => transform(src, dest));

mkdirSync(dirname(dest), { recursive: true });
if (!needCompile(src, dest)) {
return;
Expand Down
14 changes: 6 additions & 8 deletions package.json
Expand Up @@ -43,18 +43,17 @@
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"babel-plugin-transform-charcodes": "^0.2.0",
"chalk": "^2.4.2",
"chalk": "^5.0.0",
"charcodes": "^0.2.0",
"enhanced-resolve": "^5.8.2",
"eslint": "^8.1.0",
"eslint": "^8.9.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^25.2.2",
"eslint-plugin-jest": "^26.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"fancy-log": "^1.3.3",
"eslint-plugin-prettier": "^4.0.0",
"fancy-log": "^2.0.0",
"flow-bin": "^0.123.0",
"glob": "^7.1.7",
"gulp": "^4.0.2",
Expand All @@ -65,8 +64,7 @@
"jest": "^27.4.0",
"jest-worker": "^27.4.0",
"lint-staged": "^9.2.0",
"lodash": "^4.17.21",
"mergeiterator": "^1.2.5",
"mergeiterator": "^1.4.4",
"prettier": "2.5.0",
"rollup": "~2.54.0",
"rollup-plugin-dts": "^2.0.0",
Expand Down

0 comments on commit b17b8e2

Please sign in to comment.