Skip to content

Commit

Permalink
Remove unused packages from xplat/js/package.json
Browse files Browse the repository at this point in the history
Summary:
We have a large amount of small packages that are completely unused, or only have one call site. This diff cleans up a lot of them and reduces node_modules by 12 MiB (down to 187).

Changelog: [Internal]

Reviewed By: motiz88

Differential Revision: D21088213

fbshipit-source-id: 5fa7d3da5cbe744b0d9d3e3450d6135c1488ee79
  • Loading branch information
cpojer authored and facebook-github-bot committed Apr 17, 2020
1 parent ccba71d commit b651e53
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
3 changes: 1 addition & 2 deletions packages/metro-core/package.json
Expand Up @@ -14,8 +14,7 @@
"dependencies": {
"jest-haste-map": "^24.9.0",
"lodash.throttle": "^4.1.1",
"metro-resolver": "0.59.0",
"wordwrap": "^1.0.0"
"metro-resolver": "0.59.0"
},
"license": "MIT"
}
4 changes: 0 additions & 4 deletions packages/metro/package.json
Expand Up @@ -23,10 +23,8 @@
"@babel/types": "^7.0.0",
"absolute-path": "^0.0.0",
"async": "^2.4.0",
"buffer-crc32": "^0.2.13",
"chalk": "^2.4.1",
"ci-info": "^2.0.0",
"concat-stream": "^1.6.0",
"connect": "^3.6.5",
"debug": "^2.2.0",
"denodeify": "^1.2.1",
Expand Down Expand Up @@ -66,9 +64,7 @@
"strip-ansi": "^4.0.0",
"temp": "0.8.3",
"throat": "^4.1.0",
"wordwrap": "^1.0.0",
"ws": "^1.1.5",
"xpipe": "^1.0.5",
"yargs": "^14.2.0"
},
"devDependencies": {
Expand Down
17 changes: 1 addition & 16 deletions yarn.lock
Expand Up @@ -1742,11 +1742,6 @@ bser@2.1.1:
dependencies:
node-int64 "^0.4.0"

buffer-crc32@^0.2.13:
version "0.2.13"
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=

buffer-from@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
Expand Down Expand Up @@ -2051,7 +2046,7 @@ concat-map@0.0.1:
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=

concat-stream@^1.4.10, concat-stream@^1.6.0:
concat-stream@^1.4.10:
version "1.6.2"
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==
Expand Down Expand Up @@ -7044,11 +7039,6 @@ word-wrap@~1.2.3:
resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c"
integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==

wordwrap@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"
integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=

wordwrap@~0.0.2:
version "0.0.3"
resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107"
Expand Down Expand Up @@ -7141,11 +7131,6 @@ xml-name-validator@^3.0.0:
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"
integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==

xpipe@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/xpipe/-/xpipe-1.0.5.tgz#8dd8bf45fc3f7f55f0e054b878f43a62614dafdf"
integrity sha1-jdi/Rfw/f1Xw4FS4ePQ6YmFNr98=

xtend@~4.0.1:
version "4.0.2"
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
Expand Down

0 comments on commit b651e53

Please sign in to comment.