angular-cn/packages/bazel/test/ng_package
Paul Gschwendtner 958165888c fix(bazel): do not use manifest paths for generated imports within compilation unit (#35841)
Currently, the `ng_module` rule incorrectly uses manifest paths for
generated imports from the Angular compiler.

This breaks packaging as prodmode output (i.e. `esnext`) is copied in
various targets (`es5` and `es2015`) to the npm package output.

e.g. imports are generated like:

_node_modules/my-pkg/es2015/imports/public-api.js_
```ts
import * as i1 from "angular/packages/bazel/test/ng_package/example/imports/second";
```

while it should be actually:

```ts
import * as i1 from "./second";
```

The imports can, and should be relative so that the files are
self-contained and do not rely on custom module resolution.

PR Close #35841
2020-03-06 17:31:10 -05:00
..
example test: add entry-point with generated imports to ng_package test (#35841) 2020-03-06 17:31:10 -05: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): do not use manifest paths for generated imports within compilation unit (#35841) 2020-03-06 17:31:10 -05: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