[zanata/zanata-platform] 84d2c7: Enforce keeping yarn.lock and package.json in sync...

GitHub noreply at github.com
Thu Aug 31 14:24:48 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/zanata/zanata-platform
  Commit: 84d2c79b9a55cf92f12eee24a51d36852a1bf808
      https://github.com/zanata/zanata-platform/commit/84d2c79b9a55cf92f12eee24a51d36852a1bf808
  Author: David Mason <drdmason at gmail.com>
  Date:   2017-09-01 (Fri, 01 Sep 2017)

  Changed paths:
    M server/zanata-frontend/src/frontend/.yarnrc
    M server/zanata-frontend/src/frontend/makefile
    M server/zanata-frontend/src/frontend/package.json
    M server/zanata-frontend/src/frontend/yarn.lock

  Log Message:
  -----------
  Enforce keeping yarn.lock and package.json in sync (#510)

* chore: prevent yarn.lock getting out of sync with package.json

This just causes `yarn` or `yarn install` to fail when dependencies are
added just in package.json (manually or with `npm install --save`).

* chore(frontend): fix broken build due to dependencies in package.json only

The build now correctly fails when dependencies in package.json are missing
from yarn.lock (meaning they were not installed with yarn - we want all
packages in frontend installed with yarn).

This also removes yarn as an explicit dependency. Yarn should be installed
globally with `npm install -g yarn` instead.

* chore(frontend): give a hint about how to resolve yarn lockfile needing update.

* chore(frontend): add comment about frozen-lockfile in .yarnrc




More information about the zanata-commits mailing list