angular-docs-cn/packages/bazel
Paul Gschwendtner 44dfa606ed fix(bazel): ng_package writes unrelevant definitions to bazel out (#27519)
In order to keep the bazel bin directory as clean as possible, we should not write definition files that are not relevant to a `ng_package` to an undesired location in the bazel bin directory. This currently just happens because we only filter out external definition files while we also should filter out definitions that aren't just in the current package.

The `packager.ts` file currently tries to write these files to the package, but fails because those are not inside of the current package. So the logic to create a relative path for the file fails, and the definition will be copied to a location like:

```js
// Notice the double "bazel-out" here.
C:\Users\Paul\_bazel_Paul\kn4tsvyh\execroot\angular_material\bazel-out\x64_windows-fastbuild\bin\src\bazel-out\x64_windows-fastbuild\bin\src\cdk
```

[See logic that causes this](4f9374951d/packages/bazel/src/ng_package/packager.ts (L105-L124)) (nothing wrong with that logic because it assumes that only paths from within the package are passed to it)

PR Close #27519
2018-12-13 14:58:38 -08:00
..
docs docs(bazel): add skydoc generation (#23544) 2018-08-08 13:12:07 -07:00
src fix(bazel): ng_package writes unrelevant definitions to bazel out (#27519) 2018-12-13 14:58:38 -08:00
test fix(ivy): enable flat module index production in Bazel (#27655) 2018-12-13 14:55:15 -08:00
BUILD.bazel feat(bazel): ng-new schematics with Bazel (#27277) 2018-12-03 14:38:23 -08:00
check_version.js fix(bazel): fix major/minor semver check between @angular/bazel npm packager version and angular bazel repo version (#27635) 2018-12-13 10:59:14 -08:00
index.bzl build: use bazel version from node modules (#26691) 2018-10-30 16:19:13 -04:00
package.bzl build: update rules_typescript (#27586) 2018-12-10 16:33:41 -08:00
package.json fix(bazel): Read latest versions from latest-versions.ts & use semver check (#27526) 2018-12-10 16:35:42 -08:00
protractor-utils.js build: idiomatic install of @angular/bazel npm package (#26258) (#26488) 2018-10-19 20:59:29 -07:00
yarn.lock fix(bazel): Read latest versions from latest-versions.ts & use semver check (#27526) 2018-12-10 16:35:42 -08:00