palantir/blueprint

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

オープン

#5,295 opened on 2022/05/10

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (2,167 件のフォーク)batch import
Domain: toolingP2Type: bughelp wanted

Repository metrics

Stars
 (20,263 個のスター)
PR merge metrics
 (平均マージ 43d 10h) (30d で 27 merged PRs)

説明

similar to https://github.com/palantir/blueprint/issues/4942

Environment

  • Package version(s): node-build-scripts v2.0.x

Steps to reproduce

use es-lint script outside this repo, in CircleCI where JUNIT_REPORT_PATH variable is present in the environment

Actual behavior

the utility function junitReportPath() returns a path within node_modules/reports/, which is wrong

Expected behavior

The script is usable outside this repo

Possible solution

Use process.cwd() instead of __dirname

コントリビューターガイド