mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 15:55:01 -04:00
forcing W on writeFileSync
This commit is contained in:
parent
52a8e482e5
commit
cafb5f1dd1
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ const newPath = path.join(dir, "src/core/config/modules");
|
|||
mkdirpSync(newPath);
|
||||
|
||||
//Create the default files
|
||||
fs.writeFileSync(path.join(dir, "src/core/config/modules/OpModules.mjs"), "export default{};\n");
|
||||
fs.writeFileSync(path.join(dir, "src/core/config/OperationConfig.json"), "[]\n");
|
||||
fs.writeFileSync(path.join(dir, "src/core/config/modules/OpModules.mjs"), "export default{};\n", {"flag": "w"});
|
||||
fs.writeFileSync(path.join(dir, "src/core/config/OperationConfig.json"), "[]\n", {"flag": "w"});
|
||||
|
||||
//Run the generateOpsIndex.mjs file
|
||||
childProcess.fork(path.join(dir, "src/core/config/scripts/generateOpsIndex.mjs"), { execArgv: ["--experimental-modules", "--no-warnings", "--no-deprecation"]});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue