Open FranciscoCaetano88 opened 9 months ago
Yeah this is something I am missing from Bun as i currently use an old version of lerna to publish packages from my Monorepo would be nice to see something similar baked into bun +1
Yes please I would also like a bun publish command so that I don't have to use npm, pnpm or yarn to publish packages. So I am forced to continue to have node installed in parallel
Yes please I would also like a bun publish command.
The pnpm command I am using now seems not fully compatible with bun.
Below is the pnpm release process I listed, I hope bun will take this process into consideration.
{
"scripts": {
"commit:changelog": "git add CHANGELOG.md && git commit -m \"docs: :memo: update changelog\" && git push",
"lint": "eslint --ext mjs,js,jsx,ts,tsx,cjs --fix .",
"release": "pnpm release:check && pnpm release:version && pnpm release:publish",
"release:changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && npm run commit:changelog",
"release:check": "pnpm lint",
"release:publish": "pnpm -r publish --tag latest",
"release:version": "bumpp package.json packages/*/package.json --execute=\"pnpm release:changelog\" --commit \"build: :package: publish v%s\" --all"
},
"devDependencies": {
"bumpp": "^9.2.0",
"conventional-changelog-cli": "^4.1.0",
}
}
bun
seems to be missing functions like pnpm update -r --workspace
, and I hope it can be added in the next version.
Has anybody been able to figure out a way to publish a package using bun?
@oalexdoda still using lerna to publish for now.
@Jarred-Sumner could you weigh in on this, as this feature isn't listed in the roadmap?
Any update on this?
Bun publish
/deprecate
/unpublish
would be great! I was surprised this wasn't part of Bun already, since you can in fact provide login credentials for registries in your bunfig.
The only workaround I know of is to run an external script handling publishing (e.g. https://github.com/morlay/bunpublish). This isn't great since it introduces extra dependencies.
What is the problem this feature would solve?
Add a build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.
What is the feature you are proposing to solve the problem?
A package versioning & publishing manager that should provide a variety of options to make sure any workflow can be accommodated.
What alternatives have you considered?
Lerna