Project

General

Profile

Actions

Feature #45350

closed

mgr/dashboard: We should only reinstall npm packages if needed

Added by Tiago Melo about 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
General
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Angular 9 requires the compilation of all npm packages used in build.
This is only done once and cached in node_modules.

Since we require to strictly install the packages in package-lock.json,
we normally use npm ci to install the packages.

The problem with this is that npm ci will remove node_modules before install the packages, thus also removing angular cache.
To prevent this I add a new npm scripts, that will verify if package-lock.json is modified, and only if it is, runs npm ci.

Actions

Also available in: Atom PDF