UNPKG

apiveritas

Version:

Lightweight CLI tool for consumer-driven API contract testing via JSON schema and payload comparisons.

14 lines (11 loc) 414 B
const fs = require('fs') const path = require('path') const cliPath = path.resolve(__dirname, '../dist/bin/cli.js') const content = fs.readFileSync(cliPath, 'utf8') if (!content.startsWith('#!')) { const shebang = '#!/usr/bin/env node\n' fs.writeFileSync(cliPath, shebang + content) console.log('ℹ Shebang added to dist/bin/cli.js') } else { console.log('ℹ Shebang already exists.') }