angular-cn/packages/core/schematics/migrations/postinstall-ngcc
Filipe Silva 30d25f67af feat(core): add postinstall ngcc migration (#32999)
PR Close #32999
2019-10-15 17:54:38 +00:00
..
BUILD.bazel feat(core): add postinstall ngcc migration (#32999) 2019-10-15 17:54:38 +00:00
README.md feat(core): add postinstall ngcc migration (#32999) 2019-10-15 17:54:38 +00:00
index.ts feat(core): add postinstall ngcc migration (#32999) 2019-10-15 17:54:38 +00:00

README.md

Postinstall ngcc migration

Automatically adds a postinstall script to package.json to run ngcc. If a postinstall script is already there and does not call ngcc, the call will be prepended.

Before

{
  "scripts": {
    "postinstall": "do-something"
  }
}

After

{
  "scripts": {
    "postinstall": "ngcc ... && do-something"
  }
}