Skip to content

Commit b0aa3ea

Browse files
committed
chore: update .npmrc with new features
1 parent 5be9aea commit b0aa3ea

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.npmrc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
1+
# Don't use the workspace protocol.
12
save-workspace-protocol=false
2-
publish-branch="next"
3+
4+
# This makes installations on branches that aren't up to date less stressful by
5+
# preserving the latest version in the current workspace.
6+
prefer-workspace-packages=true
7+
8+
# Set the publish branch to prevent unintentional publishing.
9+
publish-branch="main"
310

411
# Version 5.2.0 introduces automatic hoisting of `@types/*`. I'm turning it off
512
# for now.
613
shamefully-hoist=false
14+
15+
# Support cross platform shell commands.
16+
shell-emulator=true
17+
18+
# Added since the shell-emulator seems to remove colors from output. There is a
19+
# warning against using this setting in the docs.
20+
# https://pnpm.js.org/en/npmrc#color
21+
color=always
22+
23+
# Don't check the workspace root when installing workspace dependencies
24+
ignore-workspace-root-check=true

0 commit comments

Comments
 (0)