Skip to content

Commit

Permalink
chore(create-webstone-app): treat the template as a workspace pkg to …
Browse files Browse the repository at this point in the history
…keep its dependencies in sync
  • Loading branch information
Mike Nikles authored and mikenikles committed Aug 1, 2021
1 parent 3b98db5 commit 2d40fd8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/warm-dingos-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"webstone-app": patch
"create-webstone-app": patch
---

Auto-update the template dependencies.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ To develop or contribute to Webstone, we use [Gitpod](https://www.gitpod.io). Cl

Packages configured in `pnpm-workspace.yaml` are released automatically when a pull request is merged into the default branch, as long as there is at least one changeset present for a given package. Please refer to https://github.com/atlassian/changesets for details on changesets.

To add a changeset, run `pnpm changeset` and commit the generated file as part of your pull request.
To add a changeset:

- Run `pnpm changeset`
- Run `pnpm i` at the project root
- Commit all files as part of your pull request

When the PR gets merged, the [`.github/workflows/release.yml`](.github/workflows/release.yml) workflow will open a release pull request. Review & merge this to publish the changed packages to the NPM registry.

## The backstory of Webstone

Expand Down
2 changes: 1 addition & 1 deletion packages/create-webstone-app/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"services/*"
],
"devDependencies": {
"@webstone/core": "0.0.2"
"@webstone/core": "workspace:*"
}
}
6 changes: 6 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
packages:
- "packages/**"
- "!packages/create-webstone-app/template"
- "packages/**"

0 comments on commit 2d40fd8

Please sign in to comment.