Skip to content

Commit

Permalink
Merge pull request #268 from nobkd/patch-1
Browse files Browse the repository at this point in the history
chore(cli): make executable filtering more robust
  • Loading branch information
tipiirai committed Apr 29, 2024
2 parents 13a7bf8 + bb1413b commit dd21f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuekit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export function expandArgs(args) {
export function getArgs(argv) {
const commands = ['serve', 'build', 'stats']
const args = { paths: [], root: '.' }
const checkExecutable = /[\\\/]nue(\.(cmd|ps1|bunx|exe))?$/
let opt

expandArgs(argv.slice(1)).forEach((arg, i) => {

// skip
if (arg.endsWith(sep + 'cli.js') || arg.endsWith('/nue') || arg == '--') {
if (arg.endsWith(sep + 'cli.js') || checkExecutable.test(arg) || arg == '--') {

// test suite
} else if (arg.endsWith('.test.js')) {
Expand Down

0 comments on commit dd21f74

Please sign in to comment.