From c22c927d927742bf561e24b6a98d9de24cfd8739 Mon Sep 17 00:00:00 2001 From: chencheng Date: Tue, 5 Sep 2017 07:29:18 +0800 Subject: [PATCH] chore: fix publish script --- packages/dva-loading/package.json | 5 ++++- tasks/publish.sh | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/dva-loading/package.json b/packages/dva-loading/package.json index c86e26f3..55354f12 100644 --- a/packages/dva-loading/package.json +++ b/packages/dva-loading/package.json @@ -30,5 +30,8 @@ "files": [ "lib", "src" - ] + ], + "dependencies": { + "babel-runtime": "^6.26.0" + } } diff --git a/tasks/publish.sh b/tasks/publish.sh index bf910596..78aab3b6 100755 --- a/tasks/publish.sh +++ b/tasks/publish.sh @@ -20,6 +20,10 @@ cd "$root_path/packages/dva-react-router-3" $ruban build echo 'build dva-react-router-3' +cd "$root_path/packages/dva-loading" +$ruban build +echo 'build dva-loading' + cd "$root_path/packages/dva" rm -rf dist $umdBundler -g react:React,react-dom:ReactDOM -n dva -i ./index.js -o dist/dva.js