From 0e3d31cc0b5f5e4073106830e6f7d18d76aef3c3 Mon Sep 17 00:00:00 2001 From: Rafael Willians Date: Sat, 28 Dec 2019 16:36:29 -0300 Subject: [PATCH] Using npmignore to override gitignore, allowing dist files to be published --- .npmignore | 3 +++ .travis.yml | 2 +- package-lock.json | 2 +- package.json | 5 +---- 4 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..5e843d7 --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +* +!dist/ +!LICENSE diff --git a/.travis.yml b/.travis.yml index 5d49701..93bbe2c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ after_success: - npm install -g coveralls && npm run coverage:report | coveralls before_deploy: - - npm install + - npm ci - npm run build deploy: diff --git a/package-lock.json b/package-lock.json index 6d66351..7920884 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "express-rescue", - "version": "1.1.23", + "version": "1.1.24", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4e29a47..2847cf5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "express-rescue", - "version": "1.1.23", + "version": "1.1.24", "description": "A wrapper for async functions which makes sure all async errors are passed to your errors handler", "license": "MIT", "main": "dist/index.js", @@ -27,9 +27,6 @@ "engines": { "node": ">=7.6.0" }, - "files": [ - "dist/*" - ], "scripts": { "coverage": "nyc --reporter=text --include index.js npm test", "coverage:report": "nyc report --reporter=text-lcov",