palantir/blueprint

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

Open

#4,942 创建于 2021年9月30日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)TypeScript (2,167 fork)batch import
Domain: toolingP2Type: bughelp wanted

仓库指标

Star
 (20,263 star)
PR 合并指标
 (平均合并 43天 10小时) (30 天内合并 27 个 PR)

描述

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

贡献者指南