Skip to content

Commit 1369be7

Browse files
authored
fix diff command build error (#54)
* fix diff command build error * update test npm script
1 parent 3785060 commit 1369be7

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

CHANGELOG.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
2-
## v0.12.0 (2020-01-08)
3-
4-
#### :star: Features
5-
* [#52](https://github.com/kazupon/vue-i18n-locale-message/pull/52) --format option feature ([@kazupon](https://github.com/kazupon))
6-
7-
#### Committers: 1
8-
- kazuya kawaguchi ([@kazupon](https://github.com/kazupon))
9-
10-
111
## v0.11.0 (2020-01-07)
122

133
#### :star: Features

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"lint": "eslint ./src ./test --ext .ts --ignore-pattern \"*.test.*\"",
9696
"release:prepare": "shipjs prepare",
9797
"release:trigger": "shipjs trigger",
98-
"test": "npm run lint && npm run test:types && npm run test:cover",
98+
"test": "npm run lint && npm run test:types && npm run test:cover && npm run build",
9999
"test:cover": "npm run test:unit -- --coverage",
100100
"test:unit": "jest --env node",
101101
"test:types": "tsd",

src/commands/diff.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const builder = (args: Argv): Argv<DiffOptions> => {
6464

6565
export const handler = async (args: Arguments<DiffOptions>): Promise<unknown> => {
6666
const { normalize } = args
67+
const format = 'json'
6768
const ProviderFactory = loadProvider(args.provider)
6869

6970
if (ProviderFactory === null) {
@@ -92,7 +93,7 @@ export const handler = async (args: Arguments<DiffOptions>): Promise<unknown> =>
9293
try {
9394
const provider = ProviderFactory(conf)
9495
const locales = Object.keys(localeMessages) as Locale[]
95-
const serviceMessages = await provider.pull({ locales, dryRun: false, normalize })
96+
const serviceMessages = await provider.pull({ locales, dryRun: false, normalize, format })
9697
console.log(diffString(localeMessages, serviceMessages))
9798
} catch (e) {
9899
// TODO: should refactor console message

0 commit comments

Comments
 (0)