Caution
main branch of this starter is currently migrate to bun, if you want to use nodejs version, please check out the nodejs branch.
Why? Just see the benchmark results under the /benchmark folder in ts starter project.
Migration progress:
-
Package Manager:
pnpm->bun -
Build Tool: Still using
rolldownwithtypescript -
Test Runner:
vitest->bun -
Runtime:
nodejs->bunHow to check? Add the following code at begin of the running script:
console.log(process.execPath) console.log('Node.js version:', process.version) console.log('Bun detected:', typeof Bun !== 'undefined')
Note
This is a personal fork of antfu/starter-monorepo with some customizations.
description
This starter recommends using NPM Trusted Publisher, where the release is done on CI to ensure the security of the packages.
To do so, you need to run bun run -F '*' do-publish manually for the very first time to create the packages on npm, and then go to https://www.npmjs.com/package/<your-package-name>/access to set the connection to your GitHub repo.
Then for the future releases, you can run bun run release to do the release and the GitHub Actions will take care of the release process.