angular-docs-cn/packages/core/schematics/migrations/postinstall-ngcc
Alan Agius 8b5ca670ad refactor(core): update migrations descriptions (#33440)
With the next version of the CLI we don't need to add logging for the description of the schematic as part of the schematic itself.

This is because now, the CLI will print the description defined in the `migrations.json` file.

See: https://github.com/angular/angular-cli/pull/15951

PR Close #33440
2019-10-28 17:07:50 -07: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 refactor(core): update migrations descriptions (#33440) 2019-10-28 17:07:50 -07: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"
  }
}