From 02651cc7bc8d9aefd8d29902faf9a7c5ee000e1b Mon Sep 17 00:00:00 2001 From: ckie Date: Mon, 20 Feb 2023 13:55:53 +0200 Subject: [PATCH] Add prepare script to force `npm publish` to include built JS --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 46153f5..da5b9cc 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "build:types": "tsc --emitDeclarationOnly", "build:js": "tsc", "lint": "eslint src/**/* && tsc --noEmit", - "test": "jest --ci --verbose --forceExit --detectOpenHandles --coverage" + "test": "jest --ci --verbose --forceExit --detectOpenHandles --coverage", + "prepare": "npm run build" }, "repository": { "type": "git",