Skip to content

Commit b85c546

Browse files
committed
chore: fix docs script
1 parent 85c66c8 commit b85c546

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ npx auth # or pnpx, bunx, yarn dlx, etc.
3232

3333
<!-- GENERATED START -->
3434

35-
```sh
35+
```
3636
Usage: auth [options] [command]
3737
3838
Options:

scripts/generate-docs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ output = output.replace(
1414
""
1515
)
1616

17-
const readmePath = join(__dirname, "./README.md")
17+
const readmePath = join(__dirname, "../README.md")
1818
const readme = await fs.readFile(readmePath, "utf-8")
1919

2020
const updatedReadme = readme.replace(
21-
/(?<=<!-- GENERATED START -->\n\n```sh\n)[\s\S]*?(?=```\n\n<!-- GENERATED END -->)/,
21+
/(?<=<!-- GENERATED START -->\n\n```\n)[\s\S]*?(?=```\n\n<!-- GENERATED END -->)/,
2222
output
2323
)
2424

0 commit comments

Comments
 (0)