turborepo/examples/with-changesets
Anthony Shew 4acd1df6bf
docs: migrate to turborepo.com (#10368)
### Description

We're changing `turbo.build` to `turborepo.com`. This PR changes the
strings with a find and replace across the whole of the codebase.

### Testing Instructions

👀
2025-04-23 10:39:37 -06:00
..
.changeset Update config.json (#9603) 2024-12-11 08:58:33 -05:00
.github/workflows Consistent Node.js version in Changesets action. (#8441) 2024-06-11 15:13:28 -06:00
apps/docs update to TypeScript 5.5.4 (#9337) 2024-10-25 17:05:13 -04:00
packages update to TypeScript 5.5.4 (#9337) 2024-10-25 17:05:13 -04:00
.gitignore Add example with changesets and publishing (#1098) 2022-04-22 11:21:46 -04:00
.npmrc feat(examples): use pnpm by default (#2820) 2022-11-23 12:07:25 -05:00
meta.json docs: enhance examples tables (#10173) 2025-03-17 12:39:17 -06:00
package.json chore(examples): upgrade Turborepo version (#10281) 2025-04-03 13:12:26 -06:00
pnpm-lock.yaml chore(examples): upgrade Turborepo version (#10281) 2025-04-03 13:12:26 -06:00
pnpm-workspace.yaml feat(examples): use pnpm by default (#2820) 2022-11-23 12:07:25 -05:00
README.md fix: package name in with-changesets release job (#9971) 2025-02-14 17:08:06 +00:00
turbo.json docs: migrate to turborepo.com (#10368) 2025-04-23 10:39:37 -06:00

Turborepo Design System starter with Changesets

This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed.

Using this example

Run the following command:

npx create-turbo@latest -e with-changesets

What's inside?

This Turborepo includes the following:

Apps and Packages

  • @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 preset

Each package and app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Useful commands

  • yarn build - Build all packages and the docs site
  • yarn dev - Develop all packages and the docs site
  • yarn lint - Lint all packages
  • yarn changeset - Generate a changeset
  • yarn clean - Clean up all node_modules and dist folders (runs each package's clean script)

Changing the npm organization scope

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:

  • Rename folders in packages/* to replace acme with your desired scope
  • Search and replace acme with your desired scope
  • Re-run yarn install

Versioning and Publishing packages

Package 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

npm

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"
- },

GitHub Package Registry

See Working with the npm registry