sass / migrator

Tool for migrating stylesheets to new Sass versions
MIT License
89 stars 11 forks source link

Problems migrating in build toolchain #207

Closed beruic closed 3 years ago

beruic commented 3 years ago

In the project I am working on, we are dependent on Bootstrap 4.6.0. I would like to migrate that automatically during build, but when I ass npx sass-migrator division -v node_modules/bootstrap/scss/**/*.scss as a gulp task or to postinstall in package.json it doesn't migrate all the files. What could be the issue?

beruic commented 3 years ago

It seems this issue is caused by the runtime shell for Node.js' child_process.exec being /bin/sh. I solved it by doing npx sass-migrator division -v node_modules/bootstrap/scss/**/*.scss node_modules/bootstrap/scss/*.scss.