From 29e514b7248ff3c74036b110cf51cb21a5b89551 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Thu, 1 Oct 2020 20:46:26 +0300 Subject: [PATCH] Run build script at prepublish stage --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 88b40dd..cd3f73f 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "test:watch": "jest --watch", "start": "node bin/make-workout.js", "format:js": "prettier --write src/", - "build": "tsc" + "build": "tsc", + "prepublish": "yarn build" }, "main": "dist/index.js", "types": "dist/index.d.ts",