MCPcopy Create free account
hub / github.com/MirrowApp/mirrow / assertMirrowFile

Function assertMirrowFile

packages/cli/src/runner.ts:23–29  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

21type Task = () => Promise<void>;
22
23function assertMirrowFile(filePath: string): void {
24 if (path.extname(filePath) !== MIRROW_EXTENSION) {
25 throw new Error(
26 `Mirrow sources must use the ${MIRROW_EXTENSION} extension`
27 );
28 }
29}
30
31async function compileMirrowFile(
32 inputFile: string,

Callers 2

compileMirrowFileFunction · 0.85
runMirrowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected