-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy path.npmrc
More file actions
28 lines (24 loc) · 1.03 KB
/
.npmrc
File metadata and controls
28 lines (24 loc) · 1.03 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
# 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). See
# https://github.com/aspect-build/rules_js/blob/7377f2d0387cc2a9251137929b1c53ccdb3fbcf0/docs/npm_import.md#npm_translate_lock
# documentation for more information.
hoist=false
# Not enabling this because it causes issues with sandboxing.
#
# and introduces errors when building Next.js applications.
# Otherwise, you'd run into errors such as:
#
# node:internal/modules/cjs/loader:1148
# throw err;
# ^
#
# Error: Cannot find module './node-polyfill-crypto'
# Require stack:
# ...
#shared-workspace-lockfile=false
#engine-strict = true
# Storybook packages need to be hoisted for the storybook CLI to find its framework packages.
# https://pnpm.io/npmrc#public-hoist-pattern
public-hoist-pattern[]=*storybook*
public-hoist-pattern[]=@storybook/*