Adding a new package
Replace foo with your new package name in the instructions below.
cd packagesmkdir foo && cd foopnpm initcode package.jsonand update thedescriptionfield. If your package is not a library (ie it's an entrypoint), add a"private": true,line to yourpackage.json.pnpm installpnpm -w fix:meta
If your package is not a library, you get a bit less scaffolding for free, so
you may want to steal some of the scripts, as well as possibly the main,
types, and exports fields, from one of our library's package.jsons. The
@cursorless/common package is a decent one to steal from.
For any packages that you need to depend on, you can run
pnpm add some-package
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 fix:meta after adding the dependency, so that the Typescript references can be updated.