Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add atricle for best way of importing local package with package.json #4

Open
netanelC opened this issue Aug 25, 2024 · 0 comments
Open
Labels
enhancement New feature or request infra

Comments

@netanelC
Copy link
Contributor

The best way:

"@map-colonies/PACKAGE_NAME": "file:/PATH/TO/REPO/.",

You only need to build the local package.
For example:
If you want to change something in package "schemas" and see the update quickly in your repo, just do the following:

  1. make the changes you want in schemas
  2. build
  3. set this in package.json: "@map-colonies/schemas": "file:../schemas/."

Now your repo will point to the build folder with the relevant changes you want

@netanelC netanelC added enhancement New feature or request infra labels Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request infra
Projects
None yet
Development

No branches or pull requests

1 participant