1.0.3 • Published 4 years ago

pkg-can-install v1.0.3

Weekly downloads
140
License
Apache-2.0
Repository
github
Last release
4 years ago

pkg-can-install

Build Status Greenkeeper badge

NPM

Tests if the package in the current working directory can be installed after it is published, that way you won't have to publish another version with a fix.

Table of Contents generated with DocToc

Installation

$ npm install --save-dev pkg-can-install

Then edit your package.json to have:

  "scripts": {
    "prepublishOnly": "pkg-can-install"
  }

Then pkg-can-install will be run right before a publish.

How it works

  1. We get a temporary directory
  2. We recursively copy the current package minus node_modules to that directory
  3. We run npm install --production and verify that it works
2.0.0

4 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago