We host every Haiku publish in our private Node package repository, with a version tag corresponding  with the “version” field you’ll see in the publish dialog and the upper right of the share page.

To change the version, simply edit your project’s dependency in package.json to the latest version and running npm i (if using NPM) or yarn (if using Yarn).

For example, if you have in package.json:

  "dependencies": {
    ...,
    "@haiku/myorganization-myproject": "0.0.5",
    ...
  }

and the latest version of your project is 0.0.10, change that to:

"dependencies": {
    ...,
    "@haiku/myorganization-myproject": "0.0.10",
    ...
  }


Note: 

Running this with npm  might result in 404 package not found.

And running yarn might result in: "warning package-lock.json  found". Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.

That warning is normal and only related to using both npm and yarn in the same project (as the warning notes, not really recommended although technically possible). 


Tip: Every time you publish a new version of your component you have to upgrade the corresponding package version in your package.json file.

Did this answer your question?