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}`);