From d5570f8bd795a352c943e396b23495f2bb6b82cf Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 11 Jan 2021 16:45:52 +0100 Subject: [PATCH] Remove @babel/core and babel-loader explicit dependencies, as they're already installed by Next.js and shouldn't be specified (let Next.js auto-update those) + use fixed versions + ignore storybook-static folder (when exporting static site) --- .gitignore | 3 ++- package.json | 10 ++++------ yarn.lock | 12 ++++++------ 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index e58d8bedc..f943449c0 100644 --- a/.gitignore +++ b/.gitignore @@ -149,4 +149,5 @@ _site # Tmp files (cache, etc.) *.cache -.vercel +# Storybook +storybook-static/ diff --git a/package.json b/package.json index 7b55bdbe1..262e34d90 100644 --- a/package.json +++ b/package.json @@ -161,14 +161,13 @@ "winston": "3.3.3" }, "devDependencies": { - "@babel/core": "^7.12.10", "@cypress/react": "4.16.3", "@emotion/eslint-plugin": "11.0.0", "@next/bundle-analyzer": "10.0.5", - "@storybook/addon-actions": "^6.1.11", - "@storybook/addon-essentials": "^6.1.11", - "@storybook/addon-links": "^6.1.11", - "@storybook/react": "^6.1.11", + "@storybook/addon-actions": "6.1.11", + "@storybook/addon-essentials": "6.1.11", + "@storybook/addon-links": "6.1.11", + "@storybook/react": "6.1.11", "@svgr/cli": "5.5.0", "@types/amplitude-js": "7.0.0", "@types/cookies": "0.7.6", @@ -203,7 +202,6 @@ "@typescript-eslint/parser": "4.12.0", "@welldone-software/why-did-you-render": "6.0.5", "@zeit/next-source-maps": "0.0.4-canary.1", - "babel-loader": "^8.2.2", "concurrently": "5.3.0", "cross-env": "7.0.3", "current-git-branch": "1.1.0", diff --git a/yarn.lock b/yarn.lock index 467de24aa..25441cf11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -175,7 +175,7 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@^7.12.1", "@babel/core@^7.12.10", "@babel/core@^7.12.3": +"@babel/core@^7.12.1", "@babel/core@^7.12.3": version "7.12.10" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.12.10.tgz#b79a2e1b9f70ed3d84bbfb6d8c4ef825f606bccd" integrity sha512-eTAlQKq65zHfkHZV0sIVODCPGVgoo1HdBlbSLi9CqOzuZanMv2ihzY+4paiKr1mH+XmYESMAmJ/dpZ68eN6d8w== @@ -2529,7 +2529,7 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@storybook/addon-actions@6.1.11", "@storybook/addon-actions@^6.1.11": +"@storybook/addon-actions@6.1.11": version "6.1.11" resolved "https://registry.yarnpkg.com/@storybook/addon-actions/-/addon-actions-6.1.11.tgz#73e91cc95c45ea477cfd4f3603f6b95f5829eab6" integrity sha512-J44XLx2G732OG7Az79Cpk5UlI5SyXHeQqdykwT/4IEQXSBXAYWSTIJJjpJdcjR/D+zpklab1QDSiWxCrKbe81A== @@ -2630,7 +2630,7 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/addon-essentials@^6.1.11": +"@storybook/addon-essentials@6.1.11": version "6.1.11" resolved "https://registry.yarnpkg.com/@storybook/addon-essentials/-/addon-essentials-6.1.11.tgz#0147d429b33581cc9d42398d73a8c6a5962d5796" integrity sha512-p1AfzzR9qt6s0xxg/GclRqClbtV+67lWLUV0d37xmTNDnGbiE5guk7nKnga0yLrzhQawiOBjRUFMfAQj2t7Ycw== @@ -2648,7 +2648,7 @@ regenerator-runtime "^0.13.7" ts-dedent "^2.0.0" -"@storybook/addon-links@^6.1.11": +"@storybook/addon-links@6.1.11": version "6.1.11" resolved "https://registry.yarnpkg.com/@storybook/addon-links/-/addon-links-6.1.11.tgz#84b20b0c13bbfc8270cdf52389ce52f98c415b6a" integrity sha512-OIBeOdTHNr/egIuyOUEtEBtZJXVp9PEPQ4MDxvKsCgpnXruPhjenPNW+mQKxm4SefpePW7zkx6k1ubpYVJUeag== @@ -2953,7 +2953,7 @@ dependencies: core-js "^3.0.1" -"@storybook/react@^6.1.11": +"@storybook/react@6.1.11": version "6.1.11" resolved "https://registry.yarnpkg.com/@storybook/react/-/react-6.1.11.tgz#e94403cd878c66b445df993bad9bec9023db3ebe" integrity sha512-EmR7yvVW6z6AYhfzAgJMGR/5+igeBGa1EePaEIibn51r5uboSB72N12NaADyF2OaycIdV+0sW6vP9Zvlvexa/w== @@ -4947,7 +4947,7 @@ babel-jest@^26.6.3: graceful-fs "^4.2.4" slash "^3.0.0" -babel-loader@^8.0.6, babel-loader@^8.2.2: +babel-loader@^8.0.6: version "8.2.2" resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.2.tgz#9363ce84c10c9a40e6c753748e1441b60c8a0b81" integrity sha512-JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g==