Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-110486

The npmPackageLock task doesn't update the package-lock.json file

    Details

      Description

      The Liferay Gradle plugins allows a mixture of Yarn and NPM projects for backward compatibility with 7.x. When a project has both Yarn and NPM projects configured, Gradle will assume that all projects without a package-lock.json file are Yarn projects.

      The npmPackageLock task runs cleanNPM first. The clean task deletes the package-lock.json file and all subsequent NPM tasks are skipped.

      To fix this, change the cleanNPM task to set the node extension property useNpm

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              peter.shin Peter Shin
              Engineering Assignee:
              Peter Shin
              Recent user:
              Enterprise Release HU
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.0.X
                7.1.X
                7.2.X
                Master