This runs the tests in watch mode:
pnpm i
pnpm start
Reference: https://pnpm.io/cli/link
Inside another project, link your version of the package:
pnpm link ./packages/css-clamper # `./` in the start is important — this is how `pnpm link` knows that it is a relative path.
cd packages/css-clamper
pnpm i
pnpm dev # Starts the build in watch mode.
# Leave this terminal running for Hot Reload.
In another terminal, just execute pnpm start
at your project, or restart if it's already running. Good to go!
In your project root execute:
pnpm unlink css-clamper
You may also want to stop the terminal running pnpm dev
.
No need to stop the pnpm start
terminal (if you have it running).