From e5d6e3c1d1c12224fec7031c9c13ee7f87199e01 Mon Sep 17 00:00:00 2001 From: Tecvan-fe Date: Sun, 4 Jan 2026 20:09:52 +0800 Subject: [PATCH] chore: support slash style path --- .../fix-slash-dir_2026-01-04-12-10.json | 11 +++++++++++ packages/rush-plugins/increment-run/src/lint/index.ts | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 common/changes/@coze-arch/rush-increment-run-plugin/fix-slash-dir_2026-01-04-12-10.json diff --git a/common/changes/@coze-arch/rush-increment-run-plugin/fix-slash-dir_2026-01-04-12-10.json b/common/changes/@coze-arch/rush-increment-run-plugin/fix-slash-dir_2026-01-04-12-10.json new file mode 100644 index 00000000..a9aac43b --- /dev/null +++ b/common/changes/@coze-arch/rush-increment-run-plugin/fix-slash-dir_2026-01-04-12-10.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@coze-arch/rush-increment-run-plugin", + "comment": "support slash style path", + "type": "patch" + } + ], + "packageName": "@coze-arch/rush-increment-run-plugin", + "email": "tecvan.fe@qq.com" +} diff --git a/packages/rush-plugins/increment-run/src/lint/index.ts b/packages/rush-plugins/increment-run/src/lint/index.ts index 3c95a8d8..3436225e 100644 --- a/packages/rush-plugins/increment-run/src/lint/index.ts +++ b/packages/rush-plugins/increment-run/src/lint/index.ts @@ -109,9 +109,9 @@ export const runLint = async ( path.relative(projectFolder, path.resolve(root, file)), ); - const command = `eslint --quiet ${files.join( - ' ', - )} --no-error-on-unmatched-pattern ${DISABLED_RULES.map( + const command = `eslint --quiet ${files + .map(f => `${f}`) + .join(' ')} --no-error-on-unmatched-pattern ${DISABLED_RULES.map( r => `--rule '${r}: 0'`, )}`; logger.info(`cd ${projectFolder}`);