mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
70f93a640b
The schematic code in `@angular/localize` is currently still emitted as CommonJS, while the rest of `@angular/localize` is strict ESM (which is also denoted through `type: module` in the package.json file). The schematic code is currently imported as CJS from the CLI so it is not a problem right now. Still, it is safer to ensure the code for schematics is properly picked up as CJS through a local `package.json` file resetting `type: module` to `type: commonjs`. PR Close #44016
21 lines
406 B
Python
21 lines
406 B
Python
load("//tools:defaults.bzl", "pkg_npm")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "package_assets",
|
|
srcs = [
|
|
"collection.json",
|
|
"package.json",
|
|
],
|
|
visibility = ["//packages/localize:__subpackages__"],
|
|
)
|
|
|
|
pkg_npm(
|
|
name = "npm_package",
|
|
srcs = [":package_assets"],
|
|
deps = [
|
|
"//packages/localize/schematics/ng-add",
|
|
],
|
|
)
|