Skip to content

Commit d9eea76

Browse files
committed
chore: fix update script
1 parent 4b5f294 commit d9eea76

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.prettierignore

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
/tests/fixtures
1111
/tests-integrations/config-recommended
1212
/docs/.vitepress/cache
13-
/scripts/update-**.ts
1413

1514
# ignore files
1615
/CHANGELOG.md

scripts/lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function writeFile(filePath: string, content: string) {
2121
) as Options
2222
await fs.writeFile(
2323
filePath,
24-
format(linted, { filepath: filePath, ...prettierrc })
24+
await format(linted, { filepath: filePath, ...prettierrc })
2525
)
2626
}
2727

scripts/update-index-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ ${withCategories.map(toCategorySection).join('\n')}
5252
// write docs index
5353
await fs.writeFile(
5454
filePath,
55-
format(content, { filepath: filePath, ...prettierrc })
55+
await format(content, { filepath: filePath, ...prettierrc })
5656
)
5757
}

scripts/update-rule-docs.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ class DocFile {
4848
return this
4949
}
5050

51-
write() {
51+
async write() {
5252
writeFileSync(
5353
this.filePath,
54-
format(this.content, {
54+
await format(this.content, {
5555
filepath: this.filePath,
5656
...prettierrc
5757
})
@@ -167,7 +167,7 @@ This rule was introduced in \`@intlify/eslint-plugin-vue-i18n\` ${this.since}
167167
export async function update(): Promise<void> {
168168
for (const rule of await getRules()) {
169169
const doc = await new DocFile(rule).init()
170-
doc
170+
await doc
171171
.updateFileIntro()
172172
.updateHeader()
173173
.updateCodeBlocks()

0 commit comments

Comments
 (0)