Skip to content

Commit 24e0c09

Browse files
committed
chore: move react-scripts to dev dependencies
the dependencies of react-scripts are not used in production, so it makes sense to move them to dev dependencies to minimize the false positives when running `yarn audit --groups dependencies`. After making this change, I needed to add some module resolutions in order to keep storybook and jest working.
1 parent 2c693f2 commit 24e0c09

File tree

2 files changed

+23
-61
lines changed

2 files changed

+23
-61
lines changed

app/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"react-dom": "17.0.2",
5050
"react-i18next": "11.7.0",
5151
"react-router-dom": "^6.3.0",
52-
"react-scripts": "^5.0.1",
5352
"react-toastify": "6.0.6",
5453
"react-virtualized": "9.21.2",
5554
"reactour": "1.18.0",
@@ -92,12 +91,18 @@
9291
"jest-canvas-mock": "2.3.0",
9392
"jest-environment-jsdom": "27.5.1",
9493
"prettier": "2.1.2",
94+
"react-scripts": "^5.0.1",
9595
"sass": "1.43.4",
9696
"storybook": "7.5.3",
9797
"ts-protoc-gen": "0.12.0",
9898
"typescript": "4.1.6",
9999
"webpack": "5.89.0"
100100
},
101+
"resolutions": {
102+
"strip-ansi": "6.0.1",
103+
"jackspeak": "2.1.1",
104+
"wrap-ansi": "7.0.0"
105+
},
101106
"eslintConfig": {
102107
"extends": "react-app",
103108
"ignorePatterns": [

app/yarn.lock

Lines changed: 17 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -2484,18 +2484,6 @@
24842484
dependencies:
24852485
browser-headers "^0.4.1"
24862486

2487-
"@isaacs/cliui@^8.0.2":
2488-
version "8.0.2"
2489-
resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550"
2490-
integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==
2491-
dependencies:
2492-
string-width "^5.1.2"
2493-
string-width-cjs "npm:string-width@^4.2.0"
2494-
strip-ansi "^7.0.1"
2495-
strip-ansi-cjs "npm:strip-ansi@^6.0.1"
2496-
wrap-ansi "^8.1.0"
2497-
wrap-ansi-cjs "npm:wrap-ansi@^7.0.0"
2498-
24992487
"@istanbuljs/load-nyc-config@^1.0.0":
25002488
version "1.1.0"
25012489
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced"
@@ -5415,11 +5403,6 @@ ansi-regex@^5.0.0, ansi-regex@^5.0.1:
54155403
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
54165404
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
54175405

5418-
ansi-regex@^6.0.1:
5419-
version "6.0.1"
5420-
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a"
5421-
integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==
5422-
54235406
ansi-styles@^3.2.1:
54245407
version "3.2.1"
54255408
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d"
@@ -5439,11 +5422,6 @@ ansi-styles@^5.0.0:
54395422
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b"
54405423
integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==
54415424

5442-
ansi-styles@^6.1.0:
5443-
version "6.2.1"
5444-
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5"
5445-
integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
5446-
54475425
anymatch@^3.0.3, anymatch@~3.1.2:
54485426
version "3.1.2"
54495427
resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716"
@@ -6343,6 +6321,15 @@ cliui@^7.0.2:
63436321
strip-ansi "^6.0.0"
63446322
wrap-ansi "^7.0.0"
63456323

6324+
cliui@^8.0.1:
6325+
version "8.0.1"
6326+
resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa"
6327+
integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==
6328+
dependencies:
6329+
string-width "^4.2.0"
6330+
strip-ansi "^6.0.1"
6331+
wrap-ansi "^7.0.0"
6332+
63466333
clone-deep@^4.0.1:
63476334
version "4.0.1"
63486335
resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387"
@@ -7551,11 +7538,6 @@ duplexify@^3.5.0, duplexify@^3.6.0:
75517538
readable-stream "^2.0.0"
75527539
stream-shift "^1.0.0"
75537540

7554-
eastasianwidth@^0.2.0:
7555-
version "0.2.0"
7556-
resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb"
7557-
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
7558-
75597541
ee-first@1.1.1:
75607542
version "1.1.1"
75617543
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
@@ -9588,12 +9570,12 @@ istanbul-reports@^3.0.2, istanbul-reports@^3.1.3:
95889570
html-escaper "^2.0.0"
95899571
istanbul-lib-report "^3.0.0"
95909572

9591-
jackspeak@^2.3.5:
9592-
version "2.3.6"
9593-
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8"
9594-
integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==
9573+
jackspeak@2.1.1, jackspeak@^2.3.5:
9574+
version "2.1.1"
9575+
resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.1.1.tgz#2a42db4cfbb7e55433c28b6f75d8b796af9669cd"
9576+
integrity sha512-juf9stUEwUaILepraGOWIJTLwg48bUnBmRqd2ln2Os1sW987zeoj/hzhbvRB95oMuS2ZTpjULmdwHNX4rzZIZw==
95959577
dependencies:
9596-
"@isaacs/cliui" "^8.0.2"
9578+
cliui "^8.0.1"
95979579
optionalDependencies:
95989580
"@pkgjs/parseargs" "^0.11.0"
95999581

@@ -13572,7 +13554,7 @@ string-natural-compare@^3.0.1:
1357213554
resolved "https://registry.yarnpkg.com/string-natural-compare/-/string-natural-compare-3.0.1.tgz#7a42d58474454963759e8e8b7ae63d71c1e7fdf4"
1357313555
integrity sha512-n3sPwynL1nwKi3WJ6AIsClwBMa0zTi54fn2oLU6ndfTSIO05xaznjSf15PcBZU6FNWbmN5Q6cxT4V5hGvB4taw==
1357413556

13575-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
13557+
string-width@^4.1.0, string-width@^4.2.0:
1357613558
version "4.2.3"
1357713559
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
1357813560
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -13581,15 +13563,6 @@ string-natural-compare@^3.0.1:
1358113563
is-fullwidth-code-point "^3.0.0"
1358213564
strip-ansi "^6.0.1"
1358313565

13584-
string-width@^5.0.1, string-width@^5.1.2:
13585-
version "5.1.2"
13586-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
13587-
integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
13588-
dependencies:
13589-
eastasianwidth "^0.2.0"
13590-
emoji-regex "^9.2.2"
13591-
strip-ansi "^7.0.1"
13592-
1359313566
string.prototype.matchall@^4.0.6:
1359413567
version "4.0.7"
1359513568
resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d"
@@ -13643,20 +13616,13 @@ stringify-object@^3.3.0:
1364313616
is-obj "^1.0.1"
1364413617
is-regexp "^1.0.0"
1364513618

13646-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
13619+
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1, strip-ansi@^7.0.0, strip-ansi@^7.0.1:
1364713620
version "6.0.1"
1364813621
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
1364913622
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
1365013623
dependencies:
1365113624
ansi-regex "^5.0.1"
1365213625

13653-
strip-ansi@^7.0.0, strip-ansi@^7.0.1:
13654-
version "7.0.1"
13655-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.0.1.tgz#61740a08ce36b61e50e65653f07060d000975fb2"
13656-
integrity sha512-cXNxvT8dFNRVfhVME3JAe98mkXDYN2O1l7jmcwMnOslDeESg1rF/OZMtK0nRAhiari1unG5cD4jG3rapUAkLbw==
13657-
dependencies:
13658-
ansi-regex "^6.0.1"
13659-
1366013626
strip-bom@^3.0.0:
1366113627
version "3.0.0"
1366213628
resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3"
@@ -14973,7 +14939,7 @@ workbox-window@6.5.2:
1497314939
"@types/trusted-types" "^2.0.2"
1497414940
workbox-core "6.5.2"
1497514941

14976-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
14942+
wrap-ansi@7.0.0, wrap-ansi@^7.0.0:
1497714943
version "7.0.0"
1497814944
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
1497914945
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -14982,15 +14948,6 @@ workbox-window@6.5.2:
1498214948
string-width "^4.1.0"
1498314949
strip-ansi "^6.0.0"
1498414950

14985-
wrap-ansi@^8.1.0:
14986-
version "8.1.0"
14987-
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"
14988-
integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==
14989-
dependencies:
14990-
ansi-styles "^6.1.0"
14991-
string-width "^5.0.1"
14992-
strip-ansi "^7.0.1"
14993-
1499414951
wrappy@1:
1499514952
version "1.0.2"
1499614953
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"

0 commit comments

Comments
 (0)