leigna
leigna
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
great thank you I will have a look at that! 😄
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
Im really not too familiar with this stuff I find Deno great for prototyping ideas as its brilliant but not too familiar with internals etc, but does my logic sound correct on this? Here is the rust code for fmt: https://github.com/denoland/deno/blob/main/cli/tools/fmt.rs I found this blog: https://deno.com/blog/wasmbuild maybe i could just try this with the deno cli code i will have a look
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
This was the workaround i ended up with, no temp file and just fmt the whole directory
// After the loop has finished processing all schema files, format them all at once
const command = new Deno.Command("deno", {
args: ["fmt", "./schemas"],
});
const child = command.spawn();
await child.status;
// After the loop has finished processing all schema files, format them all at once
const command = new Deno.Command("deno", {
args: ["fmt", "./schemas"],
});
const child = command.spawn();
await child.status;
9 replies
DDeno
Created by leigna on 9/30/2023 in #help
Anyway to use deno fmt within a script itself without having to call deno again?
Okay thank you!
9 replies