Moving from a single package to a monorepo
Ensure pnpm is installed by enabling corepack:
bash
corepack enableImport your existing lockfile with:
bash
pnpm importOptionally, set some config:
bash
pnpm config set auto-install-peers trueNow might also be a good time to upgrade your dependencies:
bash
pnpm upgradeDouble-check that everything still works (pnpm lint, pnpm build) and delete the npm lockfile:
rm package-lock.jsonUpdate any CI jobs like semantic-release.
