Skip to content

Commit d9ec019

Browse files
authored
Break up getChangedPackages internals (#1219)
1 parent bdb7f9f commit d9ec019

18 files changed

Lines changed: 777 additions & 444 deletions

CLAUDE.md

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,38 @@ Beachball is a CLI tool for automating semantic version bumping, changelog gener
1313

1414
## Commands
1515

16+
Beachball currently uses Node 14. Before running tests, you may need to activate `nvm`: on Mac or Linux, `source ~/.nvm/nvm.sh && nvm use`.
17+
1618
### Top-level
1719

1820
These commands work at the top level of the monorepo.
1921

2022
DO NOT run `jest` or `tsc` directly from the top level!
2123

22-
| Task | Command |
23-
| ------------------ | ----------------------- |
24-
| Build | `yarn build` |
25-
| Test | `yarn test` |
26-
| Lint (code + deps) | `yarn lint` |
27-
| Lint code only | `yarn lint:code` |
28-
| Format | `yarn format` |
29-
| Update snapshots | `yarn update-snapshots` |
30-
31-
### Per-package commands
32-
33-
These commands work in the `beachball` package and potentially other future packages.
34-
35-
| Task | Command |
36-
| ----------------------------- | ------------------------------- |
37-
| Build | `yarn build` |
38-
| All tests in correct order | `yarn test:all` |
39-
| Unit tests only | `yarn test:unit` |
40-
| Functional tests only | `yarn test:func` |
41-
| E2E tests only | `yarn test:e2e` |
42-
| Single test file (wraps jest) | `yarn test <test path or name>` |
43-
| Lint | `yarn lint` |
44-
| Update snapshots | `yarn update-snapshots` |
24+
| Task | Command |
25+
| ----------------------------------- | ----------------------- |
26+
| Build | `yarn build` |
27+
| Run all tests (NOT a specific test) | `yarn test` |
28+
| Lint (code + deps) | `yarn lint` |
29+
| Lint code only | `yarn lint:code` |
30+
| Format | `yarn format` |
31+
| Update snapshots | `yarn update-snapshots` |
32+
33+
### Commands
34+
35+
These commands work in an individual package (`cd packages/<name>`).
36+
37+
| Task | Command |
38+
| ---------------------------------------- | ------------------------------- |
39+
| Build | `yarn build` |
40+
| Test (packages other than `beachball`) | `yarn test` |
41+
| Single test file (wraps jest) | `yarn test <test path or name>` |
42+
| (`beachball`) All tests in correct order | `yarn test:all` |
43+
| (`beachball`) Unit tests only | `yarn test:unit` |
44+
| (`beachball`) Functional tests only | `yarn test:func` |
45+
| (`beachball`) E2E tests only | `yarn test:e2e` |
46+
| Lint | `yarn lint` |
47+
| Update snapshots | `yarn update-snapshots` |
4548

4649
## Architecture
4750

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"type": "patch",
5+
"comment": "Refactor internals for getting changed packages",
6+
"packageName": "beachball",
7+
"email": "elcraig@microsoft.com",
8+
"dependentChangeType": "patch"
9+
}
10+
]
11+
}

packages/beachball/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"p-limit": "^3.1.0",
4545
"prompts": "^2.4.2",
4646
"semver": "^7.7.4",
47-
"workspace-tools": "^0.41.4",
47+
"workspace-tools": "^0.41.6",
4848
"yargs-parser": "^21.1.1"
4949
},
5050
"devDependencies": {

0 commit comments

Comments
 (0)