sourcegraph/.npmrc
Keegan Carruthers-Smith 2e1506958f
pnpm: remove update notifier message (#51630)
Having a bit fat dialog printed everytime I run pnpm install is a bit
annoying. I believe we manage the version used, so we don't actually
want to be using the latest on NPM. IE this dialog was misleading.

Test Plan: pnpm install didn't show the upgrade dialog.
2023-05-10 08:53:39 +02:00

22 lines
1.1 KiB
Plaintext

# Disabling pnpm [hoisting](https://pnpm.io/npmrc#hoist) by setting `hoist=false` is recommended on
# projects using rules_js so that pnpm outside of Bazel lays out a node_modules tree similar to what
# rules_js lays out under Bazel (without a hidden node_modules/.pnpm/node_modules)
hoist=false
# We have to hoist storybook packages because storybok@6 is incompatible with pnpm and relies on
# package hoisting for internal imports. We cannot migrate to storybook@7 because it's currently
# in beta and multiple addons that we use are not yet compatible with the beta version.
# The storybook@7 is fully compatible with pnpm, and once addons are updated, we can upgrade
# and remove these hoist patterns. For more context, see:
# https://github.com/storybookjs/storybook/issues/13428#issuecomment-1368062647
public-hoist-pattern[]=*storybook*
public-hoist-pattern[]=global
# We have to hoist eslint packages to use them in the `.eslintrc` config.
public-hoist-pattern[]=*eslint*
auto-install-peers=true
# We manage the version of pnpm so the update warnings based on NPM is inaccurate.
update-notifier=false