summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/npm-packlist/index.js
diff options
context:
space:
mode:
authorAudrey Eschright <audrey@npmjs.com>2018-11-29 14:05:52 -0800
committerMyles Borins <mylesborins@google.com>2019-05-16 14:56:07 -0400
commit391185e5503adc45fde8175961d6eab45fc8cc88 (patch)
treed25cd669d680620e5c7bbc622e0a4de355884194 /deps/npm/node_modules/npm-packlist/index.js
parent6014b476c3f001ee2a4f0e37493c5639ceae5cef (diff)
downloadnode-new-391185e5503adc45fde8175961d6eab45fc8cc88.tar.gz
deps: upgrade npm to 6.5.0
PR-URL: https://github.com/nodejs/node/pull/24734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/npm/node_modules/npm-packlist/index.js')
-rw-r--r--deps/npm/node_modules/npm-packlist/index.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/deps/npm/node_modules/npm-packlist/index.js b/deps/npm/node_modules/npm-packlist/index.js
index c1b8783596..2cdd37ec3d 100644
--- a/deps/npm/node_modules/npm-packlist/index.js
+++ b/deps/npm/node_modules/npm-packlist/index.js
@@ -20,10 +20,14 @@ const path = require('path')
const defaultRules = [
'.npmignore',
'.gitignore',
- '**/.git/',
- '**/.svn/',
- '**/.hg/',
- '**/CVS/',
+ '**/.git',
+ '**/.svn',
+ '**/.hg',
+ '**/CVS',
+ '**/.git/**',
+ '**/.svn/**',
+ '**/.hg/**',
+ '**/CVS/**',
'/.lock-wscript',
'/.wafpickle-*',
'/build/config.gypi',
@@ -33,7 +37,8 @@ const defaultRules = [
'.DS_Store',
'._*',
'*.orig',
- 'package-lock.json'
+ 'package-lock.json',
+ 'archived-packages/**',
]
// a decorator that applies our custom rules to an ignore walker
@@ -131,7 +136,7 @@ const npmWalker = Class => class Walker extends Class {
const rules = [
pkg.browser ? '!' + pkg.browser : '',
pkg.main ? '!' + pkg.main : '',
- '!@(readme|license|licence|notice|changes|changelog|history){,.*}'
+ '!@(readme|copying|license|licence|notice|changes|changelog|history){,.*}'
].filter(f => f).join('\n') + '\n'
super.onReadIgnoreFile(packageNecessaryRules, rules, _=>_)