Skip to content

Commit 253af11

Browse files
chore(project): update fs-extra to 10.x (#10299)
* chore(project): update fs-extra to 10.x * chore(project): update yarn cache Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 7be55cd commit 253af11

File tree

20 files changed

+65
-26
lines changed

20 files changed

+65
-26
lines changed
-50.6 KB
Binary file not shown.
52.4 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"cross-spawn": "^6.0.5",
5959
"doctoc": "^1.4.0",
6060
"eslint": "^7.28.0",
61-
"fs-extra": "^8.1.0",
61+
"fs-extra": "^10.0.0",
6262
"glob": "^7.1.4",
6363
"husky": "^7.0.0",
6464
"jest": "^27.0.6",

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"clipboardy": "^2.1.0",
3838
"enquirer": "^2.3.6",
3939
"fast-glob": "^3.2.7",
40-
"fs-extra": "^8.0.1",
40+
"fs-extra": "^10.0.0",
4141
"inquirer": "^6.4.1",
4242
"klaw-sync": "^6.0.0",
4343
"lodash.template": "^4.5.0",

packages/colors/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"@carbon/scss-generator": "^10.13.0",
4242
"@carbon/test-utils": "^10.20.0",
4343
"change-case": "^4.1.1",
44-
"fs-extra": "^8.1.0",
44+
"fs-extra": "^10.0.0",
4545
"node-sass": "^6.0.1",
4646
"rimraf": "^3.0.0"
4747
},

packages/elements/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"devDependencies": {
4848
"@carbon/cli": "^10.31.0",
49-
"fs-extra": "^8.1.0",
49+
"fs-extra": "^10.0.0",
5050
"klaw-sync": "^6.0.0",
5151
"replace-in-file": "^3.4.2",
5252
"rimraf": "^3.0.0"

packages/feature-flags/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@rollup/plugin-babel": "^5.3.0",
4343
"@rollup/plugin-node-resolve": "^13.0.0",
4444
"change-case": "^4.1.2",
45-
"fs-extra": "^9.0.1",
45+
"fs-extra": "^10.0.0",
4646
"js-yaml": "^3.14.0",
4747
"rimraf": "^3.0.2",
4848
"rollup": "^2.46.0",

packages/icon-build-helpers/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
"browserslist-config-carbon": "^10.6.1",
3636
"change-case": "^4.1.1",
3737
"core-js": "^3.16.0",
38-
"fs-extra": "^8.1.0",
38+
"fs-extra": "^10.0.0",
3939
"joi": "^14.3.1",
4040
"js-yaml": "^3.12.1",
4141
"klaw-sync": "^6.0.0",
42-
"memfs": "^3.2.2",
42+
"memfs": "^3.4.0",
4343
"prettier": "^2.2.1",
4444
"prop-types": "^15.6.2",
4545
"react": "^16.6.0",

packages/icon-build-helpers/src/__tests__/registry-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ describe('registry', () => {
1616
beforeEach(() => {
1717
jest.mock('fs', () => {
1818
const memfs = require('memfs');
19+
// Note: it seems that memfs does not support this and it is something
20+
// that fs-extra requires in order to operate. In the interim, we will
21+
// point the native realpath to the default realpath to get around this
22+
// issue.
23+
memfs.fs.realpath.native = memfs.fs.realpath;
1924
vol = memfs.vol;
2025
return memfs.fs;
2126
});

packages/icon-build-helpers/src/metadata/__tests__/metadata-test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ describe('Metadata', () => {
1818
beforeEach(() => {
1919
jest.mock('fs', () => {
2020
const memfs = require('memfs');
21+
// Note: it seems that memfs does not support this and it is something
22+
// that fs-extra requires in order to operate. In the interim, we will
23+
// point the native realpath to the default realpath to get around this
24+
// issue.
25+
memfs.fs.realpath.native = memfs.fs.realpath;
2126
vol = memfs.vol;
2227
return memfs.fs;
2328
});

0 commit comments

Comments
 (0)