mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
moving writeFile into try/catch
This commit is contained in:
parent
50d03787de
commit
55b555d25c
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ async function testExampleString(str) {
|
|||
${str}
|
||||
`;
|
||||
const { path, cleanup } = await file({ postfix: ".ts" });
|
||||
// work with file here in fd
|
||||
await writeFile(path, str);
|
||||
try {
|
||||
// work with file here in fd
|
||||
await writeFile(path, str);
|
||||
await execPromise(`tsc --noEmit --target es5 --lib dom,ES2015 ${path}`);
|
||||
} finally {
|
||||
cleanup();
|
||||
|
|
Loading…
Reference in a new issue