Skip to content

Commit

Permalink
feat: alias defineMessages to @formatjs/macro and deprecate our own
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Ho committed Nov 1, 2019
1 parent f5eacbf commit f6ab2f1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 59 deletions.
38 changes: 18 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@formatjs/intl-listformat": "^1.2.1",
"@formatjs/intl-relativetimeformat": "^4.2.1",
"@formatjs/intl-unified-numberformat": "^2.1.0",
"@formatjs/macro": "^0.2.1",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/invariant": "^2.2.30",
"hoist-non-react-statics": "^3.3.0",
Expand Down
19 changes: 0 additions & 19 deletions src/define-messages.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

export * from './types';
export {default as defineMessages} from './define-messages';
export {defineMessages} from '@formatjs/macro';
import {
createFormattedComponent,
createFormattedDateTimePartsComponent,
Expand Down
19 changes: 0 additions & 19 deletions test/unit/define-messages.ts

This file was deleted.

0 comments on commit f6ab2f1

Please sign in to comment.