From 6f1f2ad6a145cd0520cb5c86b2c294649b92a588 Mon Sep 17 00:00:00 2001 From: Denis Bendrikov Date: Thu, 27 Oct 2016 00:01:19 +0300 Subject: [PATCH] For npm builds use whitelisting with "files" field instead of .npmignore --- .npmignore | 25 ------------------------- package.json | 5 ++++- 2 files changed, 4 insertions(+), 26 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index b9d0cc6e..00000000 --- a/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -node_modules -.tmp -bower_components -.settings -.metadata -*.war -RemoteSystemsTempFiles/ -.DS_Store -.DS_Store? -ehthumbs.db -Thumbs.db -.Spotlight-V100 -.Trashes -classes/ -._* -*.jar -release-local.sh -npm-debug.log -.idea/ -target/ -*.iml -demo/ -nuget/ -src/ -test/ diff --git a/package.json b/package.json index 8b634e8b..1b7bcdbb 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,10 @@ "load-grunt-tasks": "^3.1.0" }, "description": "An AngularJS directive for file upload using HTML5 with FileAPI polyfill for unsupported browsers", - "main": "index.js", + "files": [ + "index.js", + "dist" + ], "scripts": { "test": "echo \"Error: no test specified\" && exit 1" },