From e6ebaec387fccfb05c0e692870e79685c8bd6c09 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Tue, 29 Nov 2016 17:49:44 +0000 Subject: [PATCH] chore: setup env when running scripts --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e1c47bb..f57dfaf 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ }, "license": "BSD-3-Clause", "scripts": { - "lint": "eslint ./src ./tests", - "test": "mocha --compilers js:babel-register", - "build": "babel --source-maps --copy-files ./src --out-dir ./dist", + "lint": "NODE_ENV=development eslint ./src ./tests", + "test": "npm run build && npm run lint && NODE_ENV=development mocha --compilers js:babel-register", + "build": "NODE_ENV=production babel --source-maps --copy-files ./src --out-dir ./dist", "create-index": "node ./dist/bin/create-index ./src/utilities" }, "devDependencies": {