From 51716ead768382b54cc48348fa0d2634e7ce91d7 Mon Sep 17 00:00:00 2001 From: yangpei <2517625275@qq.com> Date: Sun, 27 Dec 2020 14:55:54 +0800 Subject: [PATCH] fix: add cross-env to fix bug on windows --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 51e7361..cd19f01 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "test": "jest --coverage", "e2e": "cypress open", "doc": "dumi dev", - "example": "concurrently \"APP_ROOT=example umi dev\" \"npm run build --prefix packages/core\" \"imove -d\"", + "example": "concurrently \"cross-env APP_ROOT=example umi dev\" \"npm run build --prefix packages/core\" \"imove -d\"", "postinstall": "lerna init && lerna bootstrap && npm link packages/cli" }, "jest": { @@ -27,6 +27,7 @@ "@typescript-eslint/eslint-plugin": "^2.29.0", "@typescript-eslint/parser": "^2.29.0", "concurrently": "^5.3.0", + "cross-env": "^7.0.3", "cypress": "^6.2.0", "dumi": "^1.0.38", "eslint": "^6.8.0",