apify / actor-templates

This project is the :house: home of Apify actor template projects to help users quickly get started.
https://apify.com/
25 stars 15 forks source link

use npm ci instead of npm install #98

Closed PatrikTrefil closed 2 years ago

PatrikTrefil commented 2 years ago

I suggest using npm ci in templates for faster and deterministic builds. All flags used (--no-optional, --include=, --only) have the same behavior for npm ci based on my testing. Sadly, they are not properly documented in the npm docs...

PatrikTrefil commented 2 years ago

Npm tried to fix their docs based on my issue, but the docs still don't include the options we are using (but they were not documented for the npm install command either).