Monorepo for webhookthing
pnpm install
pnpm dev
pnpm dev-cli
First, add changes with changesets:
npx changeset add
Then, make a new version & publish
pnpm publish-cli
This is half a guide half our "lessons learned" from doing this too many times.
Example PR where we added the logger package
- Create a new folder in either
packages/
orapps/
a. Generally we recommend putting things inpackages/
if they'll be used in >1 thing inapps/
- Create a package.json that imports the shared eslint and tsconfig
a. Probably easiest to copy-paste a minimal package at this point,
@captain/logger
is a good one - Add the new package's path to all the weird places it needs to be listed
a.
pnpm-workspace.yaml
(note: Might be covered already with one of the/*
instances) b..vscode/settings.json
->eslint.workingDirectories
c. If being used incli
,apps/cli/cli/tsup.config.ts
->noExternal
- Do one last
pnpm install
and you should be good to go!