From a74e31500a0f572fc87a85ec437a55bd22bd2975 Mon Sep 17 00:00:00 2001 From: Josh Bowling Date: Tue, 9 Apr 2024 10:54:27 +0900 Subject: [PATCH] Update prepare script for husky v9 Change-type: patch --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 042aa2dc3..d215719b3 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "scripts": { "prepublish": "require-npm4-to-publish", - "prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\" && npm run build", + "prepare": "node -e \"try { (await import('husky')).default() } catch (e) { if (e.code !== 'ERR_MODULE_NOT_FOUND') throw e }\" --input-type module && npm run build", "build": "grunt build", "webpack-browser": "grunt browser", "webpack-module": "grunt module",