https://github.com/pklaschka/pnpm-parcel-monorepo-test
Fast, disk space efficient package manager | pnpm
Parcel - The zero configuration build tool for the web.
<aside>
❗ Parcel behaving strangely
Parcel seems to behave weird when there is a package.json
, a package-lock.json
, or some similar file somewhere higher up the file tree. So if you experience any strange behavior, look for such a file higher up in the file tree and delete it. This fixed a lot of issues I had.
</aside>
Install the dependencies:
pnpm install
pnpm i
pnpm install -r
) for the workspace, cf. https://pnpm.io/cli/installnpm ci
equivalent: pnpm i --frozen-lockfile
(automatically true in CI environment)You can also run pnpm install
when anything about your dependencies becomes out of date to fix it back up:
“pnpm can automatically resolve merge conflicts in
pnpm-lock.yaml
. If you have conflicts, just runpnpm install
and commit the changes.”
pnpm exec eslint --ext '.ts,.js,.tsx' --no-error-on-unmatched-pattern packages
<aside>
💡 It’s not possible to simply call ./node_modules/.bin/eslint
! pnpm exec
is required to set the correct aliases / dependency links for executing the dependency’s executable.
</aside>