Skip to content

Prefer 'npm ci' over 'npm install' during plugin build

James Addison requested to merge build/prefer-npm-ci into main

The npm ci command reuses existing package-lock.json files to meet dependency specifications, and does not (re)write them at build-time.

Two small side-effects:

  • Local build without package-lock.json (and thus the git working directory) being modified
  • More stable selection / installation of dependencies at build-time (todo: is this true? or would npm still go ahead and use updated package versions in some/most situations?)
Edited by James Addison

Merge request reports