npm-packlist 1.1.11 → 1.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +11 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,10 +20,14 @@ const path = require('path')
20
20
  const defaultRules = [
21
21
  '.npmignore',
22
22
  '.gitignore',
23
- '**/.git/',
24
- '**/.svn/',
25
- '**/.hg/',
26
- '**/CVS/',
23
+ '**/.git',
24
+ '**/.svn',
25
+ '**/.hg',
26
+ '**/CVS',
27
+ '**/.git/**',
28
+ '**/.svn/**',
29
+ '**/.hg/**',
30
+ '**/CVS/**',
27
31
  '/.lock-wscript',
28
32
  '/.wafpickle-*',
29
33
  '/build/config.gypi',
@@ -33,7 +37,8 @@ const defaultRules = [
33
37
  '.DS_Store',
34
38
  '._*',
35
39
  '*.orig',
36
- 'package-lock.json'
40
+ 'package-lock.json',
41
+ 'archived-packages/**',
37
42
  ]
38
43
 
39
44
  // a decorator that applies our custom rules to an ignore walker
@@ -131,7 +136,7 @@ const npmWalker = Class => class Walker extends Class {
131
136
  const rules = [
132
137
  pkg.browser ? '!' + pkg.browser : '',
133
138
  pkg.main ? '!' + pkg.main : '',
134
- '!@(readme|license|licence|notice|changes|changelog|history){,.*}'
139
+ '!@(readme|copying|license|licence|notice|changes|changelog|history){,.*}'
135
140
  ].filter(f => f).join('\n') + '\n'
136
141
  super.onReadIgnoreFile(packageNecessaryRules, rules, _=>_)
137
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-packlist",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "Get a list of the files to add from a folder into an npm package",
5
5
  "directories": {
6
6
  "test": "test"