Package export: npm normalize
Opened this issue · 0 comments
tsafin commented
NPM complains if:
- package name contains /, e.g. eduard93/Cache-MDX2JSON, we should rename it to something like eduard93~Cache-MDX2JSON;
- .version is required, if package does not provide version in their metadata, then we should set "0.0.1" instead;
- .version is triplet, if package provides pair (i.e. 0.8) then we should normalize it to 0.8.0. If there is symbol prefix like v0.8 then we should strip it off. It's ok to have symbol suffix in the version, i.e. 4.2.1a;
- readme.md file is not filled from .readmeText;