Skip to content

Commit

Permalink
chore: simplify publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed May 31, 2024
1 parent 2aa1acf commit 827993a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,14 @@ npx lerna version --no-private
# publish all packages inside /packages using pnpm! don't use lerna to publish!!
pnpm --filter "./packages/**" publish --dry-run

# the last command was only a dry-run, make sure everything looks ok, if yes, run the same command without flag
# the last command was only a dry-run. if everything looks ok, run this:

pnpm --filter "./packages/**" publish --access public
```

To manually publish a single package, increase the version in the `package.json`, then run `pnpm publish`.
Important: Always publish with `pnpm`, as `npm` does not support overriding main files in `publishConfig`, which is done in all the packages.

### New Packages

To add a new package, you have to publish it manually the first time, using:

```sh
cd packages/<package-name> && pnpm publish --access public
```

## Have Fun

Remember to have fun, and that this project is driven by the passion of volunteers!

0 comments on commit 827993a

Please sign in to comment.