• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

isneezy / pdf-generator-service / 3998249736

pending completion
3998249736

push

github

Ivan Vilanculo
fix: add  shebang to command-line script on post install

73 of 82 branches covered (89.02%)

Branch coverage included in aggregate %.

24 of 24 new or added lines in 2 files covered. (100.0%)

536 of 568 relevant lines covered (94.37%)

2.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/cli/scripts/post-install.js
1
/* eslint-disable @typescript-eslint/no-var-requires */
×
2
const { existsSync, readFileSync, writeFileSync } = require('fs')
×
3
const path = require('path')
×
4

×
5
const SHEBANG = '#!/usr/bin/env node'
×
6
const binFile = path.resolve(__dirname, '../dist/src/index.js')
×
7

×
8
if (existsSync(binFile)) {
×
9
  const content = readFileSync(binFile, 'utf-8').trim()
×
10
  if (content.startsWith(SHEBANG)) return
×
11
  writeFileSync(binFile, `${SHEBANG}\n\n${content}`)
×
12
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc