From c344052be37089ba193f4b7f3352a65ee2184587 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 2 Mar 2022 15:47:43 +0000 Subject: [PATCH] Ensure that we have a prepare script Prepare script is needed when installing package from source, so npm will know how to compile them. --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index a2fb7ea6..72c28281 100644 --- a/package.json +++ b/package.json @@ -79,6 +79,8 @@ "deps": "ncu -u && npm install", "lint": "npm ci && pre-commit run -a", "prepack": "npm ci && npm run compile", + "//prepare": "Prepare is needed for installation from source", + "prepare": "npm run compile", "preversion": "bin/version-bump-allowed", "watch": "tsc --watch -p .", "test": "nyc -s -a mocha && nyc report --check-coverage",