From cbd3d8a8fd45aba0285188e83098ef7ba687c9b6 Mon Sep 17 00:00:00 2001 From: Rodrigo Pedra Brum Date: Wed, 6 Nov 2019 01:39:47 -0300 Subject: [PATCH] Use `npm ci` to avoid package-lock update Running `npm ci` instead of `npm install` avoids `package-lock` file update and installation of patch versions different from upstream. This can be useful to avoid git pollution and to have exactly the same version of npm dependencies when debugging or writing an example to reproduce an issue. `npm ci` was added to NPM to be used in Continuous Integration setups (hence the `ci`) keeping exactly the same versions of packages listed in package-lock file. --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index b5acd9b..c5aa2ce 100644 --- a/readme.md +++ b/readme.md @@ -22,7 +22,7 @@ composer install Install NPM dependencies: ```sh -npm install +npm ci ``` Build assets: