Skip to content

Commit

Permalink
fix(common): add missing types field for @angular/common/locales of e…
Browse files Browse the repository at this point in the history
…xports in package.json (#52080)

Add a types entry in the packages/common/package.json exports "./locales/*" section

Fixes #52011

PR Close #52080
  • Loading branch information
sdedieu authored and atscott committed Oct 10, 2023
1 parent 11588a1 commit da056a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bazel/test/ng_package/common_package.spec.ts
Expand Up @@ -80,7 +80,7 @@ describe('@angular/common ng_package', () => {
typings: `./index.d.ts`,
exports: matchesObjectWithOrder({
'./locales/global/*': {default: './locales/global/*.js'},
'./locales/*': {default: './locales/*.mjs'},
'./locales/*': {types: './locales/*.d.ts', default: './locales/*.mjs'},
'./package.json': {default: './package.json'},
'.': {
types: './index.d.ts',
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Expand Up @@ -16,6 +16,7 @@
"default": "./locales/global/*.js"
},
"./locales/*": {
"types": "./locales/*.d.ts",
"default": "./locales/*.mjs"
}
},
Expand Down

0 comments on commit da056a1

Please sign in to comment.