From 29126fe69c49b2e0f38bb256f4eee3d0958399bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Fri, 17 Nov 2023 10:26:03 +0800 Subject: [PATCH] chore: script update (#45937) --- scripts/ci-mock-project-build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/ci-mock-project-build.sh b/scripts/ci-mock-project-build.sh index 6c559be160..d54b0f1986 100644 --- a/scripts/ci-mock-project-build.sh +++ b/scripts/ci-mock-project-build.sh @@ -3,14 +3,23 @@ # clean up rm -rf ~tmpProj/ +# clean up `packageManager` since this will block yarn install +echo "Cleaning up package.json..." +sed -i '/packageManager/d' 'package.json' # linux no need for `''` +sed -i '' '/packageManager/d' 'package.json' # mac need `''` + # clone project +echo "Cloning project..." git clone https://github.com/ant-design/ant-design-examples.git ~tmpProj --depth=1 # change directory +echo "Changing directory..." cd ~tmpProj/examples/with-nextjs-inline-style # install dependencies +echo "Installing dependencies..." yarn # build +echo "Building..." yarn run build