@neo-one/smart-contract-compiler
Version:
NEO•ONE TypeScript smart contract compiler.
12 lines (10 loc) • 713 B
JavaScript
import { compileContract as compileContractBase } from './compileContract';
import { getSemanticDiagnostics as getSemanticDiagnosticsBase } from './getSemanticDiagnostics';
import { throwOnDiagnosticErrorOrWarning } from './utils';
export const getSemanticDiagnostics = (filePath, languageService, host) => getSemanticDiagnosticsBase({ filePath, languageService, host });
export const compileContract = (filePath, contractName, host, linked = {}, ignoreWarnings = false) => {
const result = compileContractBase({ filePath, host, linked });
throwOnDiagnosticErrorOrWarning(result.diagnostics, ignoreWarnings, `Error while compiling ${contractName}`);
return result;
};
//# sourceMappingURL=api.js.map