Publish development version of NPM package

前端 未结 2 2000
广开言路
广开言路 2020-12-31 11:09

How can I publish development version of NPM package?

I tried to set \"dev\" value for version field in package.json but I got

2条回答
  •  春和景丽
    2020-12-31 11:13

    You can upload prerelease tags to npm. These tags will not be matched by normal semver range semantics, but will allow you to both use and upload development versions. An example would be 1.3.5-alpha.3. If you're uploading something that has no version yet, then a reasonable use would be something like 0.0.1-alpha.1.

提交回复
热议问题