From ef22666e1dc185119a8de98b55fdc1f2e756d61e Mon Sep 17 00:00:00 2001 From: Gleb Voitenko Date: Thu, 29 Aug 2024 17:58:21 +0300 Subject: [PATCH] fix: scripts --- package-lock.json | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 48ff719..d338f86 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "@diplodoc/cut-extension", "version": "0.1.0", + "hasInstallScript": true, "license": "MIT", "devDependencies": { "@diplodoc/eslint-config": "^2.0.0", diff --git a/package.json b/package.json index 3f59788..7ff5f86 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "build" ], "scripts": { - "init": "husky install && npm run build && npm run test:init", + "init": "husky install && npm run build", + "postinstall": "npm run test:init", "precommit": "npm run lint && npm run test", "build": "run-p build:*", "build:js": "./esbuild/build.mjs",