MCPcopy Create free account
hub / github.com/BuilderIO/mitosis / cli

Function cli

packages/cli/src/__tests__/utils.ts:3–9  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

1import { filesystem, system } from 'gluegun';
2
3export const cli = async (cmd: string) => {
4 const root = filesystem.path(__dirname, '..', '..');
5 const mitosisCliScript = filesystem.path(root, 'bin', 'mitosis');
6 const shcmd = `node "${mitosisCliScript}" ${cmd}`;
7 console.debug(`Running: ${shcmd}`);
8 return system.run(shcmd);
9};
10
11export const DEFAULT_TEST_TIMEOUT = 20000;

Callers 2

version.test.tsFile · 0.90
compile.test.tsFile · 0.90

Calls 1

pathMethod · 0.80

Tested by

no test coverage detected