From 60ce8edf3f723c43fa9226fe9d7cb4836bf5e589 Mon Sep 17 00:00:00 2001 From: JC Date: Wed, 12 Jun 2024 01:56:39 +0800 Subject: [PATCH] Update preinstall script --- package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/package.json b/package.json index f6c0196..86024ac 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "lint:pkg-json": "wp-scripts lint-pkg-json", "packages-update": "wp-scripts packages-update", "postinstall": "npx lefthook install", - "preinstall": "if [ -z \"$CI\" ]; then . ~/.nvm/nvm.sh && nvm install && nvm use; fi", + "preinstall": "cross-env npm_config_legacy_peer_deps=false", "reset": "rm -rf node_modules vendor build package-lock.json composer.lock", "setup": "npm run reset && npm i && composer i && npm run build", "start": "wp-scripts start" @@ -84,8 +84,5 @@ "*.scss": [ "wp-scripts lint-style" ] - }, - "dependencies": { - "node-fetch": "^3.3.2" } }