-
Notifications
You must be signed in to change notification settings - Fork 10
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
Globs don't work on Windows #204
Comments
This might be due to the some weird interaction between Node and the Windows command line. Does the same issue occur when you run the migrator command directly? |
I already tried migrator command directly. I have same issue when I run the migrator command directly. |
Sorry for the delayed reply. Does wrapping the glob in single quotes (e.g. |
I'm experiencing the same issue but for the module migrator: I'm running Does the migrator actually work for multiple files paths or only for single file paths? I didn't find anything explicit about it in the documentation and every example is for one single file Wrapping the path with single or double quotes doesn't change anything Thanks for the help |
I didn't find any solution for multiple files. |
Renaming this since the problem isn't that multiple files aren't supported; it's that there seems to be an issue with globs on Windows. I don't have a proper development environment set up on Windows to debug at the moment, but I'll try to take a look sometime soon. As a workaround in the meantime, running in a Unix-style shell (e.g. cygwin or, even better, WSL) should let you use the shell's native glob resolution. |
I had great success in Windows when using PowerShell via Windows Terminal. Globs worked fine for me in that environment, e.g. |
I have project which use bootstrap. After install all necessary packages I wanted to migrate bootstrap scss files.
Example from my package.json:
"postinstall": "npm run migrate-bootstrap-sass", "migrate-bootstrap-sass": "sass-migrator division ../../../node_modules/bootstrap/scss/*.scss"
also I tried
"migrate-bootstrap-sass": "sass-migrator division ../../../node_modules/bootstrap/**/*.scss"
In both cases, migration does not work for me.
File by file migration works fine (you can see an example below).
"postinstall": "npm run migrate-bootstrap-bootstrap-grid && npm run migrate-bootstrap-variables ", "migrate-bootstrap-bootstrap-grid": "sass-migrator division ../../../node_modules/bootstrap/scss/bootstrap-grid.scss" "migrate-bootstrap-variables": "sass-migrator division ../../../node_modules/bootstrap/scss/_variables.scss"
I am using "sass-migrator": "^1.5.1", and my OS is Windows 10.
Please any help.
The text was updated successfully, but these errors were encountered: