File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -434,4 +434,4 @@ You can contribute just by submitting bugs or suggesting improvements by
434
434
435
435
## License
436
436
437
- Licensed under [ MIT License] ( LICENSE ) . © Luciano Mammino.
437
+ Licensed under [ MIT License] ( LICENSE ) . © Luciano Mammino.
Original file line number Diff line number Diff line change 1
1
pre-commit :
2
2
parallel : true
3
3
commands :
4
- updateReadme :
5
- files : " src/openapi.yml scripts/updateReadme.ts"
4
+ update-readme :
5
+ glob : " { src/openapi.yml, scripts/updateReadme.ts} "
6
6
run : pnpm run update-readme
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const docs = stdout
40
40
. replace ( / ^ # # / g, '### ' )
41
41
. replace ( / ^ # / g, '## ' )
42
42
43
- const newContent = `${ before } <!-- openapi -->\n${ docs } \n<!-- openapi -->\n${ after } `
43
+ const newContent = `${ before } <!-- openapi -->\n${ docs } \n<!-- openapi -->\n${ after . trimEnd ( ) } `
44
44
await writeFile ( readmePath , newContent )
45
45
46
46
console . log ( 'Updated README.md' )
You can’t perform that action at this time.
0 commit comments