MCPcopy Create free account
hub / github.com/CashScript/cashscript / compileFile

Function compileFile

packages/cashc/src/compiler.ts:106–109  ·  view source on GitHub ↗
(codeFile: PathLike, compilerOptions: CompileOptions = {})

Source from the content-addressed store, hash-verified

104 * @throws If the file cannot be read, or if the source contains a compilation error.
105 */
106export function compileFile(codeFile: PathLike, compilerOptions: CompileOptions = {}): Artifact {
107 const code = fs.readFileSync(codeFile, { encoding: 'utf-8' });
108 return compileString(code, compilerOptions);
109}
110
111export function parseCode(
112 code: string,

Callers 9

mecenas.tsFile · 0.90
announcement.tsFile · 0.90
p2pkh.jsFile · 0.90
p2pkh.tsFile · 0.90
hodl_vault.tsFile · 0.90
debugging.test.tsFile · 0.85
generation.test.tsFile · 0.85
runFunction · 0.85

Calls 1

compileStringFunction · 0.85

Tested by

no test coverage detected