palantir/blueprint

[node-build-scripts] sass-lint path logic is broken

Open

#4,942 opened on Sep 30, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: toolingP2Type: bughelp wanted

Description

Environment

  • Package version(s): node-build-scripts v1.6.x

Steps to reproduce

  1. Use sass-lint.js script 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

Contributor guide

[node-build-scripts] sass-lint path logic is broken · palantir/blueprint#4942 | Good First Issue