diff --git a/.yarn/cache/memfs-npm-3.2.2-baaae1363e-b50f91aafd.zip b/.yarn/cache/memfs-npm-3.2.2-baaae1363e-b50f91aafd.zip deleted file mode 100644 index 5cc4fda8e398..000000000000 Binary files a/.yarn/cache/memfs-npm-3.2.2-baaae1363e-b50f91aafd.zip and /dev/null differ diff --git a/.yarn/cache/memfs-npm-3.4.1-45d97fd825-6d2f49d447.zip b/.yarn/cache/memfs-npm-3.4.1-45d97fd825-6d2f49d447.zip new file mode 100644 index 000000000000..c58bbb3f17b0 Binary files /dev/null and b/.yarn/cache/memfs-npm-3.4.1-45d97fd825-6d2f49d447.zip differ diff --git a/package.json b/package.json index 220421bef73a..339c6e6ac4de 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "cross-spawn": "^6.0.5", "doctoc": "^1.4.0", "eslint": "^7.28.0", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "glob": "^7.1.4", "husky": "^7.0.0", "jest": "^27.0.6", diff --git a/packages/cli/package.json b/packages/cli/package.json index 4ad29d89c3b3..55ef528b10c2 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -37,7 +37,7 @@ "clipboardy": "^2.1.0", "enquirer": "^2.3.6", "fast-glob": "^3.2.7", - "fs-extra": "^8.0.1", + "fs-extra": "^10.0.0", "inquirer": "^6.4.1", "klaw-sync": "^6.0.0", "lodash.template": "^4.5.0", diff --git a/packages/colors/package.json b/packages/colors/package.json index 2cef638980d8..26217958c54a 100644 --- a/packages/colors/package.json +++ b/packages/colors/package.json @@ -41,7 +41,7 @@ "@carbon/scss-generator": "^10.13.0", "@carbon/test-utils": "^10.20.0", "change-case": "^4.1.1", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "node-sass": "^6.0.1", "rimraf": "^3.0.0" }, diff --git a/packages/elements/package.json b/packages/elements/package.json index 85545d561967..7e4e4c6e5c44 100644 --- a/packages/elements/package.json +++ b/packages/elements/package.json @@ -46,7 +46,7 @@ }, "devDependencies": { "@carbon/cli": "^10.31.0", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "klaw-sync": "^6.0.0", "replace-in-file": "^3.4.2", "rimraf": "^3.0.0" diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.json index 3f831a834fec..ce6b0c4a8736 100644 --- a/packages/feature-flags/package.json +++ b/packages/feature-flags/package.json @@ -42,7 +42,7 @@ "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-node-resolve": "^13.0.0", "change-case": "^4.1.2", - "fs-extra": "^9.0.1", + "fs-extra": "^10.0.0", "js-yaml": "^3.14.0", "rimraf": "^3.0.2", "rollup": "^2.46.0", diff --git a/packages/icon-build-helpers/package.json b/packages/icon-build-helpers/package.json index 02155cd8a0e3..20d65a24d19e 100644 --- a/packages/icon-build-helpers/package.json +++ b/packages/icon-build-helpers/package.json @@ -35,11 +35,11 @@ "browserslist-config-carbon": "^10.6.1", "change-case": "^4.1.1", "core-js": "^3.16.0", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "joi": "^14.3.1", "js-yaml": "^3.12.1", "klaw-sync": "^6.0.0", - "memfs": "^3.2.2", + "memfs": "^3.4.0", "prettier": "^2.2.1", "prop-types": "^15.6.2", "react": "^16.6.0", diff --git a/packages/icon-build-helpers/src/__tests__/registry-test.js b/packages/icon-build-helpers/src/__tests__/registry-test.js index ba9e99ecf752..d17108a170d2 100644 --- a/packages/icon-build-helpers/src/__tests__/registry-test.js +++ b/packages/icon-build-helpers/src/__tests__/registry-test.js @@ -16,6 +16,11 @@ describe('registry', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/__tests__/metadata-test.js b/packages/icon-build-helpers/src/metadata/__tests__/metadata-test.js index 92e9ee327ced..9e640a1a4715 100644 --- a/packages/icon-build-helpers/src/metadata/__tests__/metadata-test.js +++ b/packages/icon-build-helpers/src/metadata/__tests__/metadata-test.js @@ -18,6 +18,11 @@ describe('Metadata', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/__tests__/storage-test.js b/packages/icon-build-helpers/src/metadata/__tests__/storage-test.js index cb793f083fbd..b6a5cc5042cb 100644 --- a/packages/icon-build-helpers/src/metadata/__tests__/storage-test.js +++ b/packages/icon-build-helpers/src/metadata/__tests__/storage-test.js @@ -18,6 +18,11 @@ describe('Storage', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js b/packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js index 6c79346c95b8..d3fbf7d7cab8 100644 --- a/packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js +++ b/packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js @@ -16,6 +16,11 @@ describe('yml', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/extensions/__tests__/categories-test.js b/packages/icon-build-helpers/src/metadata/extensions/__tests__/categories-test.js index 4cf2ef8bf461..7b856d4cb6e7 100644 --- a/packages/icon-build-helpers/src/metadata/extensions/__tests__/categories-test.js +++ b/packages/icon-build-helpers/src/metadata/extensions/__tests__/categories-test.js @@ -18,10 +18,14 @@ describe('categories', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); - Metadata = require('../../'); extension = require('../categories'); yml = require('../../adapters').yml; diff --git a/packages/icon-build-helpers/src/metadata/extensions/__tests__/deprecated-test.js b/packages/icon-build-helpers/src/metadata/extensions/__tests__/deprecated-test.js index 7e8c553beb6e..3946645ec536 100644 --- a/packages/icon-build-helpers/src/metadata/extensions/__tests__/deprecated-test.js +++ b/packages/icon-build-helpers/src/metadata/extensions/__tests__/deprecated-test.js @@ -18,6 +18,11 @@ describe('deprecated', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/extensions/__tests__/icons-test.js b/packages/icon-build-helpers/src/metadata/extensions/__tests__/icons-test.js index f02a0acf2fe9..a059d3569daa 100644 --- a/packages/icon-build-helpers/src/metadata/extensions/__tests__/icons-test.js +++ b/packages/icon-build-helpers/src/metadata/extensions/__tests__/icons-test.js @@ -18,6 +18,11 @@ describe('icons', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icon-build-helpers/src/metadata/extensions/output/__tests__/output-test.js b/packages/icon-build-helpers/src/metadata/extensions/output/__tests__/output-test.js index 11c327d395e3..c4d594dafe61 100644 --- a/packages/icon-build-helpers/src/metadata/extensions/output/__tests__/output-test.js +++ b/packages/icon-build-helpers/src/metadata/extensions/output/__tests__/output-test.js @@ -22,6 +22,11 @@ describe('output', () => { beforeEach(() => { jest.mock('fs', () => { const memfs = require('memfs'); + // Note: it seems that memfs does not support this and it is something + // that fs-extra requires in order to operate. In the interim, we will + // point the native realpath to the default realpath to get around this + // issue. + memfs.fs.realpath.native = memfs.fs.realpath; vol = memfs.vol; return memfs.fs; }); diff --git a/packages/icons-vue/package.json b/packages/icons-vue/package.json index 630d482f9e84..852a50ed9a1e 100644 --- a/packages/icons-vue/package.json +++ b/packages/icons-vue/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@carbon/cli-reporter": "^10.5.0", "@carbon/icons": "^10.44.0", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "prettier": "^2.2.1", "rimraf": "^3.0.0", "rollup": "^2.46.0", diff --git a/packages/themes/package.json b/packages/themes/package.json index 6eb6cfc0ffff..330e9dfcfe7c 100644 --- a/packages/themes/package.json +++ b/packages/themes/package.json @@ -43,7 +43,7 @@ "@carbon/test-utils": "^10.20.0", "change-case": "^4.1.1", "core-js": "^3.16.0", - "fs-extra": "^8.1.0", + "fs-extra": "^10.0.0", "js-yaml": "^3.13.0", "node-sass": "^6.0.1", "rimraf": "^3.0.0" diff --git a/packages/upgrade/package.json b/packages/upgrade/package.json index 18fc90930928..fe3bcc6515e1 100644 --- a/packages/upgrade/package.json +++ b/packages/upgrade/package.json @@ -46,6 +46,6 @@ "yargs": "^17.0.1" }, "devDependencies": { - "memfs": "^3.2.2" + "memfs": "^3.4.0" } } diff --git a/yarn.lock b/yarn.lock index ef63aa8d195f..524f99256d69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1725,7 +1725,7 @@ __metadata: clipboardy: ^2.1.0 enquirer: ^2.3.6 fast-glob: ^3.2.7 - fs-extra: ^8.0.1 + fs-extra: ^10.0.0 inquirer: ^6.4.1 klaw-sync: ^6.0.0 lodash.template: ^4.5.0 @@ -1762,7 +1762,7 @@ __metadata: "@carbon/scss-generator": ^10.13.0 "@carbon/test-utils": ^10.20.0 change-case: ^4.1.1 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 node-sass: ^6.0.1 rimraf: ^3.0.0 languageName: unknown @@ -1781,7 +1781,7 @@ __metadata: "@carbon/motion": ^10.26.0 "@carbon/themes": ^10.48.0 "@carbon/type": ^10.39.0 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 klaw-sync: ^6.0.0 replace-in-file: ^3.4.2 rimraf: ^3.0.0 @@ -1801,7 +1801,7 @@ __metadata: "@rollup/plugin-babel": ^5.3.0 "@rollup/plugin-node-resolve": ^13.0.0 change-case: ^4.1.2 - fs-extra: ^9.0.1 + fs-extra: ^10.0.0 js-yaml: ^3.14.0 rimraf: ^3.0.2 rollup: ^2.46.0 @@ -1837,11 +1837,11 @@ __metadata: browserslist-config-carbon: ^10.6.1 change-case: ^4.1.1 core-js: ^3.16.0 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 joi: ^14.3.1 js-yaml: ^3.12.1 klaw-sync: ^6.0.0 - memfs: ^3.2.2 + memfs: ^3.4.0 prettier: ^2.2.1 prop-types: ^15.6.2 react: ^16.6.0 @@ -1914,7 +1914,7 @@ __metadata: "@carbon/cli-reporter": ^10.5.0 "@carbon/icon-helpers": ^10.25.0 "@carbon/icons": ^10.44.0 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 prettier: ^2.2.1 rimraf: ^3.0.0 rollup: ^2.46.0 @@ -2137,7 +2137,7 @@ __metadata: change-case: ^4.1.1 color: ^3.1.2 core-js: ^3.16.0 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 js-yaml: ^3.13.0 node-sass: ^6.0.1 rimraf: ^3.0.0 @@ -2172,7 +2172,7 @@ __metadata: jscodeshift: ^0.13.0 lodash.clonedeep: ^4.5.0 lodash.merge: ^4.6.2 - memfs: ^3.2.2 + memfs: ^3.4.0 npm-which: ^3.0.1 semver: ^7.3.5 yargs: ^17.0.1 @@ -10904,7 +10904,7 @@ __metadata: cross-spawn: ^6.0.5 doctoc: ^1.4.0 eslint: ^7.28.0 - fs-extra: ^8.1.0 + fs-extra: ^10.0.0 glob: ^7.1.4 husky: ^7.0.0 jest: ^27.0.6 @@ -16858,7 +16858,7 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^8.0.1, fs-extra@npm:^8.1, fs-extra@npm:^8.1.0": +"fs-extra@npm:^8.1, fs-extra@npm:^8.1.0": version: 8.1.0 resolution: "fs-extra@npm:8.1.0" dependencies: @@ -23825,12 +23825,12 @@ __metadata: languageName: node linkType: hard -"memfs@npm:^3.1.2, memfs@npm:^3.2.2": - version: 3.2.2 - resolution: "memfs@npm:3.2.2" +"memfs@npm:^3.1.2, memfs@npm:^3.2.2, memfs@npm:^3.4.0": + version: 3.4.1 + resolution: "memfs@npm:3.4.1" dependencies: fs-monkey: 1.0.3 - checksum: b50f91aafda967c440a38e793bbe70cd04e4f155a38316468b90b7a2256328cebe87e0665ff81057cf72110f9017cbfd1e1a9c66df1ebce3cbf39ec3620220d9 + checksum: 6d2f49d447d1be24ff9c747618933784eeb059189bc6a0d77b7a51c7daf06e2d3a74674a2e2ff1520e2c312bf91e719ed37144cf05087379b3ba0aef0b6aa062 languageName: node linkType: hard