Skip to content

Commit 77f70fd

Browse files
committed
Use join method rather than concatenation.
1 parent 3401097 commit 77f70fd

File tree

1 file changed

+3
-1
lines changed
  • packages/doxdox-renderer-github-wiki/src

1 file changed

+3
-1
lines changed

packages/doxdox-renderer-github-wiki/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { join } from 'path';
2+
13
import admzip from 'adm-zip';
24

35
import { markdownTable } from 'markdown-table';
@@ -39,7 +41,7 @@ export default async (doc: Doc): Promise<string | Buffer> => {
3941
Promise.all(
4042
file.methods.map(async method =>
4143
zip.addFile(
42-
`${file.path}/${method.name}.md`,
44+
join(file.path, `${method.name}.md`),
4345
Buffer.from(renderMethod(method), 'utf-8')
4446
)
4547
)

0 commit comments

Comments
 (0)