diff --git a/packages/bazel/test/ng_package/common_package.spec.ts b/packages/bazel/test/ng_package/common_package.spec.ts index 98d3cf84f3..d2d723e94c 100644 --- a/packages/bazel/test/ng_package/common_package.spec.ts +++ b/packages/bazel/test/ng_package/common_package.spec.ts @@ -18,13 +18,11 @@ describe('@angular/common ng_package', () => { const files = shx.ls('locales').stdout.split('\n'); expect(files.some(n => n.endsWith('.d.ts'))).toBe(true, `.d.ts files don't exist`); expect(files.some(n => n.endsWith('.js'))).toBe(true, `.js files don't exist`); - expect(files.some(n => n.endsWith('.js.map'))).toBe(true, `.js.map files don't exist`); }); it('/locales/extra', () => { const files = shx.ls('locales/extra').stdout.split('\n'); expect(files.some(n => n.endsWith('.d.ts'))).toBe(true, `.d.ts files don't exist`); expect(files.some(n => n.endsWith('.js'))).toBe(true, `.js files don't exist`); - expect(files.some(n => n.endsWith('.js.map'))).toBe(true, `.js.map files don't exist`); }); }); diff --git a/packages/common/BUILD.bazel b/packages/common/BUILD.bazel index 7e78d4bce3..e84f675896 100644 --- a/packages/common/BUILD.bazel +++ b/packages/common/BUILD.bazel @@ -25,10 +25,8 @@ ng_package( "//packages/common/http/testing:package.json", "//packages/common/testing:package.json", ], - data = [ - "//packages/common/locales", - ], entry_point = "packages/common/index.js", + packages = ["//packages/common/locales:package"], tags = ["release-with-framework"], deps = [ "//packages/common", diff --git a/packages/common/locales/BUILD.bazel b/packages/common/locales/BUILD.bazel index bf64b9cce6..c061c1b6f7 100644 --- a/packages/common/locales/BUILD.bazel +++ b/packages/common/locales/BUILD.bazel @@ -1,6 +1,6 @@ package(default_visibility = ["//visibility:public"]) -load("//tools:defaults.bzl", "ts_library") +load("//tools:defaults.bzl", "ts_library", "npm_package") ts_library( name = "locales", @@ -10,3 +10,8 @@ ts_library( ), module_name = "@angular/common/locales", ) + +npm_package( + name = "package", + deps = [":locales"], +)