2026-02-01 15:20:17 +05:30
|
|
|
name: pnpm-restrictive
|
|
|
|
|
description: Profile for pnpm with write access to current directory
|
|
|
|
|
inherits: npm-restrictive
|
|
|
|
|
|
|
|
|
|
package_managers:
|
|
|
|
|
- pnpm
|
|
|
|
|
|
|
|
|
|
filesystem:
|
|
|
|
|
allow_write:
|
|
|
|
|
# pnpm needs write access here
|
|
|
|
|
- ${HOME}/Library/pnpm/.tools/**
|
|
|
|
|
- ${HOME}/.pnpm-store/**
|
|
|
|
|
|
|
|
|
|
# `pnpm i` creates the tmp files in local dir, at least on MacOS
|
|
|
|
|
- ${CWD}/_tmp_*
|
|
|
|
|
|
|
|
|
|
# pnpm self-update (or likely update) creates temporary package.json files
|
|
|
|
|
# for writing. This is likely for atomic update using filesystem rename operation
|
|
|
|
|
# which guarantees atomicity
|
|
|
|
|
- ${CWD}/package.json.*
|
|
|
|
|
|
2026-05-04 21:54:49 +05:30
|
|
|
# pnpm install/update writes pnpm-lock.yaml atomically via a sibling
|
|
|
|
|
# temp file (e.g. pnpm-lock.yaml.139703784) followed by rename.
|
|
|
|
|
- ${CWD}/pnpm-lock.yaml.*
|
|
|
|
|
|
2026-02-01 15:20:17 +05:30
|
|
|
# Need access for dependency resolution
|
|
|
|
|
- ${CWD}/.pnpm-store
|
|
|
|
|
|
|
|
|
|
|