From 8e7566211d477930cc80e92cb302fef23bebc4c5 Mon Sep 17 00:00:00 2001 From: HyunSeob Date: Wed, 20 Dec 2017 11:04:13 +0900 Subject: [PATCH] Add prepublish hook - To make sure compiled files uploaded on npm registry - close #77 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 795b3c5..cafda23 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "scripts": { "test": "npm run test-typescript", "test-typescript": "tsc open-color.d.ts tests/typescript.ts --noEmit", - "compile-templates": "node compile-templates.js" + "compile-templates": "node compile-templates.js", + "prepublish": "npm run compile-templates" }, "repository": { "type": "git",