Skip to content

Commit

Permalink
fix: rename @types.ts to @types/index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Mar 15, 2021
1 parent 1e5aef7 commit e6cba05
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/writeRouteFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default ({
}[]
}) => {
if (types) {
fs.writeFileSync(`${config.input}/@types.ts`, types, 'utf8')
fs.mkdirSync(`${config.input}/@types`)
fs.writeFileSync(`${config.input}/@types/index.ts`, types, 'utf8')
}

files.forEach(p => {
Expand Down

0 comments on commit e6cba05

Please sign in to comment.