Skip to content

Commit

Permalink
fix: stdout running app to console
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorikairox committed Oct 1, 2024
1 parent 6e716ce commit 9e78eff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@danet/cli",
"version": "0.9.1",
"version": "0.9.2",
"exports": {
".": "./main.ts"
},
Expand Down
6 changes: 4 additions & 2 deletions run.ts
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 9e78eff

Please sign in to comment.