Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(project): update fs-extra to 10.x #10299

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/colors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/elements/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/feature-flags/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/icon-build-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/icon-build-helpers/src/__tests__/registry-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down
2 changes: 1 addition & 1 deletion packages/icons-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/themes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/upgrade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
"yargs": "^17.0.1"
},
"devDependencies": {
"memfs": "^3.2.2"
"memfs": "^3.4.0"
}
}
30 changes: 15 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -10858,7 +10858,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
Expand Down Expand Up @@ -16825,7 +16825,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:
Expand Down Expand Up @@ -23785,12 +23785,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.4.0":
version: 3.4.0
resolution: "memfs@npm:3.4.0"
dependencies:
fs-monkey: 1.0.3
checksum: b50f91aafda967c440a38e793bbe70cd04e4f155a38316468b90b7a2256328cebe87e0665ff81057cf72110f9017cbfd1e1a9c66df1ebce3cbf39ec3620220d9
checksum: 56ed70e1bdbc67d0c3758fa76c7ef25cd48c93c192f20c492e6b9811d783fdc453528d7ea91d9a79d5e6e121efa865adffd13fda30db0fa2b894ab91dfd1d653
languageName: node
linkType: hard

Expand Down