palantir/blueprint
Vedi su GitHub[node-build-scripts] sass-lint path logic is broken
Open
#4942 aperta il 30 set 2021
Domain: toolingP2Type: bughelp wanted
Metriche repository
- Star
- (20.263 star)
- Metriche merge PR
- (Merge medio 43g 10h) (27 PR mergiate in 30 g)
Descrizione
Environment
- Package version(s): node-build-scripts v1.6.x
Steps to reproduce
- Use
sass-lint.jsscript outside of this repo, through@blueprintjs/node-build-scripts
Actual behavior
It always fails to find .stylelintrc because it's looking inside the node_modules folder where the scripts package is installed.
Expected behavior
The script is usable outside this repo...
Possible solution
Use process.cwd() instead of __dirname, and also allow a CLI argument to override the configFile option