run build before publish with production env

This commit is contained in:
Daniel Tschinder 2016-07-13 01:01:58 +02:00
parent 964bd4d609
commit b00ba47e6c

View File

@ -34,12 +34,13 @@
"babylon": "./bin/babylon.js" "babylon": "./bin/babylon.js"
}, },
"scripts": { "scripts": {
"build": "babel src --out-dir lib",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "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": "npm run build && npm run lint && ava test/",
"test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc 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" "watch": "babel src --out-dir lib --watch"
} }
} }