[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(@formatjs/intl-displaynames): refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
longlho committed Jul 24, 2021
1 parent 029f7fd commit e392c77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/intl-displaynames/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,12 @@ TESTS = glob([

SRC_DEPS = [
"//packages/ecma402-abstract:dist",
"//packages/intl-localematcher:dist",
]

TEST_DEPS = SRC_DEPS + [
"//packages/ecma402-abstract:types",
"//packages/intl-localematcher:types",
"//packages/intl-getcanonicallocales:dist",
"//packages/intl-getcanonicallocales:types",
"//packages/intl-locale:dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/intl-displaynames/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
getInternalSlot,
setInternalSlot,
GetOption,
ResolveLocale,
invariant,
SupportedLocales,
IsWellFormedCurrencyCode,
Expand All @@ -14,6 +13,7 @@ import {
GetOptionsObject,
} from '@formatjs/ecma402-abstract'
import {CanonicalCodeForDisplayNames} from './abstract/CanonicalCodeForDisplayNames'
import {ResolveLocale} from '@formatjs/intl-localematcher'

export interface DisplayNamesOptions {
localeMatcher?: 'lookup' | 'best fit'
Expand Down
1 change: 1 addition & 0 deletions packages/intl-displaynames/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
},
"dependencies": {
"@formatjs/ecma402-abstract": "1.9.4",
"@formatjs/intl-localematcher": "0.2.17",
"tslib": "^2.1.0"
},
"bugs": {
Expand Down

0 comments on commit e392c77

Please sign in to comment.