Explicitly add chokidar, readdirp and yaml as dev dependencies to solve dependabot issues - #6186
Conversation
…pm install --save-dev"
|
@alanorth : Pinging you on this because I think this should finally fix the Thoughts welcome. As I noted above, if we find this works for |
|
Successfully created backport PR for |
|
Successfully created backport PR for |
|
Thanks @tdonohue. I think this is the best we can do for now, but it's an unfortunate solution. For reference, I saw an upstream dependabot issue that is similar: dependabot/dependabot-core#14110. |
|
@alanorth : Thanks for the reference. It looks like others have recently reported this issue again with But, for the time being, this PR has fixed the issues with all our |
Description
Recently, in every PR it creates,
dependabotwill attempt to remove thechokidar,readdirpandyamldependencies from ourpackage-lock.jsonfile because they are not explicitly used in dspace-angular (as they are transitive dependencies).However, removing these dependencies causes immediate errors in
npm installbecause all three dependences are required by Angular (and a few other direct dependencies).Examples of
dependabotPRs which attempt to remove these dependencies include the following:(This currently occurs on almost EVERY
dependabotPR against themain,dspace-10_xanddspace-9_xbranches)This PR attempts to resolve the issue by adding all three as development dependencies, which should make it clear to
dependabotthey are needed.NOTE: Because this impacts several branches, this PR will need to be ported to
dspace-10_xanddspace-9_x. It's likely it will need to be recreated on each branch using the above commands as these branches do not have identical dependencies. It does NOT need to be ported to 8.x because that usesyarn, and thisdependabotissue seems to be specific tonpm.NOTE 2: After this PR is merged, every
dependabotPR againstmainwill need to be recreated via@dependabot recreate. That should tell dependabot to use the updated packaging settings & hopefully resolve the issues.Instructions for Reviewers
npm installprocess as well as the build (e.g.npm run build:prod) or running of the UI (e.g.npm run serve:ssr).