You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows shells (cmd.exe, PowerShell) do not do that and actually pass the arg with the wildcards into the application, so it deals with the glob internally
So, in short, the issue is that executing the same command in bash works fine, and fails in Windows shells due to the lack of glob expansion. This makes it hard to set up some useful scripts in my package.json that work on all platforms.
A possible solution would be parsing the CLI arguments and checking with is-glob whether the arg looks like a glob, then resolving it with glob into a list of files.
The text was updated successfully, but these errors were encountered:
src/*.lua
that match multiple filesnodemcu-tool upload --minify --compile src/*.lua
actually executes this:nodemcu-tool upload --minify --compile src/init.lua src/my_script.lua
So, in short, the issue is that executing the same command in bash works fine, and fails in Windows shells due to the lack of glob expansion. This makes it hard to set up some useful scripts in my
package.json
that work on all platforms.A possible solution would be parsing the CLI arguments and checking with is-glob whether the arg looks like a glob, then resolving it with glob into a list of files.
The text was updated successfully, but these errors were encountered: