diff --git a/package.json b/package.json index 6263d97701..649ca1fcef 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "@types/eslint": "~8.4.1", "@types/express": "4.17.14", "@types/flat": "^5.0.1", - "@types/fs-extra": "^9.0.13", + "@types/fs-extra": "^11.0.0", "@types/is-ci": "^3.0.0", "@types/jasmine": "~2.8.6", "@types/jasminewd2": "~2.0.3", @@ -155,7 +155,7 @@ "file-type": "^16.2.0", "flat": "^5.0.2", "fork-ts-checker-webpack-plugin": "7.2.13", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "html-webpack-plugin": "5.5.0", "http-server": "14.1.0", "husky": "^8.0.1", diff --git a/packages/cra-to-nx/package.json b/packages/cra-to-nx/package.json index 1b3f3cf90b..9334d2f4c2 100644 --- a/packages/cra-to-nx/package.json +++ b/packages/cra-to-nx/package.json @@ -23,7 +23,7 @@ }, "homepage": "https://nx.dev", "dependencies": { - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "glob": "7.1.4", "nx": "file:../nx", "tslib": "^2.3.0", diff --git a/packages/create-nx-plugin/package.json b/packages/create-nx-plugin/package.json index 4ab77101c0..a687d8fe6f 100644 --- a/packages/create-nx-plugin/package.json +++ b/packages/create-nx-plugin/package.json @@ -31,7 +31,7 @@ "dependencies": { "@nrwl/devkit": "file:../devkit", "enquirer": "~2.3.6", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "nx": "file:../nx", "tmp": "~0.2.1", "yargs-parser": "21.1.1" diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 382ae6f94c..5ff16e25d6 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -35,7 +35,7 @@ "chalk": "4.1.0", "dotenv": "~10.0.0", "fast-glob": "3.2.7", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "tslib": "^2.3.0" }, "peerDependencies": { diff --git a/packages/expo/package.json b/packages/expo/package.json index 9dab0e2aef..f67b25d0e8 100644 --- a/packages/expo/package.json +++ b/packages/expo/package.json @@ -35,7 +35,7 @@ "@nrwl/workspace": "file:../workspace", "chalk": "^4.1.0", "enhanced-resolve": "^5.8.3", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "metro-resolver": "^0.73.3", "node-fetch": "^2.6.7", "tar-fs": "^2.1.1", diff --git a/packages/js/package.json b/packages/js/package.json index e222beb61a..41508fcbc1 100644 --- a/packages/js/package.json +++ b/packages/js/package.json @@ -37,7 +37,7 @@ "@nrwl/workspace": "file:../workspace", "chalk": "4.1.0", "fast-glob": "3.2.7", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "ignore": "^5.0.4", "js-tokens": "^4.0.0", "minimatch": "3.0.5", diff --git a/packages/js/src/utils/inline.ts b/packages/js/src/utils/inline.ts index 952f981265..0ebc21299b 100644 --- a/packages/js/src/utils/inline.ts +++ b/packages/js/src/utils/inline.ts @@ -76,10 +76,7 @@ export function postProcessInlinedDependencies( const isBuildable = !!inlineDependency.buildOutputPath; if (isBuildable) { - copySync(depOutputPath, destDepOutputPath, { - overwrite: true, - recursive: true, - }); + copySync(depOutputPath, destDepOutputPath, { overwrite: true }); } else { movePackage(depOutputPath, destDepOutputPath); } @@ -248,7 +245,7 @@ function buildInlineGraphExternals( } function movePackage(from: string, to: string) { - copySync(from, to, { overwrite: true, recursive: true }); + copySync(from, to, { overwrite: true }); removeSync(from); } diff --git a/packages/next/package.json b/packages/next/package.json index 3a511b7e5b..2ca6b674ca 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -45,7 +45,7 @@ "@svgr/webpack": "^6.1.2", "chalk": "4.1.0", "dotenv": "~10.0.0", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "ignore": "^5.0.4", "semver": "7.3.4", "ts-node": "10.9.1", diff --git a/packages/nx-plugin/package.json b/packages/nx-plugin/package.json index 78c4c641ac..33e9202bbb 100644 --- a/packages/nx-plugin/package.json +++ b/packages/nx-plugin/package.json @@ -33,7 +33,7 @@ "@nrwl/js": "file:../js", "@nrwl/linter": "file:../linter", "dotenv": "~10.0.0", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "tslib": "^2.3.0" }, "publishConfig": { diff --git a/packages/nx/package.json b/packages/nx/package.json index 75e64ca85a..aa1451b44d 100644 --- a/packages/nx/package.json +++ b/packages/nx/package.json @@ -46,7 +46,7 @@ "fast-glob": "3.2.7", "figures": "3.2.0", "flat": "^5.0.2", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "glob": "7.1.4", "ignore": "^5.0.4", "js-yaml": "4.1.0", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 7142f5b726..c599eb451d 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -34,7 +34,7 @@ "@nrwl/workspace": "file:../workspace", "chalk": "^4.1.0", "enhanced-resolve": "^5.8.3", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "ignore": "^5.0.4", "metro-resolver": "^0.73.3", "minimatch": "3.0.5", diff --git a/packages/rollup/package.json b/packages/rollup/package.json index 96684807c2..b06abc15a3 100644 --- a/packages/rollup/package.json +++ b/packages/rollup/package.json @@ -41,7 +41,7 @@ "babel-plugin-transform-async-to-promises": "^0.8.15", "chalk": "4.1.0", "dotenv": "~10.0.0", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "postcss": "^8.4.14", "rollup": "^2.56.2", "rollup-plugin-copy": "^3.4.0", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 4e56ba8e65..a70adec867 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -42,7 +42,7 @@ "dotenv": "~10.0.0", "file-loader": "^6.2.0", "fork-ts-checker-webpack-plugin": "7.2.13", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "ignore": "^5.0.4", "less": "3.12.2", "less-loader": "^11.1.0", diff --git a/packages/workspace/package.json b/packages/workspace/package.json index 6470d84a93..795d1cf715 100644 --- a/packages/workspace/package.json +++ b/packages/workspace/package.json @@ -80,7 +80,7 @@ "enquirer": "~2.3.6", "figures": "3.2.0", "flat": "^5.0.2", - "fs-extra": "^10.1.0", + "fs-extra": "^11.1.0", "glob": "7.1.4", "ignore": "^5.0.4", "jsonc-parser": "3.2.0", diff --git a/yarn.lock b/yarn.lock index 1683a3df47..aceb0ce624 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6651,6 +6651,14 @@ resolved "https://registry.yarnpkg.com/@types/flat/-/flat-5.0.2.tgz#642a51a037d1f52fda082312b0e4566dc09a9f8f" integrity sha512-3zsplnP2djeps5P9OyarTxwRpMLoe5Ash8aL9iprw0JxB+FAHjY+ifn4yZUuW4/9hqtnmor6uvjSRzJhiVbrEQ== +"@types/fs-extra@^11.0.0": + version "11.0.0" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-11.0.0.tgz#72aa5dbaeb51c52a2a7e8f8f2ed6c323699d849a" + integrity sha512-zdV5odfHf95B4qr6bdpshG4VMm/3xgnPhSJLa3xh75CYr35e34k+4FQli82Q48sPqwHazJGy+6+jl4T+Vw1AMg== + dependencies: + "@types/jsonfile" "*" + "@types/node" "*" + "@types/fs-extra@^8.0.1": version "8.1.2" resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-8.1.2.tgz#7125cc2e4bdd9bd2fc83005ffdb1d0ba00cca61f" @@ -6658,13 +6666,6 @@ dependencies: "@types/node" "*" -"@types/fs-extra@^9.0.13": - version "9.0.13" - resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-9.0.13.tgz#7594fbae04fe7f1918ce8b3d213f74ff44ac1f45" - integrity sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA== - dependencies: - "@types/node" "*" - "@types/glob@*": version "8.0.0" resolved "https://registry.yarnpkg.com/@types/glob/-/glob-8.0.0.tgz#321607e9cbaec54f687a0792b2d1d370739455d2" @@ -6819,6 +6820,13 @@ resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== +"@types/jsonfile@*": + version "6.1.1" + resolved "https://registry.yarnpkg.com/@types/jsonfile/-/jsonfile-6.1.1.tgz#ac84e9aefa74a2425a0fb3012bdea44f58970f1b" + integrity sha512-GSgiRCVeapDN+3pqA35IkQwasaCh/0YFH5dEF6S88iDvEn901DjOeH3/QPY+XYP1DFzDZPvIvfeEgk+7br5png== + dependencies: + "@types/node" "*" + "@types/lodash@^4.14.167": version "4.14.188" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.188.tgz#e4990c4c81f7c9b00c5ff8eae389c10f27980da5" @@ -13342,6 +13350,15 @@ fs-extra@3.0.1: jsonfile "^3.0.0" universalify "^0.1.0" +fs-extra@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.1.0.tgz#5784b102104433bb0e090f48bfc4a30742c357ed" + integrity sha512-0rcTq621PD5jM/e0a3EJoGC/1TC5ZBCERW82LQuwfGnCa1V8w7dpYH1yNu+SLb6E5dkeCBzKEyLGlFrnr+dUyw== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-extra@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0"