Skip to content

Commit b828a39

Browse files
committed
fix: add ini as dev
1 parent 80b665d commit b828a39

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

__test__/locale.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, it, expect } from 'vitest'
22
import { resolve } from 'node:path'
3+
import { parse } from 'ini'
34
import { readdirSync } from 'node:fs'
45
import en from '../locales/en-US.json'
56

@@ -22,7 +23,7 @@ const defaultKeys = getKeys(en);
2223
describe("locale files should include all keys", () => {
2324
localesOtherThanEnglish.forEach((locale) => {
2425
it(`for ${locale}`, () => {
25-
expect(getKeys(require(`../locales/${locale}`))).toEqual(defaultKeys)
26+
expect(getKeys(parse(`../locales/${locale}`))).toEqual(defaultKeys)
2627
})
2728
})
2829
})

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@
5454
"prettier": "^3.1.0",
5555
"prompts": "^2.4.2",
5656
"vitest": "^1.0.1",
57-
"zx": "^7.2.3"
57+
"zx": "^7.2.3",
58+
"ini": "^4.1.1"
5859
},
5960
"lint-staged": {
6061
"*.{js,ts,vue,json}": [
6162
"prettier --write"
6263
]
63-
},
64-
"dependencies": {
65-
"ini": "^4.1.1"
6664
}
6765
}

pnpm-lock.yaml

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)