From a6e970c42becb1ec457630ec5df428285a004902 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 21 Mar 2020 12:23:12 +0800 Subject: [PATCH 1/4] bump mkdirp to 1.0.3, which support promise --- package.json | 2 +- packages/next/build/index.ts | 3 +-- packages/next/export/index.ts | 3 +-- packages/next/export/worker.js | 3 +-- packages/next/package.json | 4 ++-- test/integration/create-next-app/index.test.js | 5 +---- yarn.lock | 15 ++++++++++----- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index f6512307ff35c..8304782e4acb1 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "jest-cli": "24.9.0", "lerna": "3.14.1", "lint-staged": "9.4.2", - "mkdirp": "0.5.1", + "mkdirp": "1.0.3", "moment": "^2.24.0", "node-fetch": "2.6.0", "node-notifier": "5.4.0", diff --git a/packages/next/build/index.ts b/packages/next/build/index.ts index a63780edc9044..ba4e08dfe15df 100644 --- a/packages/next/build/index.ts +++ b/packages/next/build/index.ts @@ -6,7 +6,7 @@ import escapeStringRegexp from 'escape-string-regexp' import findUp from 'find-up' import fs from 'fs' import Worker from 'jest-worker' -import mkdirpOrig from 'mkdirp' +import mkdirp from 'mkdirp' import nanoid from 'next/dist/compiled/nanoid/index.js' import path from 'path' import { pathToRegexp } from 'path-to-regexp' @@ -80,7 +80,6 @@ const fsStat = promisify(fs.stat) const fsMove = promisify(fs.rename) const fsReadFile = promisify(fs.readFile) const fsWriteFile = promisify(fs.writeFile) -const mkdirp = promisify(mkdirpOrig) const staticCheckWorker = require.resolve('./utils') diff --git a/packages/next/export/index.ts b/packages/next/export/index.ts index e43f65e243417..d4cce5501cd88 100644 --- a/packages/next/export/index.ts +++ b/packages/next/export/index.ts @@ -7,7 +7,7 @@ import { writeFileSync, } from 'fs' import Worker from 'jest-worker' -import mkdirpModule from 'mkdirp' +import mkdirp from 'mkdirp' import { cpus } from 'os' import { dirname, join, resolve, sep } from 'path' import { promisify } from 'util' @@ -35,7 +35,6 @@ import { eventCliSession } from '../telemetry/events' import { Telemetry } from '../telemetry/storage' import { normalizePagePath } from '../next-server/server/normalize-page-path' -const mkdirp = promisify(mkdirpModule) const copyFile = promisify(copyFileOrig) const createProgress = (total: number, label = 'Exporting') => { diff --git a/packages/next/export/worker.js b/packages/next/export/worker.js index d54536af22090..4ea079253c36b 100644 --- a/packages/next/export/worker.js +++ b/packages/next/export/worker.js @@ -1,4 +1,4 @@ -import mkdirpModule from 'mkdirp' +import mkdirp from 'mkdirp' import { promisify } from 'util' import url from 'url' import { extname, join, dirname, sep } from 'path' @@ -14,7 +14,6 @@ import { SERVER_PROPS_EXPORT_ERROR } from '../lib/constants' const envConfig = require('../next-server/lib/runtime-config') const writeFileP = promisify(writeFile) -const mkdirp = promisify(mkdirpModule) const accessP = promisify(access) global.__NEXT_DATA__ = { diff --git a/packages/next/package.json b/packages/next/package.json index cd1053d8c8e87..5db4f861ef50c 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -114,7 +114,7 @@ "lodash.curry": "4.1.1", "lru-cache": "5.1.1", "mini-css-extract-plugin": "0.8.0", - "mkdirp": "0.5.1", + "mkdirp": "1.0.3", "native-url": "0.2.6", "node-fetch": "2.6.0", "ora": "3.4.0", @@ -175,7 +175,7 @@ "@types/lodash.curry": "4.1.6", "@types/lru-cache": "5.1.0", "@types/mini-css-extract-plugin": "0.8.0", - "@types/mkdirp": "0.5.2", + "@types/mkdirp": "1.0.0", "@types/nanoid": "2.0.0", "@types/node-fetch": "2.3.4", "@types/react": "16.9.17", diff --git a/test/integration/create-next-app/index.test.js b/test/integration/create-next-app/index.test.js index c60777c3e85df..276573b6a68ea 100644 --- a/test/integration/create-next-app/index.test.js +++ b/test/integration/create-next-app/index.test.js @@ -1,12 +1,9 @@ /* eslint-env jest */ -import mkdirpModule from 'mkdirp' +import mkdirp from 'mkdirp' import path from 'path' import fs from 'fs' import execa from 'execa' import os from 'os' -import { promisify } from 'util' - -const mkdirp = promisify(mkdirpModule) const cli = require.resolve('create-next-app/dist/index.js') const cwd = path.join( diff --git a/yarn.lock b/yarn.lock index 2a449b0016e38..afbef2eaf81ed 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2707,10 +2707,10 @@ dependencies: "@types/node" "*" -"@types/mkdirp@0.5.2": - version "0.5.2" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f" - integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg== +"@types/mkdirp@1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-1.0.0.tgz#16ce0eabe4a9a3afe64557ad0ee6886ec3d32927" + integrity sha512-ONFY9//bCEr3DWKON3iDv/Q8LXnhaYYaNDeFSN0AtO5o4sLf9F0pstJKKKjQhXE0kJEeHs8eR6SAsROhhc2Csw== dependencies: "@types/node" "*" @@ -10829,7 +10829,12 @@ mk-dirs@^1.0.0: resolved "https://registry.yarnpkg.com/mk-dirs/-/mk-dirs-1.0.0.tgz#44ee67f82341c6762718e88e85e577882e1f67fd" integrity sha1-RO5n+CNBxnYnGOiOheV3iC4fZ/0= -mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: +mkdirp@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.3.tgz#4cf2e30ad45959dddea53ad97d518b6c8205e1ea" + integrity sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g== + +"mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= From 3896d1782938cf7d66a08b747dc5b83d2e4c1d6f Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 21 Mar 2020 12:38:42 +0800 Subject: [PATCH 2/4] fix mkdirp in spr-cache.ts --- packages/next/next-server/server/spr-cache.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/next/next-server/server/spr-cache.ts b/packages/next/next-server/server/spr-cache.ts index 65b0de02e47e0..bfe2c80bd797e 100644 --- a/packages/next/next-server/server/spr-cache.ts +++ b/packages/next/next-server/server/spr-cache.ts @@ -1,13 +1,12 @@ import fs from 'fs' import LRUCache from 'lru-cache' -import mkdirpOrig from 'mkdirp' +import mkdirp from 'mkdirp' import path from 'path' import { promisify } from 'util' import { PrerenderManifest } from '../../build' import { PRERENDER_MANIFEST } from '../lib/constants' import { normalizePagePath } from './normalize-page-path' -const mkdirp = promisify(mkdirpOrig) const readFile = promisify(fs.readFile) const writeFile = promisify(fs.writeFile) From c53d47e7295ee7dde767a4fd0c15e23266527e1e Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 21 Mar 2020 13:02:42 +0800 Subject: [PATCH 3/4] bump fs-extra to 9.0.0 --- package.json | 3 +- .../integration/create-next-app/index.test.js | 7 ++--- yarn.lock | 29 +++++++++++++++++++ 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8304782e4acb1..2df76f6eb5a72 100644 --- a/package.json +++ b/package.json @@ -72,13 +72,12 @@ "express": "4.17.0", "faunadb": "2.6.1", "firebase": "6.3.4", - "fs-extra": "7.0.1", + "fs-extra": "9.0.0", "get-port": "5.0.0", "isomorphic-unfetch": "3.0.0", "jest-cli": "24.9.0", "lerna": "3.14.1", "lint-staged": "9.4.2", - "mkdirp": "1.0.3", "moment": "^2.24.0", "node-fetch": "2.6.0", "node-notifier": "5.4.0", diff --git a/test/integration/create-next-app/index.test.js b/test/integration/create-next-app/index.test.js index 276573b6a68ea..c7bb146dd1b6d 100644 --- a/test/integration/create-next-app/index.test.js +++ b/test/integration/create-next-app/index.test.js @@ -1,7 +1,6 @@ /* eslint-env jest */ -import mkdirp from 'mkdirp' import path from 'path' -import fs from 'fs' +import fs from 'fs-extra' import execa from 'execa' import os from 'os' @@ -18,13 +17,13 @@ const run = (...args) => execa('node', [cli, ...args], { cwd }) describe('create next app', () => { beforeAll(async () => { jest.setTimeout(1000 * 60) - await mkdirp(cwd) + await fs.mkdirp(cwd) }) it('non-empty directory', async () => { const projectName = 'non-empty-directory' - await mkdirp(path.join(cwd, projectName)) + await fs.mkdirp(path.join(cwd, projectName)) const pkg = path.join(cwd, projectName, 'package.json') fs.writeFileSync(pkg, '{ "foo": "bar" }') diff --git a/yarn.lock b/yarn.lock index afbef2eaf81ed..f81110185c870 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3681,6 +3681,11 @@ asyncro@^3.0.0: resolved "https://registry.yarnpkg.com/asyncro/-/asyncro-3.0.0.tgz#3c7a732e263bc4a42499042f48d7d858e9c0134e" integrity sha512-nEnWYfrBmA3taTiuiOoZYmgJ/CNrSoQLeLs29SeLcPu60yaw/mHDBHV0iOZ051fTvsTHxpCY+gXibqT9wbQYfg== +at-least-node@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2" + integrity sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg== + atob-lite@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696" @@ -7386,6 +7391,16 @@ fs-extra@7.0.1, fs-extra@^7.0.0: jsonfile "^4.0.0" universalify "^0.1.0" +fs-extra@9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.0.tgz#b6afc31036e247b2466dc99c29ae797d5d4580a3" + integrity sha512-pmEYSk3vYsG/bF651KPUXZ+hvjpgWYw/Gc7W9NFUe3ZVLczKKWIij3IKpOrQcdw4TILtibFslZ0UmR8Vvzig4g== + dependencies: + at-least-node "^1.0.0" + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^1.0.0" + fs-extra@^8.0.0: version "8.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" @@ -9617,6 +9632,15 @@ jsonfile@^4.0.0: optionalDependencies: graceful-fs "^4.1.6" +jsonfile@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179" + integrity sha512-jR2b5v7d2vIOust+w3wtFKZIfpC2pnRmFAhAC/BuweZFQR8qZzxH1OyrQ10HmdVYiXWkYUqPVsz91cG7EL2FBg== + dependencies: + universalify "^1.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + jsonparse@^1.2.0: version "1.3.1" resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" @@ -16464,6 +16488,11 @@ universalify@^0.1.0: resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== +universalify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d" + integrity sha512-rb6X1W158d7pRQBg5gkR8uPaSfiids68LTJQYOtEUhoJUWBdaQHsuT/EUduxXYxcrt4r5PJ4fuHW1MHT6p0qug== + unpipe@1.0.0, unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" From b801f47359c1c4dea9292255ca3ae83715bb38a6 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sat, 21 Mar 2020 13:20:48 +0800 Subject: [PATCH 4/4] remove mkdirp --- packages/next/build/index.ts | 6 +++--- packages/next/build/profiler/profiler.js | 3 +-- .../plugins/terser-webpack-plugin/src/TaskRunner.js | 7 ++++--- packages/next/export/index.ts | 9 +++++---- packages/next/export/worker.js | 10 +++++----- packages/next/next-server/server/spr-cache.ts | 4 ++-- packages/next/package.json | 2 -- yarn.lock | 12 ------------ 8 files changed, 20 insertions(+), 33 deletions(-) diff --git a/packages/next/build/index.ts b/packages/next/build/index.ts index ba4e08dfe15df..5f9f3f1ccc217 100644 --- a/packages/next/build/index.ts +++ b/packages/next/build/index.ts @@ -6,7 +6,6 @@ import escapeStringRegexp from 'escape-string-regexp' import findUp from 'find-up' import fs from 'fs' import Worker from 'jest-worker' -import mkdirp from 'mkdirp' import nanoid from 'next/dist/compiled/nanoid/index.js' import path from 'path' import { pathToRegexp } from 'path-to-regexp' @@ -80,6 +79,7 @@ const fsStat = promisify(fs.stat) const fsMove = promisify(fs.rename) const fsReadFile = promisify(fs.readFile) const fsWriteFile = promisify(fs.writeFile) +const mkdir = promisify(fs.mkdir) const staticCheckWorker = require.resolve('./utils') @@ -300,7 +300,7 @@ export default async function build(dir: string, conf = null): Promise { })), } - await mkdirp(distDir) + await mkdir(distDir, { recursive: true }) // We need to write the manifest with rewrites before build // so serverless can import the manifest await fsWriteFile(routesManifestPath, JSON.stringify(routesManifest), 'utf8') @@ -754,7 +754,7 @@ export default async function build(dir: string, conf = null): Promise { if (page === '/') pagesManifest['/index'] = relativeDest if (page === '/.amp') pagesManifest['/index.amp'] = relativeDest } - await mkdirp(path.dirname(dest)) + await mkdir(path.dirname(dest), { recursive: true }) await fsMove(orig, dest) } diff --git a/packages/next/build/profiler/profiler.js b/packages/next/build/profiler/profiler.js index 89afb1332515e..ffaa00f2d8bd1 100644 --- a/packages/next/build/profiler/profiler.js +++ b/packages/next/build/profiler/profiler.js @@ -1,5 +1,4 @@ import path from 'path' -import mkdirp from 'mkdirp' import fs from 'fs' let inspector @@ -92,7 +91,7 @@ export const createTrace = outputPath => { const profiler = new Profiler(inspector) if (/\/|\\/.test(outputPath)) { const dirPath = path.dirname(outputPath) - mkdirp.sync(dirPath) + fs.mkdirSync(dirPath, { recursive: true }) } const fsStream = fs.createWriteStream(outputPath) diff --git a/packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js b/packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js index d8c0b48df39fd..17e2244a2e869 100644 --- a/packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js +++ b/packages/next/build/webpack/plugins/terser-webpack-plugin/src/TaskRunner.js @@ -2,8 +2,7 @@ import { join } from 'path' import minify from './minify' import { promisify } from 'util' import Worker from 'jest-worker' -import { writeFile, readFile } from 'fs' -import mkdirp from 'mkdirp' +import { mkdirSync, writeFile, readFile } from 'fs' const worker = require.resolve('./minify') const writeFileP = promisify(writeFile) @@ -12,7 +11,9 @@ const readFileP = promisify(readFile) export default class TaskRunner { constructor({ distDir, cpus, cache, workerThreads }) { if (cache) { - mkdirp.sync((this.cacheDir = join(distDir, 'cache', 'next-minifier'))) + mkdirSync((this.cacheDir = join(distDir, 'cache', 'next-minifier')), { + recursive: true, + }) } // In some cases cpus() returns undefined // https://github.com/nodejs/node/issues/19022 diff --git a/packages/next/export/index.ts b/packages/next/export/index.ts index d4cce5501cd88..808ce043b060c 100644 --- a/packages/next/export/index.ts +++ b/packages/next/export/index.ts @@ -3,11 +3,11 @@ import findUp from 'find-up' import { copyFile as copyFileOrig, existsSync, + mkdir as mkdirOrig, readFileSync, writeFileSync, } from 'fs' import Worker from 'jest-worker' -import mkdirp from 'mkdirp' import { cpus } from 'os' import { dirname, join, resolve, sep } from 'path' import { promisify } from 'util' @@ -36,6 +36,7 @@ import { Telemetry } from '../telemetry/storage' import { normalizePagePath } from '../next-server/server/normalize-page-path' const copyFile = promisify(copyFileOrig) +const mkdir = promisify(mkdirOrig) const createProgress = (total: number, label = 'Exporting') => { let curProgress = 0 @@ -183,7 +184,7 @@ export default async function( } await recursiveDelete(join(outDir)) - await mkdirp(join(outDir, '_next', buildId)) + await mkdir(join(outDir, '_next', buildId), { recursive: true }) writeFileSync( join(distDir, EXPORT_DETAIL), @@ -362,8 +363,8 @@ export default async function( ) const jsonDest = join(pagesDataDir, `${route}.json`) - await mkdirp(dirname(htmlDest)) - await mkdirp(dirname(jsonDest)) + await mkdir(dirname(htmlDest), { recursive: true }) + await mkdir(dirname(jsonDest), { recursive: true }) await copyFile(`${orig}.html`, htmlDest) await copyFile(`${orig}.json`, jsonDest) }) diff --git a/packages/next/export/worker.js b/packages/next/export/worker.js index 4ea079253c36b..7f4ec2220cb03 100644 --- a/packages/next/export/worker.js +++ b/packages/next/export/worker.js @@ -1,9 +1,8 @@ -import mkdirp from 'mkdirp' import { promisify } from 'util' import url from 'url' import { extname, join, dirname, sep } from 'path' import { renderToHTML } from '../next-server/server/render' -import { writeFile, access } from 'fs' +import { access, mkdir as mkdirOrig, writeFile } from 'fs' import AmpHtmlValidator from 'amphtml-validator' import { loadComponents } from '../next-server/server/load-components' import { isDynamicRoute } from '../next-server/lib/router/utils/is-dynamic' @@ -15,6 +14,7 @@ import { SERVER_PROPS_EXPORT_ERROR } from '../lib/constants' const envConfig = require('../next-server/lib/runtime-config') const writeFileP = promisify(writeFile) const accessP = promisify(access) +const mkdir = promisify(mkdirOrig) global.__NEXT_DATA__ = { nextExport: true, @@ -113,7 +113,7 @@ export default async function({ const baseDir = join(outDir, dirname(htmlFilename)) let htmlFilepath = join(outDir, htmlFilename) - await mkdirp(baseDir) + await mkdir(baseDir, { recursive: true }) let html let curRenderOpts = {} let renderMethod = renderToHTML @@ -253,7 +253,7 @@ export default async function({ } await validateAmp(ampHtml, page + '?amp=1') - await mkdirp(ampBaseDir) + await mkdir(ampBaseDir, { recursive: true }) await writeFileP(ampHtmlFilepath, ampHtml, 'utf8') } } @@ -264,7 +264,7 @@ export default async function({ htmlFilename.replace(/\.html$/, '.json') ) - await mkdirp(dirname(dataFile)) + await mkdir(dirname(dataFile), { recursive: true }) await writeFileP(dataFile, JSON.stringify(curRenderOpts.pageData), 'utf8') } results.fromBuildExportRevalidate = curRenderOpts.revalidate diff --git a/packages/next/next-server/server/spr-cache.ts b/packages/next/next-server/server/spr-cache.ts index bfe2c80bd797e..87deb0707539b 100644 --- a/packages/next/next-server/server/spr-cache.ts +++ b/packages/next/next-server/server/spr-cache.ts @@ -1,12 +1,12 @@ import fs from 'fs' import LRUCache from 'lru-cache' -import mkdirp from 'mkdirp' import path from 'path' import { promisify } from 'util' import { PrerenderManifest } from '../../build' import { PRERENDER_MANIFEST } from '../lib/constants' import { normalizePagePath } from './normalize-page-path' +const mkdir = promisify(fs.mkdir) const readFile = promisify(fs.readFile) const writeFile = promisify(fs.writeFile) @@ -182,7 +182,7 @@ export async function setSprCache( if (sprOptions.flushToDisk) { try { const seedPath = getSeedPath(pathname, 'html') - await mkdirp(path.dirname(seedPath)) + await mkdir(path.dirname(seedPath), { recursive: true }) await writeFile(seedPath, data.html, 'utf8') await writeFile( getSeedPath(pathname, 'json'), diff --git a/packages/next/package.json b/packages/next/package.json index 5db4f861ef50c..d42b384d40f91 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -114,7 +114,6 @@ "lodash.curry": "4.1.1", "lru-cache": "5.1.1", "mini-css-extract-plugin": "0.8.0", - "mkdirp": "1.0.3", "native-url": "0.2.6", "node-fetch": "2.6.0", "ora": "3.4.0", @@ -175,7 +174,6 @@ "@types/lodash.curry": "4.1.6", "@types/lru-cache": "5.1.0", "@types/mini-css-extract-plugin": "0.8.0", - "@types/mkdirp": "1.0.0", "@types/nanoid": "2.0.0", "@types/node-fetch": "2.3.4", "@types/react": "16.9.17", diff --git a/yarn.lock b/yarn.lock index f81110185c870..668c42fee2964 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2707,13 +2707,6 @@ dependencies: "@types/node" "*" -"@types/mkdirp@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-1.0.0.tgz#16ce0eabe4a9a3afe64557ad0ee6886ec3d32927" - integrity sha512-ONFY9//bCEr3DWKON3iDv/Q8LXnhaYYaNDeFSN0AtO5o4sLf9F0pstJKKKjQhXE0kJEeHs8eR6SAsROhhc2Csw== - dependencies: - "@types/node" "*" - "@types/nanoid@2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@types/nanoid/-/nanoid-2.0.0.tgz#b59002c475e6dfcc26e67ba563ff61b512e5ebf8" @@ -10853,11 +10846,6 @@ mk-dirs@^1.0.0: resolved "https://registry.yarnpkg.com/mk-dirs/-/mk-dirs-1.0.0.tgz#44ee67f82341c6762718e88e85e577882e1f67fd" integrity sha1-RO5n+CNBxnYnGOiOheV3iC4fZ/0= -mkdirp@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.3.tgz#4cf2e30ad45959dddea53ad97d518b6c8205e1ea" - integrity sha512-6uCP4Qc0sWsgMLy1EOqqS/3rjDHOEnsStVr/4vtAIK2Y5i2kA7lFFejYrpIyiN9w0pYf4ckeCYT9f1r1P9KX5g== - "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"