apiveritas
Version:
Lightweight CLI tool for consumer-driven API contract testing via JSON schema and payload comparisons.
14 lines (11 loc) • 409 B
text/typescript
import fs from 'fs';
import path from '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');
}