From 9e78effab9148374e6ff61c12ef0a98fbf0c335f Mon Sep 17 00:00:00 2001 From: Thomas Cruveilher <38007824+Sorikairox@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:18:37 +0000 Subject: [PATCH] fix: stdout running app to console --- deno.json | 2 +- run.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deno.json b/deno.json index a0370f4..1a936ab 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@danet/cli", - "version": "0.9.1", + "version": "0.9.2", "exports": { ".": "./main.ts" }, diff --git a/run.ts b/run.ts index c30dd6b..9d922c3 100644 --- a/run.ts +++ b/run.ts @@ -1,13 +1,15 @@ export const runProjectWithWatch: () => void = async () => { const command = new Deno.Command("deno", { - args: ['run', '--watch', '--allow-net', '--allow-read', '--unstable', '--allow-env', 'run.ts'] + args: ['run', '--watch', '--allow-net', '--allow-read', '--unstable', '--allow-env', 'run.ts'], + stdout: "inherit" }); await command.output(); } export const runProject: () => void = async () => { const command = new Deno.Command("deno", { - args: ['run', '--allow-net', '--allow-read', '--unstable', '--allow-env', 'run.ts'] + args: ['run', '--allow-net', '--allow-read', '--unstable', '--allow-env', 'run.ts'], + stdout: "inherit" }); await command.output(); } \ No newline at end of file