We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 53b39c4 + eea4041 commit 5f01dcbCopy full SHA for 5f01dcb
src/utils.ts
@@ -4,7 +4,7 @@ import path from 'path'
4
5
export function write(dir: string, filename: string, data: Buffer) {
6
const file = path.join(dir, filename)
7
- fs.mkdirpSync(file.slice(0, file.lastIndexOf('/')))
+ fs.mkdirpSync(path.dirname(file))
8
return fs.writeFileSync(file, data)
9
}
10
0 commit comments