mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Use fs.mkdirSync instead of execSync('mkdir -p ...')
Also consistently use {recursive: true} in case directory is nested
in an also-not-yet-existent directory.
This commit is contained in:
committed by
Christopher Allen
parent
2c83652733
commit
85b50fcb73
@@ -448,7 +448,7 @@ function buildLangfiles(done) {
|
||||
// Create output directory.
|
||||
// TODO(#5000): does mkidr -p work on Windows?
|
||||
const outputDir = path.join(BUILD_DIR, 'msg', 'js');
|
||||
execSync(`mkdir -p ${outputDir}`, {stdio: 'inherit'});
|
||||
fs.mkdirSync(outputDir, {recursive: true});
|
||||
|
||||
// Run create_messages.py.
|
||||
let json_files = fs.readdirSync(path.join('msg', 'json'));
|
||||
|
||||
Reference in New Issue
Block a user