pnpm add [-D] <PACKAGE_NAME> --filter <OTHER_PACKAGE_NAME> --workspace
Example:
pnpm add -D @cehrman/tsconfig --filter @cehrman/module-a --workspace
This command will add the local package @cehrman/tsconfig
as a dev dependency to the local package @cehrman/module-a
. Notice the pnpm special protocol workspace:
is used when doing this.
pnpm changeset
pnpm changeset version
pnpm changeset publish