diff --git a/.changeset/sweet-bats-punch.md b/.changeset/sweet-bats-punch.md new file mode 100644 index 00000000..fe80fdbd --- /dev/null +++ b/.changeset/sweet-bats-punch.md @@ -0,0 +1,6 @@ +--- +"@moonwall/cli": patch +--- + +Fixes for tanssi +- [#295](https://github.com/Moonsong-Labs/moonwall/issues/295) diff --git a/packages/cli/src/internal/localNode.ts b/packages/cli/src/internal/localNode.ts index 2a119fb4..98de2015 100644 --- a/packages/cli/src/internal/localNode.ts +++ b/packages/cli/src/internal/localNode.ts @@ -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"); @@ -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