From 1bfa16d8628fb9978750bfe7ac71909ace129747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=BE=99=E7=94=9F?= Date: Thu, 25 Apr 2024 20:54:23 +0800 Subject: [PATCH] fix: support start playground in different os --- apps/playground/package.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/playground/package.json b/apps/playground/package.json index 5a99e6c3..04c4c2ad 100644 --- a/apps/playground/package.json +++ b/apps/playground/package.json @@ -4,7 +4,7 @@ "private": true, "author": "Wells ", "scripts": { - "dev": "HOST=local.netease.com PORT=8001 umi dev", + "dev": "cross-env HOST=local.netease.com PORT=8001 umi dev", "build": "umi build", "postinstall": "umi setup", "setup": "umi setup", diff --git a/package.json b/package.json index 7eeac1d4..16cd4b37 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "@typescript-eslint/parser": "^6.13.2", "conventional-changelog-cli": "^4.1.0", "copyfiles": "^2.4.1", + "cross-env": "^7.0.3", "eslint": "^8.55.0", "eslint-config-ali": "^14.0.2", "eslint-config-prettier": "^9.1.0",