From bd822ca80cd4f7ef14fe8e432bf064805d183612 Mon Sep 17 00:00:00 2001 From: pauloZion Date: Mon, 29 Sep 2025 16:07:14 +0800 Subject: [PATCH 1/3] Remove missing turbow.js references --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 53b9da4c57616..9fe110bca027e 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "lint:prettier": "turbo run lint:prettier", "check:toml": "taplo format --check", "docs:dev": "turbo run dev --filter=turborepo-docs", - "turbo": "pnpm run build:turbo && node turbow.js", - "turbo-prebuilt": "node turbow.js", + "turbo": "pnpm run build:turbo && pnpm -- turbo", + "turbo-prebuilt": "pnpm -- turbo", "prepare": "husky install", "test": "turbo run test", "test:integration": "pnpm --filter turborepo-tests-integration exec prysk", From 1d9d8d6f04b05a4845315a61753be17cab50e8d7 Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Mon, 29 Sep 2025 15:38:22 -0700 Subject: [PATCH 2/3] fix(eslint-config-turbo): use module.exports for ESLint v8 compatibility Fixes #10901 In PR #10794, we changed from module.exports to export default, which caused bunchee to generate exports.default = config instead of module.exports = config in the CommonJS build. ESLint v8 with legacy .eslintrc.* configuration expects shareable configs to export directly via module.exports. When it encounters exports.default, it interprets 'default' as an unexpected top-level configuration property, resulting in the error: 'Unexpected top-level property "default"' This fix reverts to module.exports for the main entry point to restore ESLint v8 compatibility, while maintaining ESLint v9 flat config support through the ./flat export path. Testing: - Verified publint --strict passes - Verified attw type checking passes - Confirmed compiled output uses module.exports - Both CJS require() and ESM import() work correctly --- packages/eslint-config-turbo/package.json | 5 ++--- packages/eslint-config-turbo/src/index.ts | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/eslint-config-turbo/package.json b/packages/eslint-config-turbo/package.json index 9fb56676879f2..a9b4797ea5fc5 100644 --- a/packages/eslint-config-turbo/package.json +++ b/packages/eslint-config-turbo/package.json @@ -32,7 +32,6 @@ ], "main": "./dist/cjs/index.js", "types": "./dist/cjs/index.d.ts", - "module": "./dist/es/index.mjs", "exports": { "./flat": { "import": { @@ -46,8 +45,8 @@ }, ".": { "import": { - "types": "./dist/es/index.d.mts", - "default": "./dist/es/index.mjs" + "types": "./dist/cjs/index.d.ts", + "default": "./dist/cjs/index.js" }, "require": { "types": "./dist/cjs/index.d.ts", diff --git a/packages/eslint-config-turbo/src/index.ts b/packages/eslint-config-turbo/src/index.ts index 31877f9071ce4..62a7731544fb4 100644 --- a/packages/eslint-config-turbo/src/index.ts +++ b/packages/eslint-config-turbo/src/index.ts @@ -2,5 +2,4 @@ const config = { extends: ["plugin:turbo/recommended"], }; -// eslint-disable-next-line import/no-default-export -- ESLint convention is a default export -export default config; +module.exports = config; From 81c8ec6458a50a9adf39dcdd9b5540fe4458a7ad Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Tue, 30 Sep 2025 07:16:41 -0700 Subject: [PATCH 3/3] oops --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9fe110bca027e..53b9da4c57616 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "lint:prettier": "turbo run lint:prettier", "check:toml": "taplo format --check", "docs:dev": "turbo run dev --filter=turborepo-docs", - "turbo": "pnpm run build:turbo && pnpm -- turbo", - "turbo-prebuilt": "pnpm -- turbo", + "turbo": "pnpm run build:turbo && node turbow.js", + "turbo-prebuilt": "node turbow.js", "prepare": "husky install", "test": "turbo run test", "test:integration": "pnpm --filter turborepo-tests-integration exec prysk",