diff --git a/.husky/pre-commit b/.husky/pre-commit index 3065b1b2e6..62e4a1f96d 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - node ./scripts/verifymail.js npx --no-install nano-staged diff --git a/package.json b/package.json index e0cdda907e..b901d96a3f 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ ], "scripts": { "preinstall": "npx only-allow pnpm", - "prepare": "husky install && node scripts/generate-nutui.cjs && node scripts/generate-nutui-taro-vue.cjs && node ./scripts/generate-taro-route.cjs", + "prepare": "husky && node scripts/generate-nutui.cjs && node scripts/generate-nutui-taro-vue.cjs && node ./scripts/generate-taro-route.cjs", "dev": "vite --open --force", "dev:h5": "pnpm --dir ./packages/nutui-taro-demo dev h5", "dev:weapp": "pnpm --dir ./packages/nutui-taro-demo dev weapp",