Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

npm publishing should error on publishing prerelease to npmjs.com #29

Open
@jspaaks

Description

@jspaaks

one possibility to make this work:
use a npm scripts prepublish task that checks that npm get registry is registry.npmjs.com AND version in package.json consists only of major.minor.patch numbers. The latter can be done from JavaScript by require'ing package.json and maniplating the json e.g. with a RegExp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions