WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Bug: "No files matching ''**/*.mjs'' were found" on Windows #37

@bcoe

Description

@bcoe

What version of this package are you using?

7.0.0

What operating system, Node.js, and npm version?

Windows (works fine on OSX/Linux).

What happened?

I receive an exception that the following matching rules does not work on Windows:

standardx --fix '**/*.mjs' && standardx --fix '**/*.cjs' && standardx --fix './*.mjs' && standardx --fix './*.cjs'

see: yargs/yargs#1804

If I drop the quotes around the --fix statements, I begin receiving the following errors:

  /Users/bencoe/oss/yargs/test/parser.cjs:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
  /Users/bencoe/oss/yargs/test/usage.cjs:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
  /Users/bencoe/oss/yargs/test/validation.cjs:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.
  /Users/bencoe/oss/yargs/test/yargs.cjs:0:0: File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

What did you expect to happen?

I would like to figure out a glob pattern that works for .cjs, .mjs, in top level and nested folder, both on Windows and Linux.

Are you willing to submit a pull request to fix this bug?

If I was pointed in the right direction. Seem like potentially the tokenizer should drop quotes around glob patterns.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions