From 3918ec753dd02e6a5f58377a10f81ae54bee80f8 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 12 Jun 2017 18:01:05 +0200 Subject: [PATCH] Create build when publishing --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 13f5231..504f75c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev": "webpack -w", - "build": "NODE_ENV=production webpack" + "build": "NODE_ENV=production webpack", + "prepublish": "npm run build && git add build" }, "author": "Kosmos Contributors (https://kosmos.org)", "license": "MIT",