Permalink
Browse files

Package.json: Add exclude patterns in "files" directives

Used negate expressions in package.json files entry, although it goes
against recommendation below, because that's the only thing that
worked. Read the github references below for details.

> "The consequences are undefined" if you try to negate any of the files
> entries (that is, "!foo.js"). Please don't. Use .npmignore.

https://github.com/npm/npm/wiki/Files-and-Ignores#details

Fixes #649
Closes #658
  • Loading branch information...
1 parent 64e063c commit 5d243b8841f47ade8b98d66f00773cdb3dd2a437 @rxaviers rxaviers committed Dec 14, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 package.json
View
@@ -55,6 +55,10 @@
"!dist/.build",
"doc/",
"examples/",
+ "!examples/**/bower_components",
+ "!examples/**/.tmp-globalize-webpack",
+ "!examples/plain-javascript/cldrjs",
+ "!examples/plain-javascript/globalize",
"LICENSE.txt",
"README.md"
],

0 comments on commit 5d243b8

Please sign in to comment.