Skip to content

Commit

Permalink
Update prepare script for husky v9
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
joshbwlng committed Apr 9, 2024
1 parent a8eb699 commit a74e315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a74e315

Please sign in to comment.