From 8ec9f6c5ce46bd4c8d5124074faeaf68d7183d3e Mon Sep 17 00:00:00 2001 From: Misaka <447f.misaka@outlook.com> Date: Sun, 25 Aug 2019 12:55:23 +0800 Subject: [PATCH] fix: @holoflow/kits not upgrading problem --- just.config.js | 4 +++- package.json | 4 ++-- yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/just.config.js b/just.config.js index c862e282fd1..de655de80fe 100644 --- a/just.config.js +++ b/just.config.js @@ -1,4 +1,4 @@ -const { task, parallel } = require('just-task') +const { task, series, parallel } = require('just-task') const { spawn } = require('child_process') const path = require('path') @@ -22,8 +22,10 @@ task('storybook', () => parallel('lint/fix', 'storybook/serve')) task('storybook/serve', () => step('start-storybook -p 9009 -s public --quiet', { withWarn: true })) task('storybook/build', () => step('build-storybook -s public --quiet', { withWarn: true })) +task('install', () => series('install/holoflows')) task('install/holoflows', async () => { const base = path.join(process.cwd(), 'node_modules/@holoflows') + await step('yarn upgrade @holoflows/kit') await step(`cd ${path.join(base, 'kit')} && yarn && yarn build`) }) diff --git a/package.json b/package.json index 7504b83c23a..29eb0c83089 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "build": "yarn just react/build", "storybook": "yarn just storybook", "storybook/build": "yarn just storybook/build", - "install": "yarn just install/holoflows", - "uninstall": "yarn just install/holoflows" + "install": "yarn just install", + "uninstall": "yarn just install" }, "dependencies": { "@holoflows/kit": "https://github.com/DimensionDev/holoflows-kit", diff --git a/yarn.lock b/yarn.lock index e4c2a8fd942..ed3a7869367 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1285,7 +1285,7 @@ "@holoflows/kit@https://github.com/DimensionDev/holoflows-kit": version "0.4.0" - resolved "https://github.com/DimensionDev/holoflows-kit#a727f0684f626412dfe9f3224a4bc54a4c406eb5" + resolved "https://github.com/DimensionDev/holoflows-kit#c687c1552f97ad330f220a53b6ab185e9086138f" dependencies: "@types/lodash-es" "^4.1.4" concurrent-lock "^1.0.7" @@ -2227,9 +2227,9 @@ "@types/lodash" "*" "@types/lodash@*": - version "4.14.136" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f" - integrity sha512-0GJhzBdvsW2RUccNHOBkabI8HZVdOXmXbXhuKlDEd5Vv12P7oAVGfomGp3Ne21o5D/qu1WmthlNKFaoZJJeErA== + version "4.14.137" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.137.tgz#8a4804937dc6462274ffcc088df8f14fc1b368e2" + integrity sha512-g4rNK5SRKloO+sUGbuO7aPtwbwzMgjK+bm9BBhLD7jGUiGR7zhwYEhSln/ihgYQBeIJ5j7xjyaYzrWTcu3UotQ== "@types/minimatch@^3.0.3": version "3.0.3"