From d3c92de006eb350451f5db5860a89c3fcf6a5b24 Mon Sep 17 00:00:00 2001 From: Cristiano Betta Date: Fri, 9 Feb 2018 15:46:12 +0000 Subject: [PATCH] Remove unwanted files from build script and surpress warnings --- .npmignore | 4 +++- package.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index 4a870a3..40640f6 100644 --- a/.npmignore +++ b/.npmignore @@ -2,5 +2,7 @@ src .github .babelrc .eslintrc.js -tests +spec docs +test.js +coverage diff --git a/package.json b/package.json index e87c91c..e0c3051 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "prebuild": "npm run lint:src & npm run docs", "build": "babel -d lib src/ -s inline", "build:watch": "watch 'npm run build' src", - "prepublish": "npm run build", + "prepare": "npm run build", + "prepublishOnly": "npm run build", "pretest": "eslint spec", "test": "jest spec --coverage --collectCoverageFrom=src/**/*.js", "test:watch": "watch 'npm test' src spec",