Skip to content

[Contribution] How to test packages #106

Answered by JasperH8g
draylegend asked this question in Q&A
Discussion options

You must be logged in to vote

Great to read you're doing this! What we do ourselves is differently between npx phero and @phero/server/@phero/client.

  • npx phero: Run npx lerna run build in the phero-codebase, and in your example-project run npm i -g ../../path-to-phero-codebase/packages/cli so you can run npx phero to use your local phero. Don't forget to npm rm -g phero when you want to use the published version, because npx will try locally installed packages first before fetching remote ones.

  • @phero/client/@phero/server: Run npx lerna run build in the phero-codebase, and run npm rm @phero/client && npm i ../../path-to-phero-codebase/packages/client (and replace client with server respectively). The uninstalling …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by draylegend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants