From b00ba47e6cb50ea80a62710369318b238c248f58 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Wed, 13 Jul 2016 01:01:58 +0200 Subject: [PATCH] run build before publish with production env --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 96f91419eb..0e70cd85b4 100644 --- a/package.json +++ b/package.json @@ -34,12 +34,13 @@ "babylon": "./bin/babylon.js" }, "scripts": { + "build": "babel src --out-dir lib", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", + "lint": "kcheck", + "prepublish": "cross-env BABEL_ENV=production npm run build", + "preversion": "npm run test", "test": "npm run build && npm run lint && ava test/", "test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test/", - "lint": "kcheck", - "build": "babel src --out-dir lib", - "preversion": "npm run test", "watch": "babel src --out-dir lib --watch" } }