Skip to content

Commit

Permalink
fix node_logs for chopsticks
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed Nov 1, 2023
1 parent 163908c commit 52b1d64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/sweet-bats-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@moonwall/cli": patch
---

Fixes for tanssi
- [#295](https://github.com/Moonsong-Labs/moonwall/issues/295)
4 changes: 4 additions & 0 deletions packages/cli/src/internal/localNode.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Debug from "debug";
import { execaCommand, execaCommandSync } from "execa";
import path from "path";
import fs from "fs";
import WebSocket from "ws";
import { checkAccess, checkExists } from "./fileCheckers";
const debugNode = Debug("global:node");
Expand All @@ -17,6 +18,9 @@ export async function launchNode(cmd: string, args: string[], name: string): Pro
}

const dirPath = path.join(process.cwd(), "tmp", "node_logs");
if (!fs.existsSync(dirPath)) {
fs.mkdirSync(dirPath, { recursive: true });
}

debugNode(`Launching dev node: ${name}`);
const logLocation = path
Expand Down

0 comments on commit 52b1d64

Please sign in to comment.