[Contribution] How to test packages #106
-
I forked and cloned the repo, changed source files and built affected packages. How can I test? Do I need to publish with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Great to read you're doing this! What we do ourselves is differently between
Does that answer your question? |
Beta Was this translation helpful? Give feedback.
Great to read you're doing this! What we do ourselves is differently between
npx phero
and@phero/server
/@phero/client
.npx phero
: Runnpx lerna run build
in the phero-codebase, and in your example-project runnpm i -g ../../path-to-phero-codebase/packages/cli
so you can runnpx phero
to use your local phero. Don't forget tonpm rm -g phero
when you want to use the published version, becausenpx
will try locally installed packages first before fetching remote ones.@phero/client
/@phero/server
: Runnpx lerna run build
in the phero-codebase, and runnpm rm @phero/client && npm i ../../path-to-phero-codebase/packages/client
(and replaceclient
withserver
respectively). The uninstalling …