forked from cloudflare/nimbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.npmrc
More file actions
12 lines (12 loc) · 840 Bytes
/
Copy path.npmrc
File metadata and controls
12 lines (12 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# Pin npm-style pre/post lifecycle hooks ON. Under this repo's toolchain
# (pnpm 9 and 10) they already run by DEFAULT — verified: `pnpm run deploy`
# fires `predeploy` with no .npmrc present, and only `enable-pre-post-scripts=false`
# suppresses it. This line is therefore defensive, not corrective: it guarantees
# the behavior against a global `enable-pre-post-scripts=false` or a future
# default flip. What relies on it: apps/www#predeploy — the pre-hook of the
# custom `deploy` script builds nimbus-docs before `astro build`, so a standalone
# `pnpm --filter @nimbus/www deploy` ships the registry files. If a hook ever
# silently no-ops, a Cloudflare deploy goes out without the registry and
# `nimbus-docs add <slug>` 404s. (npm-native hooks like prepack/prepare run
# regardless of this setting.)
enable-pre-post-scripts=true