-
Notifications
You must be signed in to change notification settings - Fork 2
/
.npmrc
executable file
·84 lines (61 loc) · 3.35 KB
/
.npmrc
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
## ------------------------------------------------------------------------ ##
## .npmrc Nicholas Berlette, 2022-05-31 ##
## ------------------------------------------------------------------------ ##
## https://github.com/nberlette/dotfiles/blob/main/.npmrc ##
## ------------------------------------------------------------------------ ##
## MIT © Nicholas Berlette <nick@berlette.com> ##
## ------------------------------------------------------------------------ ##
# npm registry uses $NPM_TOKEN
//registry.npmjs.org:_authToken=${NPM_TOKEN}
//registry.npmjs.org:always-auth=true
# github package registry (gpr) uses $GITHUB_TOKEN
//npm.pkg.github.com:_authToken=${GITHUB_TOKEN}
//npm.pkg.github.com:always-auth=true
# Save all dependencies in package.json pinned to their specific version numbers (no ^ or ~ prefix).
save-exact=true
# Choose the semver prefix for saving dependencies to package.json (^ for "minor", ~ for "patch", etc)
save-prefix=
# (true | false) - true: the "engines" field is *strictly* respected
engine-strict=true
# (true | false) - true: the "engines" field in package.json is ignored
ignore-engines=false
# (true | false) - true: ignore warnings from the command-line interface
ignore-warnings=true
## ------------------------------------------------------------------------ ##
## pnpm-specific options
## ------------------------------------------------------------------------ ##
# Disable warnings when adding packages while not in the workspace root directory
ignore-workspace-root-check=true
# If you want to create a flat node_modules structure, set this to true.
shamefully-hoist=true
# If you don't want pnpm to fail on peer dependency issues, set this to false.
strict-peer-dependencies=false
# If you want peer dependencies to be automatically installed, set this to true.
auto-install-peers=true
# (true | false | deep) - true: use workspaces, false: don't use workspaces, deep: use workspaces with deep resolution
link-workspace-packages=true
# (true | false) - always use workspace package versions, even if a new version is available in the registry
prefer-workspace-packages=true
# (true | false) - use a unified lockfile at the workspace root
shared-workspace-lockfile=true
## ------------------------------------------------------------------------ ##
## options used by `pnpm version` and `pnpm publish`
## ------------------------------------------------------------------------ ##
# Create a new git tag after bumping a package version (npm publish / npm version, etc)
git-tag-version=true
# sign that git tag with your configured GPG key
sign-git-tag=true
# Sign all npm-invoked git commits with GPG
sign-git-commit=true
## ------------------------------------------------------------------------ ##
## pkg init defaults - used by `(npm|yarn) init` for new package.json files
## ------------------------------------------------------------------------ ##
# npm parses these 3 values into a single string for the pkg.author prop.
# e.g. "Nicholas Berlette <nick@berlette.com> (https://berlette.com)"
init-author-name=Nicholas Berlette
init-author-email=nick@berlette.com
init-author-url=https://berlette.com
# SPDX license ID (default is ISC, but I usually distribute my software with MIT)
init-license=MIT
# initial version for new package.json files
init-version=0.0.1