From eac74a927a5964b0eccc5eeb43da047bf48a945b Mon Sep 17 00:00:00 2001 From: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> Date: Fri, 10 Mar 2023 21:12:35 +0800 Subject: [PATCH] Remove extraneous dependencies (#2360) * Remove unneeded dependencies * Move types to devDependencies --------- Co-authored-by: Martin Henz --- package.json | 11 ++-------- yarn.lock | 60 +--------------------------------------------------- 2 files changed, 3 insertions(+), 68 deletions(-) diff --git a/package.json b/package.json index 462a9e3402..dc8ff55afe 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,6 @@ "@sourceacademy/sharedb-ace": "^2.0.2", "@sourceacademy/sling-client": "^0.1.0", "@szhsin/react-menu": "^3.2.0", - "@types/react-syntax-highlighter": "^15.5.5", - "@types/uuid": "^8.3.4", "ace-builds": "^1.4.14", "acorn": "^8.8.0", "ag-grid-community": "^28.0.2", @@ -89,21 +87,15 @@ "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^14.3.0", "@types/acorn": "^6.0.0", - "@types/common-tags": "^1.8.1", - "@types/draft-js": "^0.11.9", "@types/enzyme": "3.10.12", - "@types/enzyme-adapter-react-16": "^1.0.6", - "@types/estree": "1.0.0", "@types/gapi": "^0.0.42", "@types/gapi.auth2": "^0.0.56", "@types/gapi.client": "^1.0.5", "@types/gapi.client.drive": "^3.0.14", "@types/google.picker": "^0.0.39", - "@types/invariant": "^2.2.35", "@types/jest": "^28.1.6", "@types/lodash": "^4.14.189", "@types/lz-string": "^1.3.34", - "@types/node": "^18.6.1", "@types/react": "^17.0.38", "@types/react-copy-to-clipboard": "^5.0.4", "@types/react-dom": "^17.0.11", @@ -111,11 +103,12 @@ "@types/react-responsive": "^8.0.5", "@types/react-router": "^5.1.19", "@types/react-router-dom": "^5.3.3", - "@types/react-router-redux": "^5.0.21", + "@types/react-syntax-highlighter": "^15.5.5", "@types/react-test-renderer": "^18.0.0", "@types/react-textarea-autosize": "^8.0.0", "@types/redux-mock-store": "^1.0.3", "@types/showdown": "^2.0.0", + "@types/uuid": "^8.3.4", "@types/xml2js": "^0.4.11", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7", "babel-core": "6", diff --git a/yarn.lock b/yarn.lock index c01e16d037..0f9f48a5cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2208,39 +2208,11 @@ dependencies: "@types/node" "*" -"@types/common-tags@^1.8.1": - version "1.8.1" - resolved "https://registry.npmjs.org/@types/common-tags/-/common-tags-1.8.1.tgz" - integrity sha512-20R/mDpKSPWdJs5TOpz3e7zqbeCNuMCPhV7Yndk9KU2Rbij2r5W4RzwDPkzC+2lzUqXYu9rFzTktCBnDjHuNQg== - "@types/dom4@^2.0.1": version "2.0.2" resolved "https://registry.npmjs.org/@types/dom4/-/dom4-2.0.2.tgz" integrity sha512-Rt4IC1T7xkCWa0OG1oSsPa0iqnxlDeQqKXZAHrQGLb7wFGncWm85MaxKUjAGejOrUynOgWlFi4c6S6IyJwoK4g== -"@types/draft-js@^0.11.9": - version "0.11.9" - resolved "https://registry.yarnpkg.com/@types/draft-js/-/draft-js-0.11.9.tgz#b7535fb2511e8b8c8e33ffac2199a5f2988f4fd5" - integrity sha512-cQJBZjjIlGaPA1tOY+wGz2KhlPtAAZOIXpUvGPxPRw5uzZ2tcj8m6Yu1QDV9YgP36+cqE3cUvgkARBzgUiuI/Q== - dependencies: - "@types/react" "*" - immutable "~3.7.4" - -"@types/enzyme-adapter-react-16@^1.0.6": - version "1.0.6" - resolved "https://registry.npmjs.org/@types/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.0.6.tgz" - integrity sha512-VonDkZ15jzqDWL8mPFIQnnLtjwebuL9YnDkqeCDYnB4IVgwUm0mwKkqhrxLL6mb05xm7qqa3IE95m8CZE9imCg== - dependencies: - "@types/enzyme" "*" - -"@types/enzyme@*": - version "3.10.11" - resolved "https://registry.npmjs.org/@types/enzyme/-/enzyme-3.10.11.tgz" - integrity sha512-LEtC7zXsQlbGXWGcnnmOI7rTyP+i1QzQv4Va91RKXDEukLDaNyxu0rXlfMiGEhJwfgTPCTb0R+Pnlj//oM9e/w== - dependencies: - "@types/cheerio" "*" - "@types/react" "*" - "@types/enzyme@3.10.12": version "3.10.12" resolved "https://registry.yarnpkg.com/@types/enzyme/-/enzyme-3.10.12.tgz#ac4494801b38188935580642f772ad18f72c132f" @@ -2272,11 +2244,6 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.52.tgz#7f1f57ad5b741f3d5b210d3b1f145640d89bf8fe" integrity sha512-BZWrtCU0bMVAIliIV+HJO1f1PR41M7NKjfxrFJwwhKI1KwhwOxYw1SXg9ao+CIMt774nFuGiG6eU+udtbEI9oQ== -"@types/estree@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.0.tgz#5fb2e536c1ae9bf35366eed879e827fa59ca41c2" - integrity sha512-WulqXMDUTYAXCjZnk6JtIHPigp55cVtDgDrO2gHRwhyJto21+1zbVCtOYB2L1F9w4qCQ0rOGWBnBe0FNTiEJIQ== - "@types/gapi.auth2@^0.0.56": version "0.0.56" resolved "https://registry.npmjs.org/@types/gapi.auth2/-/gapi.auth2-0.0.56.tgz" @@ -2358,11 +2325,6 @@ resolved "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz" integrity sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w== -"@types/invariant@^2.2.35": - version "2.2.35" - resolved "https://registry.npmjs.org/@types/invariant/-/invariant-2.2.35.tgz" - integrity sha512-DxX1V9P8zdJPYQat1gHyY0xj3efl8gnMVjiM9iCY6y27lj+PoQWkgjt8jDqmovPqULkKVpKRg8J36iQiA+EtEg== - "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": version "2.0.4" resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz" @@ -2420,11 +2382,6 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.23.tgz#3b41a6e643589ac6442bdbd7a4a3ded62f33f7da" integrity sha512-UxDxWn7dl97rKVeVS61vErvw086aCYhDLyvRQZ5Rk65rZKepaFdm53GeqXaKBuOhED4e9uWq34IC3TdSdJJ2Gw== -"@types/node@^18.6.1": - version "18.6.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-18.6.1.tgz#828e4785ccca13f44e2fb6852ae0ef11e3e20ba5" - integrity sha512-z+2vB6yDt1fNwKOeGbckpmirO+VBDuQqecXkgeIqDlaOtmKn6hPR/viQ8cxCfqLU4fTlvM3+YjM367TukWdxpg== - "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz" @@ -2497,16 +2454,6 @@ "@types/react" "*" "@types/react-router" "*" -"@types/react-router-redux@^5.0.21": - version "5.0.21" - resolved "https://registry.yarnpkg.com/@types/react-router-redux/-/react-router-redux-5.0.21.tgz#4615aaaa0d5dbf65c699fca1991b535d6e0ec22f" - integrity sha512-BF2OrI3bW5gJhjqKElu/YK7lnUySFV9BMm5ryJbm47rARLLdCr72dC6cXBzcFORqsDTCrFbhsFsq2ogJRY4fvg== - dependencies: - "@types/history" "^4.7.11" - "@types/react" "*" - "@types/react-router" "*" - redux ">= 3.7.2" - "@types/react-router@*": version "5.1.18" resolved "https://registry.npmjs.org/@types/react-router/-/react-router-5.1.18.tgz" @@ -7450,11 +7397,6 @@ immutable@^4.0.0: resolved "https://registry.npmjs.org/immutable/-/immutable-4.0.0.tgz" integrity sha512-zIE9hX70qew5qTUjSS7wi1iwj/l7+m54KWU247nhM3v806UdGj1yDndXj+IOYxxtW9zyLI+xqFNZjTuDaLUqFw== -immutable@~3.7.4: - version "3.7.6" - resolved "https://registry.npmjs.org/immutable/-/immutable-3.7.6.tgz" - integrity sha1-E7TTyxK++hVIKib+Gy665kAHHks= - import-cwd@^2.0.0: version "2.1.0" resolved "https://registry.npmjs.org/import-cwd/-/import-cwd-2.1.0.tgz" @@ -11940,7 +11882,7 @@ redux-saga@^1.1.3: dependencies: "@redux-saga/core" "^1.1.3" -"redux@>= 3.7.2", redux@^4.0.0, redux@^4.0.4, redux@^4.0.5: +redux@^4.0.0, redux@^4.0.4, redux@^4.0.5: version "4.1.2" resolved "https://registry.npmjs.org/redux/-/redux-4.1.2.tgz" integrity sha512-SH8PglcebESbd/shgf6mii6EIoRM0zrQyjcuQ+ojmfxjTtE0z9Y8pa62iA/OJ58qjP6j27uyW4kUF4jl/jd6sw==