diff --git a/package.json b/package.json index e8df98aa7..159ef53ec 100644 --- a/package.json +++ b/package.json @@ -102,6 +102,7 @@ "lint:js": "eslint packages/*/src/**/*.{js,jsx}", "lint:ts": "tslint --project tsconfig.json packages/**/*.{ts,tsx}", "postinstall": "lerna bootstrap", + "prepare": "lerna run --stream prepare", "preversion": "git symbolic-ref --short -q HEAD | egrep -q '^master$' && echo 'ERROR: You can not release from the master branch.' && exit 1 || true", "release": "yarn lerna publish --force-publish", "scaffold": "yo ./packages/yo-generators --with-tests --with-demo", diff --git a/packages/lumx-core/package.json b/packages/lumx-core/package.json index e43ac73dc..94a8dd49b 100644 --- a/packages/lumx-core/package.json +++ b/packages/lumx-core/package.json @@ -37,8 +37,8 @@ "generate:design-tokens": "yarn node style-dictionary", "build": "webpack", "postbuild": "rm -rf ./dist/*.js ./dist/*.js.map", - "postinstall": "install-peers", "postversion": "version-changelog ../../CHANGELOG.md && git add ../../CHANGELOG.md && git commit --amend", + "prepare": "install-peers", "prepublishOnly": "yarn build" }, "sideEffects": false, diff --git a/packages/lumx-react/package.json b/packages/lumx-react/package.json index 5a208943e..9a601d2ee 100644 --- a/packages/lumx-react/package.json +++ b/packages/lumx-react/package.json @@ -118,7 +118,7 @@ "scripts": { "build": "webpack", "postbuild": "dts-bundle-generator --no-check --external-types=react --external-imports=moment -o dist/lumx.react.d.ts src/index.ts", - "postinstall": "install-peers", + "prepare": "install-peers", "prepublishOnly": "yarn build", "test": "jest --config jest/index.js --coverage --notify --passWithNoTests --detectOpenHandles --runInBand", "storybook": "start-storybook -p 9000" diff --git a/yarn.lock b/yarn.lock index c1a95ba9a..e83f19984 100644 --- a/yarn.lock +++ b/yarn.lock @@ -24659,7 +24659,7 @@ style-dictionary@^2.10.0: resolve-cwd "^2.0.0" tinycolor2 "^1.4.1" -style-loader@^1.0.0: +style-loader@^0.23.1, style-loader@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-1.1.2.tgz#1b519c19faf548df6182b93e72ea1a4156022c2f" integrity sha512-0Mpq1ZHFDCNq1F+6avNBgv+7q8V+mWRuzehxyJT+aKgzyN/yfKTwjYqaYwBgx+11UpQxL21zNQfzzlz+JcGURw==