Skip to content

Commit

Permalink
fix(windows): bin path reference includes file on Windows
Browse files Browse the repository at this point in the history
release-npm
  • Loading branch information
tobua committed May 5, 2022
1 parent cb0265c commit e6db284
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utility/input.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { sep } from 'path'
import { Command } from 'commander'

export const getInputs = (options, specification) => {
// Not run through papua CLI, skip parsing arguments.
if (!process.argv[1].endsWith('papua')) {
if (!(process.argv[1].endsWith('papua') || process.argv[1].endsWith(`papua${sep}cli.js`))) {
return options || {}
}

Expand Down

0 comments on commit e6db284

Please sign in to comment.