Skip to content

Commit

Permalink
process.umask() is deprecated (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdistin committed May 13, 2020
1 parent f901baa commit f6401fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextra/mkdirs.ts
Expand Up @@ -63,7 +63,7 @@ export async function mkdirs(path: string, options?: MkdirsOptions | number): Pr
function resolveOptions(options: MkdirsOptions | number = {}): MkdirsOptions {
return {
// eslint-disable-next-line no-bitwise
mode: typeof options === 'number' ? options : options.mode || 0o0777 & ~process.umask()
mode: typeof options === 'number' ? options : options.mode || 0o0777
};
}

Expand Down

0 comments on commit f6401fc

Please sign in to comment.