In the publishing libraries section
https://turbo.build/repo/docs/guides/publishing-libraries#setting-up-a-build-script
It is recommended to change package.json main/types /... entrypoints from pointing to src/ to dist/ (changing an internal package to be published).
This then also requires the use of a dev script (tsc/tsup + --watch)
Wouldn't it be simpler to just use the publishConfig section as described in this pnpm guide?
https://pnpm.io/package_json#publishconfig
What would be the pros/cons to that approach? (Perhaps using src/ locally vs using the bundled dist/ when the package is published could cause issues?)
Would like to hear opinions and recommendations.