Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.0.3 has Carriage Return on npm #46

Closed
yukha-dw opened this issue Sep 26, 2024 · 1 comment
Closed

Version 5.0.3 has Carriage Return on npm #46

yukha-dw opened this issue Sep 26, 2024 · 1 comment
Assignees

Comments

@yukha-dw
Copy link

yukha-dw commented Sep 26, 2024

Describe the bug
Version 5.0.3 has Carriage Return on npm

To Reproduce
Steps to reproduce the behavior:

  1. Install 5.0.3 using npm install [email protected]
  2. Verify CR using cat -v node_modules/tap-junit/bin/tap-junit

Expected behavior
Do not contain CR

cat -v node_modules/tap-junit/bin/tap-junit
#! /usr/bin/env node
^M
/* Modules */^M
const parsedArgs = require('minimist')(process.argv.slice(2), {^M
  alias: {^M
    c: 'classname',^M
    o: 'output',^M
    n: 'name',^M
    s: 'suite',^M
    v: 'version',^M
    i: 'input',^M
    p: 'pretty'^M
  }^M
})^M
const { version } = require('../package.json')^M
const parser = require('../src/index.js')^M
const { createReadStream } = require('fs')^M
const path = require('path')^M
^M
/* Output */^M
if (parsedArgs.version) {^M
  console.log(version)^M
} else if (parsedArgs.input) {^M
  createReadStream(path.join(process.cwd(), parsedArgs.input))^M
    .pipe(parser(parsedArgs))^M
} else {^M
  process.stdin^M
    .pipe(parser(parsedArgs))^M
}^M
@dhershman1 dhershman1 self-assigned this Oct 8, 2024
@dhershman1
Copy link
Owner

Thanks for the report, sorry for the delay this got buried in work notifications.

v5.0.4 should now install with LF line endings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants