palantir/blueprint

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

开放

#5,295 创建于 2022年5月10日

 (0 条评论) (0 个反应) (0 位负责人)TypeScript (2,167 个派生)batch import
Domain: toolingP2Type: bughelp wanted

仓库指标

星标
 (20,263 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南