From e2228c44a6ed3ff5620d69ba45c502939dc300f8 Mon Sep 17 00:00:00 2001 From: glyph-cat Date: Mon, 6 Jan 2025 00:57:04 +0800 Subject: [PATCH] Updated post-install script --- packages/react/package.json | 2 +- .../react/scripts/run/{patch-install.sh => post-install.sh} | 0 scripts/run/post-install.sh | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) rename packages/react/scripts/run/{patch-install.sh => post-install.sh} (100%) diff --git a/packages/react/package.json b/packages/react/package.json index 50902e9..b24b6ad 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -10,7 +10,7 @@ ], "types": "lib/types/index.d.ts", "scripts": { - "patch-install": "sh ./scripts/run/patch-install.sh", + "postinstall": "if [ -e \"./scripts/run/post-install.sh\" ]; then sh ./scripts/run/post-install.sh; fi", "lint": "eslint .", "lint:fix": "eslint . --fix", "lint:path": "eslint", diff --git a/packages/react/scripts/run/patch-install.sh b/packages/react/scripts/run/post-install.sh similarity index 100% rename from packages/react/scripts/run/patch-install.sh rename to packages/react/scripts/run/post-install.sh diff --git a/scripts/run/post-install.sh b/scripts/run/post-install.sh index 0f240f5..69c26a2 100644 --- a/scripts/run/post-install.sh +++ b/scripts/run/post-install.sh @@ -4,8 +4,5 @@ set -e for item in ./packages/*; do if [ -d "$item" ]; then yarn --cwd $item install - if [ "$item" = "./packages/react" ]; then - yarn --cwd $item patch-install - fi fi done