github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/js/src/solts/sol/build.ts (about)

     1  import * as path from 'path';
     2  import { build } from '../build';
     3  
     4  // Build these before any tests tha may rely on the generated output
     5  const basePath = path.join(__dirname, '..', '..', '..', 'src', 'solts', 'sol');
     6  build(basePath, { burrowImportPath: (file) => path.join(path.relative(file, basePath), '../index') }).catch((err) => {
     7    console.log(`Could not build solts test files: ${err}`, err);
     8    process.exit(1);
     9  });