build: enable bundle_dts for forms package (#28854)

This PR also changes the name of NgNoValidate` to `ɵNgNoValidate`. This is because `ngcc` requires the node to retain the original name while dts bundler will rename the node is it's only exported using the aliases.

Example typings files:
```ts
declare class NgNoValidate{
}
export {NgNoValidateas ɵNgNoValidate}
```

will be emitted as
```ts
export declare class ɵNgNoValidate {
}
```

PR Close #28854
This commit is contained in:
Alan
2019-02-20 08:10:25 +01:00
committed by Andrew Kushnir
parent 4486dabf01
commit e8bb8f4912
5 changed files with 16 additions and 9 deletions

View File

@ -29,5 +29,7 @@ import {Directive} from '@angular/core';
selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
host: {'novalidate': ''},
})
export class NgNoValidate {
export class ɵNgNoValidate {
}
export {ɵNgNoValidate as NgNoValidate};