Skip to content

Commit 10155b6

Browse files
authored
Update adding-a-new-package.md (#1346)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent 7fdf965 commit 10155b6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/contributing/adding-a-new-package.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ Replace `foo` with your new package name in the instructions below.
66
2. `mkdir foo && cd foo`
77
3. `pnpm init`
88
4. `code package.json` and update the `description` field
9-
5. `cd ../..`
10-
6. `pnpm install`
11-
7. `pnpm meta-updater`
9+
5. `pnpm install`
10+
6. `pnpm -w meta-updater`
1211

1312
For any packages that you need to depend on, you can run
1413

1514
```bash
16-
pnpm -F @cursorless/foo add -D some-package
15+
pnpm add some-package
1716
```
1817

19-
Note that `some-package` could be a local package, eg `@cursorless/common`. In that case, you need to re-run `pnpm meta-updater` after adding the dependency, so that the Typescript references can be updated.
18+
from the `packages/foo` directory. Note that `some-package` could be a local package, eg `@cursorless/common`. In that case, you need to re-run `pnpm -w meta-updater` after adding the dependency, so that the Typescript references can be updated.

0 commit comments

Comments
 (0)