angular-docs-cn/scripts/build
George Kalpakas 6724b9e755 build(zone.js): do not error when build `zone.js` on Windows (#40557)
In older versions of `bazelbuild/rules_nodejs`, the `npm_package.pack`
rule does not work on Windows. This has been fixed in
bazelbuild/rules_nodejs#2257, but the fix is not available before
[version 2.3.0][1].

Currently, we use version 2.2.0 (see [WORKSPACE][2]). In order to allow
the `zone-js-builder.js` script to work on Windows, this commit switches
to using `npm pack` directly, intead of relying on `npm_package.pack`.

For reference, the version of `bazelbuild/rules_nodejs` was updated to
2.3.2 in PR #39636, but this was later reverted due to CI flakes
(4e6d69cc85).

[1]: https://github.com/bazelbuild/rules_nodejs/releases/tag/2.3.0
[2]: fc64fa8e1a/WORKSPACE (L12)

PR Close #40557
2021-01-26 10:51:15 -08:00
..
build-ivy-npm-packages.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
build-packages-dist.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
dev-infra-builder.js style(dev-infra): enforce format on newly included files (#36940) 2020-06-12 15:06:41 -07:00
package-builder.js build: update config flags for snapshot builds (#40095) 2020-12-15 13:36:56 -08:00
zone-js-builder.js build(zone.js): do not error when build `zone.js` on Windows (#40557) 2021-01-26 10:51:15 -08:00