-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefaults.ts
More file actions
40 lines (38 loc) · 1.04 KB
/
defaults.ts
File metadata and controls
40 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @fileoverview The npm-packlist-derived `defaultIgnore` list. Public
* starting point for caller-customized ignore arrays — also consumed
* internally by `_internal` (matcher / stream callers fall back to
* this list when no `ignore` option is supplied).
*/
import { objectFreeze as ObjectFreeze } from '../objects/mutate'
export const defaultIgnore = ObjectFreeze([
// https://docs.npmjs.com/cli/v10/configuring-npm/package-json#files
'**/.git',
'**/.npmrc',
'**/node_modules',
// https://github.com/npm/npm-packlist/blob/v10.0.0/lib/index.js#L15-L38
'**/.DS_Store',
'**/.gitignore',
'**/.hg',
'**/.lock-wscript',
'**/.npmignore',
'**/.svn',
'**/.wafpickle-*',
'**/.*.swp',
'**/._*/**',
'**/archived-packages/**',
'**/build/config.gypi',
'**/CVS',
'**/npm-debug.log',
'**/*.orig',
// Inline generic socket-registry .gitignore entries.
'**/.env',
'**/.eslintcache',
'**/.nvm',
'**/.tap',
'**/.vscode',
'**/*.tsbuildinfo',
'**/Thumbs.db',
// Inline additional ignores.
'**/bower_components',
])