examples/with-changesets/README.md
This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.
Run the following command:
npx create-turbo@latest -e with-changesets
This Turborepo includes the following:
@acme/docs: A placeholder documentation site powered by Next.js@acme/core: core React components@acme/utils: shared React utilities@acme/tsconfig: shared tsconfig.jsons used throughout the monorepo@acme/eslint-config: ESLint presetEach package and app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
yarn build - Build all packages and the docs siteyarn dev - Develop all packages and the docs siteyarn lint - Lint all packagesyarn changeset - Generate a changesetyarn clean - Clean up all node_modules and dist folders (runs each package's clean script)The npm organization scope for this design system starter is @acme. To change this, it's a bit manual at the moment, but you'll need to do the following:
packages/* to replace acme with your desired scopeacme with your desired scopeyarn installPackage publishing has been configured using Changesets. Please review their documentation to familiarize yourself with the workflow.
This example comes with automated npm releases setup in a GitHub Action. To get this working, you will need to create an NPM_TOKEN and GITHUB_TOKEN in your repository settings. You should also install the Changesets bot on your GitHub repository as well.
For more information about this automation, refer to the official changesets documentation
If you want to publish package to the public npm registry and make them publicly available, this is already setup.
To publish packages to a private npm organization scope, remove the following from each of the package.json's
- "publishConfig": {
- "access": "public"
- },