angular-cn/packages/bazel/test/ng_package
Paul Gschwendtner 5c2a90814b fix(bazel): ng_package rule creates incorrect UMD module exports (#35792)
The `ng_package` rule currently creates incorrect UMD module exports
if an entry-point has a module name with numbers included.

For example, consider an entry-point called `@angular/cdk/a11y`. The UMD
module name should be `ng.cdk.a11y`. Instead, `ng_package` currently generates
an UMD module export called `ng.cdk.a11Y`.

This is because the logic for converting dash-case to camel case is
invalid as it uses Starlark's `title()` method. The title method
converts text to title case while we actually just want to capitalize
the first letter of a dash-case segment.

Fixes angular/components#18652.

PR Close #35792
2020-03-02 08:15:01 -08:00
..
example test: add entry-point with numbers in name to ng_package test (#35792) 2020-03-02 08:15:01 -08:00
example-with-ts-library build: update to rules_nodejs 1.2.0 (#34961) 2020-01-31 13:14:05 -08:00
BUILD.bazel feat(bazel): support ts_library targets as entry-points for ng_package (#32610) 2019-09-13 13:23:55 -07:00
common_package.spec.ts fix(common): add upgrade sub-package to ng_package rule for @angular/common (#30117) 2019-04-25 15:01:17 -07:00
core_package.spec.ts refactor(core): rename ngInjectableDef to ɵprov (#33151) 2019-10-16 16:36:19 -04:00
example-custom-entry-point-name.golden build(bazel): use ng_package entry_point_name for umd bundles (#23132) 2018-04-05 14:51:31 -07:00
example_package.golden fix(bazel): ng_package rule creates incorrect UMD module exports (#35792) 2020-03-02 08:15:01 -08:00
example_package.spec.ts fix(bazel): ng_package(data) should support non-text files (#32721) 2019-09-17 15:58:42 -07:00
example_with_ts_library_package.golden build: update to rules_nodejs 1.2.0 (#34961) 2020-01-31 13:14:05 -08:00