diff --git a/packages/cli/package.json b/packages/cli/package.json index 8d26280..ceb5e2a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@mosaic/cli", - "version": "0.0.6", + "version": "0.0.7", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/cli/src/commands/launch.ts b/packages/cli/src/commands/launch.ts index 4105009..bb48d81 100644 --- a/packages/cli/src/commands/launch.ts +++ b/packages/cli/src/commands/launch.ts @@ -7,6 +7,7 @@ import { execFileSync, execSync, spawnSync } from 'node:child_process'; import { existsSync, mkdirSync, readFileSync, writeFileSync, readdirSync, rmSync } from 'node:fs'; +import { createRequire } from 'node:module'; import { homedir } from 'node:os'; import { join, dirname } from 'node:path'; import type { Command } from 'commander'; @@ -491,7 +492,20 @@ function delegateToScript(scriptPath: string, args: string[], env?: Record