angular-docs-cn/packages
Paul Gschwendtner 59607dc495 fix(core): undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824)
The options for `flatModuleId` and `flatModuleOutFile` had been removed in the CLI
from generated libraries with 718ee15b9a.

This has been done because `ng-packagr` (which is used to build the
libraries) automatically set these options in-memory when it compiles the library.
No migration has been created for this because there was no actual need to get rid of
this. Keeping the options in the library `tsconfig` does not cause any problems unless
the `tsconfig` is used outside of `ng-packagr`. This was not anticipated, but is now
commonly done in `ng update` migrations.

The `ng update` migrations try to create an instance of the `AngularCompilerProgram` by
simply parsing the `tsconfig`. The migrations make the valid assumption that `tsconfig` files
are not incomplete/invalid. They _definitely_ are in the file system though. It just works for
libraries because `ng-packagr` in-memory completes the invalid `tsconfig` files, so that they
can be passed to the `@angular/compiler-cli`.

We can't have this logic in the `ng update` migrations because it's
out-of-scope for individual migrations to distinguish between libraries
and applications. Also it would be out-of-scope to parse the
`ng-packagr` configuration and handle the tsconfig in-memory completion.

As a workaround though, we can remove the flat-module bundle options
in-memory when creating the compiler program. This is acceptable since
we don't emit the program and the flat module bundles are not needed.

Fixes #34985.

PR Close #35824
2020-03-06 12:40:18 -05:00
..
animations Revert "fix(animations): process shorthand `margin` and `padding` styles correctly (#35701)" (#35847) 2020-03-04 18:22:09 +00:00
bazel build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
benchpress build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
common fix(ivy): narrow `NgIf` context variables in template type checker (#35125) 2020-02-28 07:39:57 -08:00
compiler refactor(compiler): rename _ParseAST.optionalCharacter TemplateBinding.expression (#35886) 2020-03-06 12:39:49 -05:00
compiler-cli fix(ngcc): a new LockFile implementation that uses a child-process (#35861) 2020-03-05 18:17:15 -05:00
core fix(core): undecorated-classes-with-di migration should handle libraries generated with CLI versions past v6.2.0 (#35824) 2020-03-06 12:40:18 -05:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
examples docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
forms build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
http build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
language-service refactor(compiler): rename _ParseAST.optionalCharacter TemplateBinding.expression (#35886) 2020-03-06 12:39:49 -05:00
localize fix(localize): improve placeholder mismatch error message (#35593) 2020-02-24 09:11:21 -08:00
platform-browser Revert "fix(core): log error instead of warning for unknown properties and elements (#35798)" (#35845) 2020-03-03 16:02:58 -08:00
platform-browser-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-server build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
platform-webworker-dynamic build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
private/testing build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983) 2019-11-26 16:38:40 -05:00
router Revert "fix(router): state data missing in routerLink (#33203)" (#35882) 2020-03-05 17:43:03 -05:00
service-worker build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
upgrade build(packaging): add repository.directory field to package.jsons (#27544) 2020-02-25 13:12:45 -08:00
zone.js test(zone.js): sets rollup_bundle to use the --silent flag in karma tests (#35881) 2020-03-06 12:37:55 -05:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts build: no longer run tslint from within gulp task (#35800) 2020-03-03 09:20:49 -08:00
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json build: enable IDE type checking of $localize code (#35711) 2020-02-28 07:09:50 -08:00
types.d.ts build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT