Skip to content

Commit

Permalink
fix: add mkdirSync workerSaveDir in compileLib.js
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLynn committed Jan 7, 2025
1 parent 09efb25 commit 2726bab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/semi-json-viewer-core/script/compileLib.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const compile = async ()=>{
if (!fs.existsSync(saveDir)) {
fs.mkdirSync(saveDir);
}
if (!fs.existsSync(workerSaveDir)) {
fs.mkdirSync(workerSaveDir);
}
fs.writeFileSync(path.join(workerSaveDir, "worker.js"), workerRaw, 'utf8');
fs.writeFileSync(path.join(saveDir, "index.js"), finalRaw, 'utf8');
};
Expand Down

0 comments on commit 2726bab

Please sign in to comment.