From f506c93127a1fc255ffcb658cd2d5282e689cff7 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Fri, 5 Jun 2020 14:24:12 +0200 Subject: [PATCH] ADD dotenv && CLEANUP --- package.json | 7 ++++--- yarn.lock | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 9d27c120..de1ecde4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/design-system", - "version": "6.0.0", + "version": "6.0.0.beta.0", "description": "Storybook design system", "repository": { "type": "git", @@ -19,10 +19,10 @@ "build": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --ignore \"**/*.test.js\" --ignore \"**/*.stories.js\"", "build-docs": "build-storybook --docs", "build-storybook": "build-storybook", - "lint": "eslint .", + "lint": "yarn lint:js && yarn lint:package", "lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.html,.ts,.tsx,.mjs --report-unused-disable-directives", "lint:package": "sort-package-json", - "release": "npm run build && npx ts-node ./scripts/update-chromatic-url.ts && npx sort-package-json && ./scripts/release.sh", + "release": "dotenv yarn build && npx ts-node ./scripts/update-chromatic-url.ts && npx sort-package-json && ./scripts/release.sh", "storybook": "start-storybook -p 6006" }, "husky": { @@ -75,6 +75,7 @@ "babel-plugin-styled-components": "^1.10.7", "chromatic": "^5.0.0-alpha.4", "cross-env": "^7.0.2", + "dotenv-cli": "^3.1.0", "eslint": "^7.1.0", "husky": "^4.2.5", "lint-staged": "^10.2.9", diff --git a/yarn.lock b/yarn.lock index 317eaa9c..be928dcc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6573,6 +6573,16 @@ dot-case@^3.0.3: no-case "^3.0.3" tslib "^1.10.0" +dotenv-cli@^3.1.0: + version "3.1.0" + resolved "https://registry.npmjs.org/dotenv-cli/-/dotenv-cli-3.1.0.tgz#489f78b58bcc6971be2362ba27be73c5c08fd86f" + integrity sha512-sT16Zg7m71IVP/MX2ZBm6JBu6fy8aEgN9kJPywaYhBZnmq7MSQbpvCEhuiGPI08X8G+CQ1Gj/oZZUH1lGvGmqA== + dependencies: + cross-spawn "^7.0.1" + dotenv "^8.1.0" + dotenv-expand "^5.1.0" + minimist "^1.1.3" + dotenv-defaults@^1.0.2: version "1.1.1" resolved "https://registry.npmjs.org/dotenv-defaults/-/dotenv-defaults-1.1.1.tgz#032c024f4b5906d9990eb06d722dc74cc60ec1bd" @@ -6597,7 +6607,7 @@ dotenv@^6.2.0: resolved "https://registry.npmjs.org/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064" integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w== -dotenv@^8.0.0, dotenv@^8.2.0: +dotenv@^8.0.0, dotenv@^8.1.0, dotenv@^8.2.0: version "8.2.0" resolved "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== @@ -10569,7 +10579,7 @@ minimist-options@^4.0.2: arrify "^1.0.1" is-plain-obj "^1.1.0" -minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5: +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==