ci-once

1.0.0 • Public • Published

npm-ci-once

Restore node_modules only if package-lock.json has changed before previous restoration.

Use with npx

npx ci-once

Install from npm

npm install -g npm-ci-once

And then use:

npm-ci-once

Mechanism

See the tiny implementation: src/main.js.

  • Restoration: To restore, this script spawns a default shell to execute npm ci.
  • Skipping unnecessary restoration: After restoration, this script writes SHA-256 hash value of package-lock.json to a file under node_modules. This scripts also checks if the hash value has changed or not.

Readme

Keywords

none

Package Sidebar

Install

npm i ci-once

Weekly Downloads

2

Version

1.0.0

License

CC0-1.0

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • vain0x