From 47b8e5fc8565219eb1ffb4498b59f648c6eba294 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:19:08 -0800 Subject: [PATCH 1/8] fix: remove "import" entries from exports in package.json files The "import" condition in "exports" maps was added in 6d669f1a, but it breaks scenarios where the lib-esm/ output doesn't exist or has incompatibilities. Remove all "import" entries from 78 published project package.json files to fix issue #5644. --- apps/api-documenter/package.json | 2 -- apps/api-extractor/package.json | 2 -- apps/cpu-profile-summarizer/package.json | 1 - apps/heft/package.json | 2 -- apps/lockfile-explorer/package.json | 1 - apps/playwright-browser-tunnel/package.json | 2 -- apps/rundown/package.json | 1 - apps/rush-mcp-server/package.json | 2 -- apps/rush/package.json | 1 - apps/trace-import/package.json | 1 - apps/zipsync/package.json | 2 -- ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ ...package.json-exports-imports_2026-02-19-22-16.json | 11 +++++++++++ eslint/eslint-bulk/package.json | 1 - eslint/eslint-patch/package.json | 5 ----- eslint/eslint-plugin-packlets/package.json | 2 -- eslint/eslint-plugin-security/package.json | 2 -- eslint/eslint-plugin/package.json | 2 -- heft-plugins/heft-api-extractor-plugin/package.json | 1 - heft-plugins/heft-dev-cert-plugin/package.json | 1 - .../package.json | 2 -- heft-plugins/heft-jest-plugin/package.json | 1 - .../heft-json-schema-typings-plugin/package.json | 1 - heft-plugins/heft-lint-plugin/package.json | 1 - .../heft-localization-typings-plugin/package.json | 1 - heft-plugins/heft-rspack-plugin/package.json | 2 -- .../heft-sass-load-themed-styles-plugin/package.json | 1 - heft-plugins/heft-sass-plugin/package.json | 2 -- .../heft-serverless-stack-plugin/package.json | 1 - heft-plugins/heft-storybook-plugin/package.json | 1 - heft-plugins/heft-typescript-plugin/package.json | 2 -- .../heft-vscode-extension-plugin/package.json | 1 - heft-plugins/heft-webpack4-plugin/package.json | 2 -- heft-plugins/heft-webpack5-plugin/package.json | 2 -- libraries/api-extractor-model/package.json | 2 -- libraries/credential-cache/package.json | 2 -- libraries/debug-certificate-manager/package.json | 2 -- libraries/heft-config-file/package.json | 2 -- libraries/load-themed-styles/package.json | 2 -- libraries/localization-utilities/package.json | 2 -- libraries/lookup-by-path/package.json | 2 -- libraries/module-minifier/package.json | 2 -- libraries/node-core-library/package.json | 2 -- libraries/npm-check-fork/package.json | 2 -- libraries/operation-graph/package.json | 2 -- libraries/package-deps-hash/package.json | 2 -- libraries/package-extractor/package.json | 2 -- libraries/problem-matcher/package.json | 2 -- libraries/rig-package/package.json | 2 -- libraries/rush-pnpm-kit-v10/package.json | 2 -- libraries/rush-pnpm-kit-v8/package.json | 2 -- libraries/rush-pnpm-kit-v9/package.json | 2 -- libraries/stream-collator/package.json | 2 -- libraries/terminal/package.json | 2 -- libraries/tree-pattern/package.json | 2 -- libraries/ts-command-line/package.json | 2 -- libraries/typings-generator/package.json | 2 -- libraries/worker-pool/package.json | 2 -- .../rush-amazon-s3-build-cache-plugin/package.json | 2 -- .../package.json | 2 -- rush-plugins/rush-bridge-cache-plugin/package.json | 2 -- rush-plugins/rush-buildxl-graph-plugin/package.json | 2 -- .../rush-http-build-cache-plugin/package.json | 2 -- rush-plugins/rush-mcp-docs-plugin/package.json | 2 -- rush-plugins/rush-redis-cobuild-plugin/package.json | 2 -- rush-plugins/rush-resolver-cache-plugin/package.json | 2 -- rush-plugins/rush-serve-plugin/package.json | 2 -- webpack/hashed-folder-copy-plugin/package.json | 2 -- webpack/loader-load-themed-styles/package.json | 2 -- webpack/loader-raw-script/package.json | 2 -- webpack/preserve-dynamic-require-plugin/package.json | 2 -- webpack/set-webpack-public-path-plugin/package.json | 2 -- .../webpack-embedded-dependencies-plugin/package.json | 2 -- webpack/webpack-plugin-utilities/package.json | 2 -- webpack/webpack-workspace-resolve-plugin/package.json | 2 -- webpack/webpack4-localization-plugin/package.json | 2 -- webpack/webpack4-module-minifier-plugin/package.json | 2 -- .../webpack5-load-themed-styles-loader/package.json | 2 -- webpack/webpack5-localization-plugin/package.json | 2 -- webpack/webpack5-module-minifier-plugin/package.json | 2 -- 148 files changed, 770 insertions(+), 143 deletions(-) create mode 100644 common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json create mode 100644 common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 48ff46f5aaf..3fe37cbad83 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -23,13 +23,11 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 2f08b40faaf..94ab5ae7996 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -31,13 +31,11 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index 5bb79fe6a09..c32bca98869 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -29,7 +29,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/heft/package.json b/apps/heft/package.json index 68a0def1776..fbe461f281f 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -27,13 +27,11 @@ "exports": { ".": { "types": "./dist/heft.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 2fe7ece63b8..115bc2adf55 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -78,7 +78,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index d26ef25d3b1..18c62d6cf8e 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -14,12 +14,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 8a547d89e57..3fef21ca08f 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -33,7 +33,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index ae1588f2adc..ca7e6cefcee 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -15,13 +15,11 @@ "exports": { ".": { "types": "./dist/mcp-server.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rush/package.json b/apps/rush/package.json index e47c747a91e..0a5fc516e13 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -54,7 +54,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index ed13896e2f9..d1dc4cdd316 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -35,7 +35,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index af12e571cae..f65efe93166 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -34,12 +34,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..fd842225edf --- /dev/null +++ b/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/api-documenter" + } + ], + "packageName": "@microsoft/api-documenter", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..8f35ab9c94f --- /dev/null +++ b/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/api-extractor-model" + } + ], + "packageName": "@microsoft/api-extractor-model", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..8cfd8fa5734 --- /dev/null +++ b/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/api-extractor" + } + ], + "packageName": "@microsoft/api-extractor", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..45512203973 --- /dev/null +++ b/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/load-themed-styles" + } + ], + "packageName": "@microsoft/load-themed-styles", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..e0cdc12fb02 --- /dev/null +++ b/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/loader-load-themed-styles" + } + ], + "packageName": "@microsoft/loader-load-themed-styles", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..7e58e9c5438 --- /dev/null +++ b/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "none", + "packageName": "@microsoft/rush" + } + ], + "packageName": "@microsoft/rush", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..596ce02f412 --- /dev/null +++ b/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@microsoft/webpack5-load-themed-styles-loader" + } + ], + "packageName": "@microsoft/webpack5-load-themed-styles-loader", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..3e65a81580c --- /dev/null +++ b/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/cpu-profile-summarizer" + } + ], + "packageName": "@rushstack/cpu-profile-summarizer", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..e249e6ff4f5 --- /dev/null +++ b/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/credential-cache" + } + ], + "packageName": "@rushstack/credential-cache", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..1b4e701762d --- /dev/null +++ b/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/debug-certificate-manager" + } + ], + "packageName": "@rushstack/debug-certificate-manager", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..3bcfeb7f0de --- /dev/null +++ b/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/eslint-bulk" + } + ], + "packageName": "@rushstack/eslint-bulk", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..f7d2b74ce1a --- /dev/null +++ b/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/eslint-patch" + } + ], + "packageName": "@rushstack/eslint-patch", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..d2ef7cb1146 --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/eslint-plugin-packlets" + } + ], + "packageName": "@rushstack/eslint-plugin-packlets", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..c4b71f987bd --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/eslint-plugin-security" + } + ], + "packageName": "@rushstack/eslint-plugin-security", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..dd660e8656b --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/eslint-plugin" + } + ], + "packageName": "@rushstack/eslint-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..361794230ba --- /dev/null +++ b/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/hashed-folder-copy-plugin" + } + ], + "packageName": "@rushstack/hashed-folder-copy-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..396dd7f7209 --- /dev/null +++ b/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-api-extractor-plugin" + } + ], + "packageName": "@rushstack/heft-api-extractor-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..26f23afcf99 --- /dev/null +++ b/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-config-file" + } + ], + "packageName": "@rushstack/heft-config-file", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..1a107a28ed7 --- /dev/null +++ b/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-dev-cert-plugin" + } + ], + "packageName": "@rushstack/heft-dev-cert-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..b5bb409778e --- /dev/null +++ b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-isolated-typescript-transpile-plugin" + } + ], + "packageName": "@rushstack/heft-isolated-typescript-transpile-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..68e44deea7c --- /dev/null +++ b/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-jest-plugin" + } + ], + "packageName": "@rushstack/heft-jest-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..f2be2869576 --- /dev/null +++ b/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-json-schema-typings-plugin" + } + ], + "packageName": "@rushstack/heft-json-schema-typings-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..19d0c0e78e1 --- /dev/null +++ b/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-lint-plugin" + } + ], + "packageName": "@rushstack/heft-lint-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..199bdbb518a --- /dev/null +++ b/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-localization-typings-plugin" + } + ], + "packageName": "@rushstack/heft-localization-typings-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..bafd140b86e --- /dev/null +++ b/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-rspack-plugin" + } + ], + "packageName": "@rushstack/heft-rspack-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..6b90c49cee9 --- /dev/null +++ b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-sass-load-themed-styles-plugin" + } + ], + "packageName": "@rushstack/heft-sass-load-themed-styles-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..96e692b403a --- /dev/null +++ b/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-sass-plugin" + } + ], + "packageName": "@rushstack/heft-sass-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..3ee03aed870 --- /dev/null +++ b/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-serverless-stack-plugin" + } + ], + "packageName": "@rushstack/heft-serverless-stack-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..20ae188ab9b --- /dev/null +++ b/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-storybook-plugin" + } + ], + "packageName": "@rushstack/heft-storybook-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..cdf236ca776 --- /dev/null +++ b/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-typescript-plugin" + } + ], + "packageName": "@rushstack/heft-typescript-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..c8e3f7f0238 --- /dev/null +++ b/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-vscode-extension-plugin" + } + ], + "packageName": "@rushstack/heft-vscode-extension-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..a1da8f27dc6 --- /dev/null +++ b/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-webpack4-plugin" + } + ], + "packageName": "@rushstack/heft-webpack4-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..0f620dc2110 --- /dev/null +++ b/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft-webpack5-plugin" + } + ], + "packageName": "@rushstack/heft-webpack5-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..a8cbdc29d09 --- /dev/null +++ b/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/heft" + } + ], + "packageName": "@rushstack/heft", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..b975387ffec --- /dev/null +++ b/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/loader-raw-script" + } + ], + "packageName": "@rushstack/loader-raw-script", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..980b12771b2 --- /dev/null +++ b/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/localization-utilities" + } + ], + "packageName": "@rushstack/localization-utilities", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..62a3b6f25bd --- /dev/null +++ b/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/lockfile-explorer" + } + ], + "packageName": "@rushstack/lockfile-explorer", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..d4aac255afb --- /dev/null +++ b/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/lookup-by-path" + } + ], + "packageName": "@rushstack/lookup-by-path", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..aa493d30bfd --- /dev/null +++ b/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/mcp-server" + } + ], + "packageName": "@rushstack/mcp-server", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..478169c2cc5 --- /dev/null +++ b/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/module-minifier" + } + ], + "packageName": "@rushstack/module-minifier", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..e81542dcd9c --- /dev/null +++ b/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/node-core-library" + } + ], + "packageName": "@rushstack/node-core-library", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..d4c2c8fcaff --- /dev/null +++ b/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/npm-check-fork" + } + ], + "packageName": "@rushstack/npm-check-fork", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..e71758a2ee5 --- /dev/null +++ b/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/operation-graph" + } + ], + "packageName": "@rushstack/operation-graph", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..b593335e2fc --- /dev/null +++ b/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/package-deps-hash" + } + ], + "packageName": "@rushstack/package-deps-hash", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..f2c35c2e40f --- /dev/null +++ b/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/package-extractor" + } + ], + "packageName": "@rushstack/package-extractor", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..514f2504e6e --- /dev/null +++ b/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/playwright-browser-tunnel" + } + ], + "packageName": "@rushstack/playwright-browser-tunnel", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..d1061876001 --- /dev/null +++ b/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/problem-matcher" + } + ], + "packageName": "@rushstack/problem-matcher", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..1bf31823f78 --- /dev/null +++ b/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rig-package" + } + ], + "packageName": "@rushstack/rig-package", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..b8268d0ba1d --- /dev/null +++ b/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rundown" + } + ], + "packageName": "@rushstack/rundown", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..422d147d471 --- /dev/null +++ b/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rush-mcp-docs-plugin" + } + ], + "packageName": "@rushstack/rush-mcp-docs-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..5b2902b6882 --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rush-pnpm-kit-v10" + } + ], + "packageName": "@rushstack/rush-pnpm-kit-v10", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..28c48c4385d --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rush-pnpm-kit-v8" + } + ], + "packageName": "@rushstack/rush-pnpm-kit-v8", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..ff5da8af02a --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/rush-pnpm-kit-v9" + } + ], + "packageName": "@rushstack/rush-pnpm-kit-v9", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..80d6e163d2e --- /dev/null +++ b/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/set-webpack-public-path-plugin" + } + ], + "packageName": "@rushstack/set-webpack-public-path-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..bff3ab4b2a0 --- /dev/null +++ b/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/stream-collator" + } + ], + "packageName": "@rushstack/stream-collator", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..a27e8f859ee --- /dev/null +++ b/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/terminal" + } + ], + "packageName": "@rushstack/terminal", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..05b7b3636fa --- /dev/null +++ b/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/trace-import" + } + ], + "packageName": "@rushstack/trace-import", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..7eba92f6f55 --- /dev/null +++ b/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/tree-pattern" + } + ], + "packageName": "@rushstack/tree-pattern", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..a31c0c23d0d --- /dev/null +++ b/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/ts-command-line" + } + ], + "packageName": "@rushstack/ts-command-line", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..cf0b6f984dd --- /dev/null +++ b/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/typings-generator" + } + ], + "packageName": "@rushstack/typings-generator", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..be4979ee8e2 --- /dev/null +++ b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack-embedded-dependencies-plugin" + } + ], + "packageName": "@rushstack/webpack-embedded-dependencies-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..f47676d5cbf --- /dev/null +++ b/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack-plugin-utilities" + } + ], + "packageName": "@rushstack/webpack-plugin-utilities", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..6c88f067bbf --- /dev/null +++ b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin" + } + ], + "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..23fb4e9b739 --- /dev/null +++ b/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack-workspace-resolve-plugin" + } + ], + "packageName": "@rushstack/webpack-workspace-resolve-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..9230e560619 --- /dev/null +++ b/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack4-localization-plugin" + } + ], + "packageName": "@rushstack/webpack4-localization-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..eae117209b9 --- /dev/null +++ b/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack4-module-minifier-plugin" + } + ], + "packageName": "@rushstack/webpack4-module-minifier-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..034984ed24b --- /dev/null +++ b/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack5-localization-plugin" + } + ], + "packageName": "@rushstack/webpack5-localization-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..8ff9314c16c --- /dev/null +++ b/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/webpack5-module-minifier-plugin" + } + ], + "packageName": "@rushstack/webpack5-module-minifier-plugin", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..d2a64285a09 --- /dev/null +++ b/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/worker-pool" + } + ], + "packageName": "@rushstack/worker-pool", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json new file mode 100644 index 00000000000..e8ad4de27ef --- /dev/null +++ b/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "type": "patch", + "packageName": "@rushstack/zipsync" + } + ], + "packageName": "@rushstack/zipsync", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 4b83e135793..5217e75dd2d 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -5,7 +5,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index ce6b3a93c9b..44837f35cbd 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -6,24 +6,19 @@ "module": "./lib-esm/usage.js", "exports": { ".": { - "import": "./lib-esm/usage.js", "require": "./lib-commonjs/usage.js" }, "./modern-module-resolution": { - "import": "./lib-esm/modern-module-resolution.js", "require": "./lib-commonjs/modern-module-resolution.js" }, "./custom-config-package-names": { - "import": "./lib-esm/custom-config-package-names.js", "require": "./lib-commonjs/custom-config-package-names.js" }, "./eslint-bulk-suppressions": { - "import": "./lib-esm/eslint-bulk-suppressions/index.js", "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index ff37aff4c98..7fd8a576bff 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -21,12 +21,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index f6b2aa8ca7b..91f12f3a179 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -20,12 +20,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index 1c50ea7afb6..48feb0d9c80 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -24,12 +24,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index 921d17f2d90..e9e64dd79d1 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -33,7 +33,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index 2f9982ebbc5..a7b15bff867 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 80cbfb84c44..e43e212b47e 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -15,13 +15,11 @@ "exports": { ".": { "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 0f6dac3c7db..bef6a226117 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -56,7 +56,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index e46d230c234..a6a549797a0 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -33,7 +33,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 3e1f7609a18..745e68653d5 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -41,7 +41,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index fc37a9604e3..39a21265f60 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -30,7 +30,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index f6fc3476d20..9f918940b03 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./dist/heft-rspack-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json index 9322738fc2c..a6c146ad1bc 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 60e2840e2f5..8325616f964 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -21,13 +21,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 262bab6e213..213afac24c4 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index 50c58f7f4e1..c00d2a3e1c3 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -34,7 +34,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index 40336588098..f38d67e4be0 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./dist/heft-typescript-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index fc9d4e29486..75e851d114b 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -18,7 +18,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index 59fe1e93884..e5794142604 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index 05405829d13..c0789c9b937 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./dist/heft-webpack5-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 19313a84c37..28d484b9cdc 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -14,12 +14,10 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index d6ebf8122c1..fe09fcc267f 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/credential-cache.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index ce37296c37d..1922a7986a7 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/debug-certificate-manager.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index 7f61b6ad3a1..fcc152ed349 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -17,12 +17,10 @@ "exports": { ".": { "types": "./dist/heft-config-file.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index 66125a4e89e..282be765acd 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -20,12 +20,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*", - "import": "./lib-esm/*", "require": "./lib-commonjs/*" }, "./package.json": "./package.json" diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index a21b2b268fa..e1407b774c9 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/localization-utilities.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index ebc5d0229d1..07d9b69b008 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/lookup-by-path.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index ab51f083b65..290609e5c68 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/module-minifier.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index f85c9550d93..10226b59e99 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/node-core-library.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index f421c52f0e5..ebd6a46ac63 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -14,12 +14,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index b7cc78c3f52..db6ea55d716 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/operation-graph.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 196b52beaa2..0c9288f29d9 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/package-deps-hash.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 775d5872b8b..1149f618dee 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/package-extractor.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index af777563f8c..4cacb40cac2 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/problem-matcher.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 0e17f86cc31..995b1bd8cd0 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/rig-package.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index 522772525cf..2f8f1507b38 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -9,12 +9,10 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v10.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index b2229d37f48..cb93e9b5059 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -9,12 +9,10 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v8.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index d3cfb5a8b25..5d22b1d49d8 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -9,12 +9,10 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v9.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 1f3287bde83..5ffb87fed2c 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -13,12 +13,10 @@ "exports": { ".": { "types": "./dist/stream-collator.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index 4a0e9fe3fa2..a2b870b046f 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/terminal.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index ac90fc5d7c9..f2468fc92ac 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/tree-pattern.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index fa8ae34d7a2..2bbe2ab6080 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -13,12 +13,10 @@ "exports": { ".": { "types": "./dist/ts-command-line.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index f3de80f9563..836032070eb 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -13,12 +13,10 @@ "exports": { ".": { "types": "./dist/typings-generator.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index 53cb56afa12..a126d68d577 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/worker-pool.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json index e813868f9db..aa18a01e0db 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json index 86e5fe6a92d..db983d5aab8 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index f90da1c50f5..7240cb4b68c 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -15,13 +15,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 120c6426425..38fe05da0b3 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index a86d21d6be0..e757d897b16 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index 32f2458a6af..89460ef3e61 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -14,12 +14,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index de5e2723fca..9f8d7e3bb64 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 5b243599d50..ef57ec56c08 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -32,12 +32,10 @@ "exports": { ".": { "types": "./dist/rush-resolver-cache-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 54178e7d2a9..c4d725828dc 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -42,7 +42,6 @@ "exports": { ".": { "types": "./dist/rush-serve-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./api": { @@ -51,7 +50,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index fc2129e1047..478d8397e45 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -8,7 +8,6 @@ "exports": { ".": { "types": "./dist/hashed-folder-copy-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./ambientTypes": { @@ -16,7 +15,6 @@ }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index 17e9f0c5121..6fb0f1c5f55 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index 78e5559fdb8..fa1564d25fd 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index 054ee92616c..83fc1ddda78 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 6047e96201c..3933aec1025 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/set-webpack-public-path-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 3560b4e263a..3a8a3606824 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 3165f86e2de..09e866ad17a 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack-plugin-utilities.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index 8ba67aa4501..ae41d026bf6 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack-workspace-resolve-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index 9d95d5d8025..ec7f1220846 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack4-localization-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index 6dfc1a0cc15..de7f7a83c92 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack4-module-minifier-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 916e1b9ba08..9403e37de90 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 9dccd896296..0316e7f8fd0 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack5-localization-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index fe0c9aa9de2..ae5beef2c04 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -8,12 +8,10 @@ "exports": { ".": { "types": "./dist/webpack5-module-minifier-plugin.d.ts", - "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" From 3c64ab84be7a08af9dbaef852cdadbe7f2186283 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:38:49 -0800 Subject: [PATCH 2/8] Revert "fix: remove "import" entries from exports in package.json files" This reverts commit 47b8e5fc8565219eb1ffb4498b59f648c6eba294. --- apps/api-documenter/package.json | 2 ++ apps/api-extractor/package.json | 2 ++ apps/cpu-profile-summarizer/package.json | 1 + apps/heft/package.json | 2 ++ apps/lockfile-explorer/package.json | 1 + apps/playwright-browser-tunnel/package.json | 2 ++ apps/rundown/package.json | 1 + apps/rush-mcp-server/package.json | 2 ++ apps/rush/package.json | 1 + apps/trace-import/package.json | 1 + apps/zipsync/package.json | 2 ++ eslint/eslint-bulk/package.json | 1 + eslint/eslint-patch/package.json | 5 +++++ eslint/eslint-plugin-packlets/package.json | 2 ++ eslint/eslint-plugin-security/package.json | 2 ++ eslint/eslint-plugin/package.json | 2 ++ heft-plugins/heft-api-extractor-plugin/package.json | 1 + heft-plugins/heft-dev-cert-plugin/package.json | 1 + .../heft-isolated-typescript-transpile-plugin/package.json | 2 ++ heft-plugins/heft-jest-plugin/package.json | 1 + heft-plugins/heft-json-schema-typings-plugin/package.json | 1 + heft-plugins/heft-lint-plugin/package.json | 1 + heft-plugins/heft-localization-typings-plugin/package.json | 1 + heft-plugins/heft-rspack-plugin/package.json | 2 ++ .../heft-sass-load-themed-styles-plugin/package.json | 1 + heft-plugins/heft-sass-plugin/package.json | 2 ++ heft-plugins/heft-serverless-stack-plugin/package.json | 1 + heft-plugins/heft-storybook-plugin/package.json | 1 + heft-plugins/heft-typescript-plugin/package.json | 2 ++ heft-plugins/heft-vscode-extension-plugin/package.json | 1 + heft-plugins/heft-webpack4-plugin/package.json | 2 ++ heft-plugins/heft-webpack5-plugin/package.json | 2 ++ libraries/api-extractor-model/package.json | 2 ++ libraries/credential-cache/package.json | 2 ++ libraries/debug-certificate-manager/package.json | 2 ++ libraries/heft-config-file/package.json | 2 ++ libraries/load-themed-styles/package.json | 2 ++ libraries/localization-utilities/package.json | 2 ++ libraries/lookup-by-path/package.json | 2 ++ libraries/module-minifier/package.json | 2 ++ libraries/node-core-library/package.json | 2 ++ libraries/npm-check-fork/package.json | 2 ++ libraries/operation-graph/package.json | 2 ++ libraries/package-deps-hash/package.json | 2 ++ libraries/package-extractor/package.json | 2 ++ libraries/problem-matcher/package.json | 2 ++ libraries/rig-package/package.json | 2 ++ libraries/rush-pnpm-kit-v10/package.json | 2 ++ libraries/rush-pnpm-kit-v8/package.json | 2 ++ libraries/rush-pnpm-kit-v9/package.json | 2 ++ libraries/stream-collator/package.json | 2 ++ libraries/terminal/package.json | 2 ++ libraries/tree-pattern/package.json | 2 ++ libraries/ts-command-line/package.json | 2 ++ libraries/typings-generator/package.json | 2 ++ libraries/worker-pool/package.json | 2 ++ rush-plugins/rush-amazon-s3-build-cache-plugin/package.json | 2 ++ .../rush-azure-storage-build-cache-plugin/package.json | 2 ++ rush-plugins/rush-bridge-cache-plugin/package.json | 2 ++ rush-plugins/rush-buildxl-graph-plugin/package.json | 2 ++ rush-plugins/rush-http-build-cache-plugin/package.json | 2 ++ rush-plugins/rush-mcp-docs-plugin/package.json | 2 ++ rush-plugins/rush-redis-cobuild-plugin/package.json | 2 ++ rush-plugins/rush-resolver-cache-plugin/package.json | 2 ++ rush-plugins/rush-serve-plugin/package.json | 2 ++ webpack/hashed-folder-copy-plugin/package.json | 2 ++ webpack/loader-load-themed-styles/package.json | 2 ++ webpack/loader-raw-script/package.json | 2 ++ webpack/preserve-dynamic-require-plugin/package.json | 2 ++ webpack/set-webpack-public-path-plugin/package.json | 2 ++ webpack/webpack-embedded-dependencies-plugin/package.json | 2 ++ webpack/webpack-plugin-utilities/package.json | 2 ++ webpack/webpack-workspace-resolve-plugin/package.json | 2 ++ webpack/webpack4-localization-plugin/package.json | 2 ++ webpack/webpack4-module-minifier-plugin/package.json | 2 ++ webpack/webpack5-load-themed-styles-loader/package.json | 2 ++ webpack/webpack5-localization-plugin/package.json | 2 ++ webpack/webpack5-module-minifier-plugin/package.json | 2 ++ 78 files changed, 143 insertions(+) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 3fe37cbad83..48ff46f5aaf 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -23,11 +23,13 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 94ab5ae7996..2f08b40faaf 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -31,11 +31,13 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index c32bca98869..5bb79fe6a09 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -29,6 +29,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/heft/package.json b/apps/heft/package.json index fbe461f281f..68a0def1776 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -27,11 +27,13 @@ "exports": { ".": { "types": "./dist/heft.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 115bc2adf55..2fe7ece63b8 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -78,6 +78,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index 18c62d6cf8e..d26ef25d3b1 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -14,10 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 3fef21ca08f..8a547d89e57 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -33,6 +33,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index ca7e6cefcee..ae1588f2adc 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -15,11 +15,13 @@ "exports": { ".": { "types": "./dist/mcp-server.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/rush/package.json b/apps/rush/package.json index 0a5fc516e13..e47c747a91e 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -54,6 +54,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index d1dc4cdd316..ed13896e2f9 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -35,6 +35,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index f65efe93166..af12e571cae 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -34,10 +34,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 5217e75dd2d..4b83e135793 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -5,6 +5,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index 44837f35cbd..ce6b3a93c9b 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -6,19 +6,24 @@ "module": "./lib-esm/usage.js", "exports": { ".": { + "import": "./lib-esm/usage.js", "require": "./lib-commonjs/usage.js" }, "./modern-module-resolution": { + "import": "./lib-esm/modern-module-resolution.js", "require": "./lib-commonjs/modern-module-resolution.js" }, "./custom-config-package-names": { + "import": "./lib-esm/custom-config-package-names.js", "require": "./lib-commonjs/custom-config-package-names.js" }, "./eslint-bulk-suppressions": { + "import": "./lib-esm/eslint-bulk-suppressions/index.js", "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index 7fd8a576bff..ff37aff4c98 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -21,10 +21,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index 91f12f3a179..f6b2aa8ca7b 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -20,10 +20,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index 48feb0d9c80..1c50ea7afb6 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -24,10 +24,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index e9e64dd79d1..921d17f2d90 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -33,6 +33,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index a7b15bff867..2f9982ebbc5 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index e43e212b47e..80cbfb84c44 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -15,11 +15,13 @@ "exports": { ".": { "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index bef6a226117..0f6dac3c7db 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -56,6 +56,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index a6a549797a0..e46d230c234 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -33,6 +33,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 745e68653d5..3e1f7609a18 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -41,6 +41,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index 39a21265f60..fc37a9604e3 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -30,6 +30,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 9f918940b03..f6fc3476d20 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./dist/heft-rspack-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json index a6c146ad1bc..9322738fc2c 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 8325616f964..60e2840e2f5 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -21,11 +21,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 213afac24c4..262bab6e213 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index c00d2a3e1c3..50c58f7f4e1 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -34,6 +34,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index f38d67e4be0..40336588098 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./dist/heft-typescript-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index 75e851d114b..fc9d4e29486 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -18,6 +18,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index e5794142604..59fe1e93884 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index c0789c9b937..05405829d13 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./dist/heft-webpack5-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 28d484b9cdc..19313a84c37 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -14,10 +14,12 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index fe09fcc267f..d6ebf8122c1 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/credential-cache.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index 1922a7986a7..ce37296c37d 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/debug-certificate-manager.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index fcc152ed349..7f61b6ad3a1 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -17,10 +17,12 @@ "exports": { ".": { "types": "./dist/heft-config-file.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index 282be765acd..66125a4e89e 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -20,10 +20,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*", + "import": "./lib-esm/*", "require": "./lib-commonjs/*" }, "./package.json": "./package.json" diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index e1407b774c9..a21b2b268fa 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/localization-utilities.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index 07d9b69b008..ebc5d0229d1 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/lookup-by-path.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index 290609e5c68..ab51f083b65 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/module-minifier.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index 10226b59e99..f85c9550d93 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/node-core-library.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index ebd6a46ac63..f421c52f0e5 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -14,10 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index db6ea55d716..b7cc78c3f52 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/operation-graph.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 0c9288f29d9..196b52beaa2 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/package-deps-hash.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 1149f618dee..775d5872b8b 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/package-extractor.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index 4cacb40cac2..af777563f8c 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/problem-matcher.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 995b1bd8cd0..0e17f86cc31 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/rig-package.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index 2f8f1507b38..522772525cf 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -9,10 +9,12 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v10.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index cb93e9b5059..b2229d37f48 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -9,10 +9,12 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v8.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index 5d22b1d49d8..d3cfb5a8b25 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -9,10 +9,12 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v9.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 5ffb87fed2c..1f3287bde83 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -13,10 +13,12 @@ "exports": { ".": { "types": "./dist/stream-collator.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index a2b870b046f..4a0e9fe3fa2 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/terminal.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index f2468fc92ac..ac90fc5d7c9 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/tree-pattern.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index 2bbe2ab6080..fa8ae34d7a2 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -13,10 +13,12 @@ "exports": { ".": { "types": "./dist/ts-command-line.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index 836032070eb..f3de80f9563 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -13,10 +13,12 @@ "exports": { ".": { "types": "./dist/typings-generator.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index a126d68d577..53cb56afa12 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/worker-pool.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json index aa18a01e0db..e813868f9db 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json index db983d5aab8..86e5fe6a92d 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 7240cb4b68c..f90da1c50f5 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -15,11 +15,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 38fe05da0b3..120c6426425 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index e757d897b16..a86d21d6be0 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index 89460ef3e61..32f2458a6af 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -14,10 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index 9f8d7e3bb64..de5e2723fca 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index ef57ec56c08..5b243599d50 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -32,10 +32,12 @@ "exports": { ".": { "types": "./dist/rush-resolver-cache-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index c4d725828dc..54178e7d2a9 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -42,6 +42,7 @@ "exports": { ".": { "types": "./dist/rush-serve-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./api": { @@ -50,6 +51,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index 478d8397e45..fc2129e1047 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -8,6 +8,7 @@ "exports": { ".": { "types": "./dist/hashed-folder-copy-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./ambientTypes": { @@ -15,6 +16,7 @@ }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index 6fb0f1c5f55..17e9f0c5121 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index fa1564d25fd..78e5559fdb8 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index 83fc1ddda78..054ee92616c 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 3933aec1025..6047e96201c 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/set-webpack-public-path-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 3a8a3606824..3560b4e263a 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 09e866ad17a..3165f86e2de 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack-plugin-utilities.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index ae41d026bf6..8ba67aa4501 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack-workspace-resolve-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index ec7f1220846..9d95d5d8025 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack4-localization-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index de7f7a83c92..6dfc1a0cc15 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack4-module-minifier-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 9403e37de90..916e1b9ba08 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 0316e7f8fd0..9dccd896296 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack5-localization-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index ae5beef2c04..fe0c9aa9de2 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -8,10 +8,12 @@ "exports": { ".": { "types": "./dist/webpack5-module-minifier-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" From 83978b420335901aa021fc0e9f0226dd55be2357 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:39:34 -0800 Subject: [PATCH 3/8] fix: add "node" condition to exports to fix ESM resolution (#5644) The "import" condition in "exports" maps points to lib-esm/ files which have extensionless imports. Node.js ESM requires explicit .js extensions, so importing these packages from a "type": "module" project fails with ERR_MODULE_NOT_FOUND. Fix by adding a "node" condition before "import" in exports. Node.js matches "node" first and uses CJS (which handles extensionless requires), while bundlers skip "node" and use "import" for ESM. Also adds an esm-node-import-test build-test project to exercise this scenario. --- apps/api-documenter/package.json | 2 ++ apps/api-extractor/package.json | 2 ++ apps/cpu-profile-summarizer/package.json | 1 + apps/heft/package.json | 2 ++ apps/lockfile-explorer/package.json | 1 + apps/playwright-browser-tunnel/package.json | 2 ++ apps/rundown/package.json | 1 + apps/rush-mcp-server/package.json | 2 ++ apps/rush/package.json | 1 + apps/trace-import/package.json | 1 + apps/zipsync/package.json | 2 ++ .../esm-node-import-test/config/heft.json | 23 +++++++++++++++++++ build-tests/esm-node-import-test/package.json | 21 +++++++++++++++++ build-tests/esm-node-import-test/src/index.ts | 20 ++++++++++++++++ .../esm-node-import-test/tsconfig.json | 23 +++++++++++++++++++ ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- ...json-exports-imports_2026-02-19-22-16.json | 4 ++-- eslint/eslint-bulk/package.json | 1 + eslint/eslint-patch/package.json | 5 ++++ eslint/eslint-plugin-packlets/package.json | 2 ++ eslint/eslint-plugin-security/package.json | 2 ++ eslint/eslint-plugin/package.json | 2 ++ .../heft-api-extractor-plugin/package.json | 1 + .../heft-dev-cert-plugin/package.json | 1 + .../package.json | 2 ++ heft-plugins/heft-jest-plugin/package.json | 1 + .../package.json | 1 + heft-plugins/heft-lint-plugin/package.json | 1 + .../package.json | 1 + heft-plugins/heft-rspack-plugin/package.json | 2 ++ .../package.json | 1 + heft-plugins/heft-sass-plugin/package.json | 2 ++ .../heft-serverless-stack-plugin/package.json | 1 + .../heft-storybook-plugin/package.json | 1 + .../heft-typescript-plugin/package.json | 2 ++ .../heft-vscode-extension-plugin/package.json | 1 + .../heft-webpack4-plugin/package.json | 2 ++ .../heft-webpack5-plugin/package.json | 2 ++ libraries/api-extractor-model/package.json | 2 ++ libraries/credential-cache/package.json | 2 ++ .../debug-certificate-manager/package.json | 2 ++ libraries/heft-config-file/package.json | 2 ++ libraries/load-themed-styles/package.json | 2 ++ libraries/localization-utilities/package.json | 2 ++ libraries/lookup-by-path/package.json | 2 ++ libraries/module-minifier/package.json | 2 ++ libraries/node-core-library/package.json | 2 ++ libraries/npm-check-fork/package.json | 2 ++ libraries/operation-graph/package.json | 2 ++ libraries/package-deps-hash/package.json | 2 ++ libraries/package-extractor/package.json | 2 ++ libraries/problem-matcher/package.json | 2 ++ libraries/rig-package/package.json | 2 ++ libraries/rush-pnpm-kit-v10/package.json | 2 ++ libraries/rush-pnpm-kit-v8/package.json | 2 ++ libraries/rush-pnpm-kit-v9/package.json | 2 ++ libraries/stream-collator/package.json | 2 ++ libraries/terminal/package.json | 2 ++ libraries/tree-pattern/package.json | 2 ++ libraries/ts-command-line/package.json | 2 ++ libraries/typings-generator/package.json | 2 ++ libraries/worker-pool/package.json | 2 ++ .../package.json | 2 ++ .../package.json | 2 ++ .../rush-bridge-cache-plugin/package.json | 2 ++ .../rush-buildxl-graph-plugin/package.json | 2 ++ .../rush-http-build-cache-plugin/package.json | 2 ++ .../rush-mcp-docs-plugin/package.json | 2 ++ .../rush-redis-cobuild-plugin/package.json | 2 ++ .../rush-resolver-cache-plugin/package.json | 2 ++ rush-plugins/rush-serve-plugin/package.json | 2 ++ rush.json | 6 +++++ .../hashed-folder-copy-plugin/package.json | 2 ++ .../loader-load-themed-styles/package.json | 2 ++ webpack/loader-raw-script/package.json | 2 ++ .../package.json | 2 ++ .../package.json | 2 ++ .../package.json | 2 ++ webpack/webpack-plugin-utilities/package.json | 2 ++ .../package.json | 2 ++ .../webpack4-localization-plugin/package.json | 2 ++ .../package.json | 2 ++ .../package.json | 2 ++ .../webpack5-localization-plugin/package.json | 2 ++ .../package.json | 2 ++ 153 files changed, 376 insertions(+), 140 deletions(-) create mode 100644 build-tests/esm-node-import-test/config/heft.json create mode 100644 build-tests/esm-node-import-test/package.json create mode 100644 build-tests/esm-node-import-test/src/index.ts create mode 100644 build-tests/esm-node-import-test/tsconfig.json diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 48ff46f5aaf..59a11e9de10 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -23,12 +23,14 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 2f08b40faaf..f8ddd3e258c 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -31,12 +31,14 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index 5bb79fe6a09..a84a6383796 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -29,6 +29,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/heft/package.json b/apps/heft/package.json index 68a0def1776..644ad750d6d 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -27,12 +27,14 @@ "exports": { ".": { "types": "./dist/heft.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 2fe7ece63b8..8250b4d09a3 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -78,6 +78,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index d26ef25d3b1..ea5d402be12 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 8a547d89e57..21d308f396f 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -33,6 +33,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index ae1588f2adc..99ac7ae1e83 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -15,12 +15,14 @@ "exports": { ".": { "types": "./dist/mcp-server.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rush/package.json b/apps/rush/package.json index e47c747a91e..08353ebf82f 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -54,6 +54,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index ed13896e2f9..451805fef1c 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -35,6 +35,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index af12e571cae..f46b67996c6 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -34,11 +34,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/build-tests/esm-node-import-test/config/heft.json b/build-tests/esm-node-import-test/config/heft.json new file mode 100644 index 00000000000..526f982a691 --- /dev/null +++ b/build-tests/esm-node-import-test/config/heft.json @@ -0,0 +1,23 @@ +/** + * Configures heft to use the TypeScript plugin for building. + */ +{ + "$schema": "https://developer.microsoft.com/json-schemas/heft/v4/heft.schema.json", + + "phasesByName": { + "build": { + "cleanFiles": [ + { + "sourcePath": "lib-esm" + } + ], + "tasksByName": { + "typescript": { + "taskPlugin": { + "pluginPackage": "@rushstack/heft-typescript-plugin" + } + } + } + } + } +} diff --git a/build-tests/esm-node-import-test/package.json b/build-tests/esm-node-import-test/package.json new file mode 100644 index 00000000000..b8c12d86d7f --- /dev/null +++ b/build-tests/esm-node-import-test/package.json @@ -0,0 +1,21 @@ +{ + "name": "esm-node-import-test", + "description": "This project validates that importing a rushstack package from a 'type: module' Node.js project works correctly with the package.json 'exports' field. See https://github.com/microsoft/rushstack/issues/5644", + "version": "1.0.0", + "private": true, + "type": "module", + "scripts": { + "build": "heft build --clean", + "_phase:build": "heft run --only build -- --clean", + "_phase:test": "node --experimental-vm-modules lib-esm/index.js" + }, + "dependencies": { + "@rushstack/node-core-library": "workspace:*" + }, + "devDependencies": { + "@rushstack/heft": "workspace:*", + "@rushstack/heft-typescript-plugin": "workspace:*", + "@types/node": "20.17.19", + "typescript": "~5.8.2" + } +} diff --git a/build-tests/esm-node-import-test/src/index.ts b/build-tests/esm-node-import-test/src/index.ts new file mode 100644 index 00000000000..964cb913b59 --- /dev/null +++ b/build-tests/esm-node-import-test/src/index.ts @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +/** + * This test validates that ESM imports from @rushstack/node-core-library work correctly + * under Node.js ESM module resolution (i.e., when the consuming project has "type": "module"). + * + * The issue (https://github.com/microsoft/rushstack/issues/5644) is that when the package exports + * map has an "import" condition pointing to lib-esm/ files that contain extensionless imports + * (e.g., `from './api/Foo'` without `.js`), Node.js ESM resolution fails with ERR_MODULE_NOT_FOUND. + * + * The fix is to add a "node" condition before "import" that directs Node.js to use CJS, + * while bundlers still get the ESM version via the "import" condition. + */ + +import { Path } from '@rushstack/node-core-library'; + +// If this line runs without ERR_MODULE_NOT_FOUND, the exports map is working correctly. +const result: string = Path.convertToSlashes('foo\\bar'); +console.log('ESM import test passed! Path.convertToSlashes result:', result); diff --git a/build-tests/esm-node-import-test/tsconfig.json b/build-tests/esm-node-import-test/tsconfig.json new file mode 100644 index 00000000000..086cffb8708 --- /dev/null +++ b/build-tests/esm-node-import-test/tsconfig.json @@ -0,0 +1,23 @@ +{ + "$schema": "http://json.schemastore.org/tsconfig", + + "compilerOptions": { + "outDir": "lib-esm", + "rootDir": "src", + + "forceConsistentCasingInFileNames": true, + "declaration": true, + "sourceMap": true, + "declarationMap": true, + "inlineSources": true, + "strictNullChecks": true, + "noUnusedLocals": true, + "types": ["node"], + + "module": "esnext", + "moduleResolution": "bundler", + "target": "es2020", + "lib": ["es2020"] + }, + "include": ["src/**/*.ts"] +} diff --git a/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json index fd842225edf..32065b7911a 100644 --- a/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/api-documenter/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/api-documenter" } ], "packageName": "@microsoft/api-documenter", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json index 8f35ab9c94f..e88e1aa2815 100644 --- a/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/api-extractor-model/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/api-extractor-model" } ], "packageName": "@microsoft/api-extractor-model", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json index 8cfd8fa5734..3870c391bb0 100644 --- a/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/api-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/api-extractor" } ], "packageName": "@microsoft/api-extractor", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json index 45512203973..1cf306cc126 100644 --- a/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/load-themed-styles" } ], "packageName": "@microsoft/load-themed-styles", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json index e0cdc12fb02..b1feee111be 100644 --- a/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/loader-load-themed-styles/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/loader-load-themed-styles" } ], "packageName": "@microsoft/loader-load-themed-styles", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json index 7e58e9c5438..6a4f7ed4408 100644 --- a/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/rush/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "none", "packageName": "@microsoft/rush" } ], "packageName": "@microsoft/rush", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json index 596ce02f412..7ade0071a65 100644 --- a/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@microsoft/webpack5-load-themed-styles-loader/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@microsoft/webpack5-load-themed-styles-loader" } ], "packageName": "@microsoft/webpack5-load-themed-styles-loader", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json index 3e65a81580c..4d0cc22c6d1 100644 --- a/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/cpu-profile-summarizer/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/cpu-profile-summarizer" } ], "packageName": "@rushstack/cpu-profile-summarizer", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json index e249e6ff4f5..d760ed89923 100644 --- a/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/credential-cache/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/credential-cache" } ], "packageName": "@rushstack/credential-cache", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json index 1b4e701762d..00e2adb3ae4 100644 --- a/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/debug-certificate-manager/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/debug-certificate-manager" } ], "packageName": "@rushstack/debug-certificate-manager", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json index 3bcfeb7f0de..1a217e11070 100644 --- a/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/eslint-bulk/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/eslint-bulk" } ], "packageName": "@rushstack/eslint-bulk", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json index f7d2b74ce1a..d8dd71d45c7 100644 --- a/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/eslint-patch/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/eslint-patch" } ], "packageName": "@rushstack/eslint-patch", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json index d2ef7cb1146..5b87393fe9c 100644 --- a/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/eslint-plugin-packlets/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/eslint-plugin-packlets" } ], "packageName": "@rushstack/eslint-plugin-packlets", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json index c4b71f987bd..68e9466b5f1 100644 --- a/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/eslint-plugin-security/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/eslint-plugin-security" } ], "packageName": "@rushstack/eslint-plugin-security", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index dd660e8656b..5b8772f7c88 100644 --- a/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/eslint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/eslint-plugin" } ], "packageName": "@rushstack/eslint-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 361794230ba..fa275b743e1 100644 --- a/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/hashed-folder-copy-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/hashed-folder-copy-plugin" } ], "packageName": "@rushstack/hashed-folder-copy-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 396dd7f7209..0781ed1605e 100644 --- a/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-api-extractor-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-api-extractor-plugin" } ], "packageName": "@rushstack/heft-api-extractor-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json index 26f23afcf99..f98cd939a8d 100644 --- a/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-config-file/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-config-file" } ], "packageName": "@rushstack/heft-config-file", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 1a107a28ed7..19aab16bbf9 100644 --- a/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-dev-cert-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-dev-cert-plugin" } ], "packageName": "@rushstack/heft-dev-cert-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index b5bb409778e..959c075aa58 100644 --- a/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-isolated-typescript-transpile-plugin" } ], "packageName": "@rushstack/heft-isolated-typescript-transpile-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 68e44deea7c..e963d338a45 100644 --- a/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-jest-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-jest-plugin" } ], "packageName": "@rushstack/heft-jest-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index f2be2869576..02b6d1f80b5 100644 --- a/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-json-schema-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-json-schema-typings-plugin" } ], "packageName": "@rushstack/heft-json-schema-typings-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 19d0c0e78e1..d25a8bd5bb6 100644 --- a/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-lint-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-lint-plugin" } ], "packageName": "@rushstack/heft-lint-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 199bdbb518a..3c8ea9bd7f8 100644 --- a/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-localization-typings-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-localization-typings-plugin" } ], "packageName": "@rushstack/heft-localization-typings-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index bafd140b86e..cd1345dee4a 100644 --- a/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-rspack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-rspack-plugin" } ], "packageName": "@rushstack/heft-rspack-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 6b90c49cee9..ec4e5d7b51b 100644 --- a/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-sass-load-themed-styles-plugin" } ], "packageName": "@rushstack/heft-sass-load-themed-styles-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 96e692b403a..2ebd21bfa04 100644 --- a/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-sass-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-sass-plugin" } ], "packageName": "@rushstack/heft-sass-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 3ee03aed870..fa9c37b19f7 100644 --- a/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-serverless-stack-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-serverless-stack-plugin" } ], "packageName": "@rushstack/heft-serverless-stack-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 20ae188ab9b..f1b563b43d3 100644 --- a/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-storybook-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-storybook-plugin" } ], "packageName": "@rushstack/heft-storybook-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index cdf236ca776..20d7e69ca05 100644 --- a/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-typescript-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-typescript-plugin" } ], "packageName": "@rushstack/heft-typescript-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index c8e3f7f0238..b8415f64c0e 100644 --- a/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-vscode-extension-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-vscode-extension-plugin" } ], "packageName": "@rushstack/heft-vscode-extension-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index a1da8f27dc6..6e94340c895 100644 --- a/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-webpack4-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-webpack4-plugin" } ], "packageName": "@rushstack/heft-webpack4-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 0f620dc2110..24df20e8044 100644 --- a/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft-webpack5-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft-webpack5-plugin" } ], "packageName": "@rushstack/heft-webpack5-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json index a8cbdc29d09..ee0da2798e1 100644 --- a/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/heft/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/heft" } ], "packageName": "@rushstack/heft", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json index b975387ffec..20ed16cb38b 100644 --- a/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/loader-raw-script/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/loader-raw-script" } ], "packageName": "@rushstack/loader-raw-script", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json index 980b12771b2..39651384d63 100644 --- a/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/localization-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/localization-utilities" } ], "packageName": "@rushstack/localization-utilities", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json index 62a3b6f25bd..eb35d77e50b 100644 --- a/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/lockfile-explorer/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/lockfile-explorer" } ], "packageName": "@rushstack/lockfile-explorer", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json index d4aac255afb..46553254309 100644 --- a/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/lookup-by-path/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/lookup-by-path" } ], "packageName": "@rushstack/lookup-by-path", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json index aa493d30bfd..d35522838fa 100644 --- a/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/mcp-server/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/mcp-server" } ], "packageName": "@rushstack/mcp-server", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json index 478169c2cc5..9410688d502 100644 --- a/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/module-minifier/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/module-minifier" } ], "packageName": "@rushstack/module-minifier", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json index e81542dcd9c..98b37a1ee33 100644 --- a/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/node-core-library/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/node-core-library" } ], "packageName": "@rushstack/node-core-library", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json index d4c2c8fcaff..995b334a628 100644 --- a/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/npm-check-fork/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/npm-check-fork" } ], "packageName": "@rushstack/npm-check-fork", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json index e71758a2ee5..e310f2e9998 100644 --- a/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/operation-graph/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/operation-graph" } ], "packageName": "@rushstack/operation-graph", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json index b593335e2fc..c227647d0c9 100644 --- a/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/package-deps-hash/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/package-deps-hash" } ], "packageName": "@rushstack/package-deps-hash", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json index f2c35c2e40f..219da4d7eb0 100644 --- a/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/package-extractor/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/package-extractor" } ], "packageName": "@rushstack/package-extractor", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json index 514f2504e6e..f9829bfe052 100644 --- a/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/playwright-browser-tunnel/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/playwright-browser-tunnel" } ], "packageName": "@rushstack/playwright-browser-tunnel", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json index d1061876001..82340f8d3df 100644 --- a/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/problem-matcher/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/problem-matcher" } ], "packageName": "@rushstack/problem-matcher", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json index 1bf31823f78..d25fa634b1b 100644 --- a/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rig-package/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rig-package" } ], "packageName": "@rushstack/rig-package", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json index b8268d0ba1d..082ef33d18e 100644 --- a/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rundown/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rundown" } ], "packageName": "@rushstack/rundown", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 422d147d471..20183681407 100644 --- a/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rush-mcp-docs-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rush-mcp-docs-plugin" } ], "packageName": "@rushstack/rush-mcp-docs-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json index 5b2902b6882..1684f638d79 100644 --- a/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rush-pnpm-kit-v10/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rush-pnpm-kit-v10" } ], "packageName": "@rushstack/rush-pnpm-kit-v10", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json index 28c48c4385d..da7115cf6b6 100644 --- a/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rush-pnpm-kit-v8/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rush-pnpm-kit-v8" } ], "packageName": "@rushstack/rush-pnpm-kit-v8", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json index ff5da8af02a..79c11d3053b 100644 --- a/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/rush-pnpm-kit-v9/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/rush-pnpm-kit-v9" } ], "packageName": "@rushstack/rush-pnpm-kit-v9", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 80d6e163d2e..18751630aa9 100644 --- a/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/set-webpack-public-path-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/set-webpack-public-path-plugin" } ], "packageName": "@rushstack/set-webpack-public-path-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json index bff3ab4b2a0..f6614bd65da 100644 --- a/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/stream-collator/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/stream-collator" } ], "packageName": "@rushstack/stream-collator", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json index a27e8f859ee..5890e98bbce 100644 --- a/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/terminal/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/terminal" } ], "packageName": "@rushstack/terminal", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json index 05b7b3636fa..5e0f198d92d 100644 --- a/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/trace-import/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/trace-import" } ], "packageName": "@rushstack/trace-import", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json index 7eba92f6f55..9615dab39fb 100644 --- a/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/tree-pattern/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/tree-pattern" } ], "packageName": "@rushstack/tree-pattern", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json index a31c0c23d0d..c21a8774181 100644 --- a/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/ts-command-line/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/ts-command-line" } ], "packageName": "@rushstack/ts-command-line", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json index cf0b6f984dd..85106a410b9 100644 --- a/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/typings-generator/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/typings-generator" } ], "packageName": "@rushstack/typings-generator", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index be4979ee8e2..8e468d0111d 100644 --- a/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack-embedded-dependencies-plugin" } ], "packageName": "@rushstack/webpack-embedded-dependencies-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json index f47676d5cbf..918f717a684 100644 --- a/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack-plugin-utilities/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack-plugin-utilities" } ], "packageName": "@rushstack/webpack-plugin-utilities", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 6c88f067bbf..e3249498c4e 100644 --- a/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin" } ], "packageName": "@rushstack/webpack-preserve-dynamic-require-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 23fb4e9b739..df76a709709 100644 --- a/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack-workspace-resolve-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack-workspace-resolve-plugin" } ], "packageName": "@rushstack/webpack-workspace-resolve-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 9230e560619..54a6c73aa7f 100644 --- a/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack4-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack4-localization-plugin" } ], "packageName": "@rushstack/webpack4-localization-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index eae117209b9..5f78adddec5 100644 --- a/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack4-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack4-module-minifier-plugin" } ], "packageName": "@rushstack/webpack4-module-minifier-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 034984ed24b..d776c96818a 100644 --- a/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack5-localization-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack5-localization-plugin" } ], "packageName": "@rushstack/webpack5-localization-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json index 8ff9314c16c..00b608821e9 100644 --- a/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/webpack5-module-minifier-plugin/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/webpack5-module-minifier-plugin" } ], "packageName": "@rushstack/webpack5-module-minifier-plugin", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json index d2a64285a09..95f550457f2 100644 --- a/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/worker-pool/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/worker-pool" } ], "packageName": "@rushstack/worker-pool", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json b/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json index e8ad4de27ef..bb857b0f31d 100644 --- a/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json +++ b/common/changes/@rushstack/zipsync/remove-package.json-exports-imports_2026-02-19-22-16.json @@ -1,11 +1,11 @@ { "changes": [ { - "comment": "Temporarily remove `\"exports\": { \"...\": { \"import\": \"...\" } }` properties to fix issues with importing in an ESM context. See https://github.com/microsoft/rushstack/issues/5644.", + "comment": "Add `\"node\"` condition before `\"import\"` in the `\"exports\"` map so that Node.js uses the CJS output (which handles extensionless imports), while bundlers still use ESM via `\"import\"`. Fixes https://github.com/microsoft/rushstack/issues/5644.", "type": "patch", "packageName": "@rushstack/zipsync" } ], "packageName": "@rushstack/zipsync", "email": "iclanton@users.noreply.github.com" -} \ No newline at end of file +} diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 4b83e135793..0fca3084b25 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -5,6 +5,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index ce6b3a93c9b..49540bf606e 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -6,23 +6,28 @@ "module": "./lib-esm/usage.js", "exports": { ".": { + "node": "./lib-commonjs/usage.js", "import": "./lib-esm/usage.js", "require": "./lib-commonjs/usage.js" }, "./modern-module-resolution": { + "node": "./lib-commonjs/modern-module-resolution.js", "import": "./lib-esm/modern-module-resolution.js", "require": "./lib-commonjs/modern-module-resolution.js" }, "./custom-config-package-names": { + "node": "./lib-commonjs/custom-config-package-names.js", "import": "./lib-esm/custom-config-package-names.js", "require": "./lib-commonjs/custom-config-package-names.js" }, "./eslint-bulk-suppressions": { + "node": "./lib-commonjs/eslint-bulk-suppressions/index.js", "import": "./lib-esm/eslint-bulk-suppressions/index.js", "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index ff37aff4c98..ade5cd1d2ee 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -21,11 +21,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index f6b2aa8ca7b..896d02e88d3 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -20,11 +20,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index 1c50ea7afb6..78ef1148339 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -24,11 +24,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index 921d17f2d90..6132c827c20 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -33,6 +33,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index 2f9982ebbc5..168d4af71a5 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 80cbfb84c44..d382c48a22f 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -15,12 +15,14 @@ "exports": { ".": { "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 0f6dac3c7db..f7e7fd37445 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -56,6 +56,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index e46d230c234..cac372e1b66 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -33,6 +33,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 3e1f7609a18..e4242121166 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -41,6 +41,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index fc37a9604e3..a976107b70b 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -30,6 +30,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index f6fc3476d20..bb85e23588a 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./dist/heft-rspack-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json index 9322738fc2c..ca701296ee8 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 60e2840e2f5..1355468a774 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -21,12 +21,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 262bab6e213..afdd27b9457 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -30,6 +30,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index 50c58f7f4e1..0dbf86e6df0 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -34,6 +34,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index 40336588098..e987a103aa1 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./dist/heft-typescript-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index fc9d4e29486..6352ecdf522 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -18,6 +18,7 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index 59fe1e93884..1b9a52ddd55 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index 05405829d13..60ab9ee4589 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./dist/heft-webpack5-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 19313a84c37..1635e6ad8d8 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index d6ebf8122c1..177d65db714 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -8,12 +8,14 @@ "exports": { ".": { "types": "./dist/credential-cache.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index ce37296c37d..1a85d622a09 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/debug-certificate-manager.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index 7f61b6ad3a1..a274dad859f 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -17,11 +17,13 @@ "exports": { ".": { "types": "./dist/heft-config-file.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index 66125a4e89e..1128350400c 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -20,11 +20,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*", + "node": "./lib-commonjs/*", "import": "./lib-esm/*", "require": "./lib-commonjs/*" }, diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index a21b2b268fa..0581a83d86b 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -8,12 +8,14 @@ "exports": { ".": { "types": "./dist/localization-utilities.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index ebc5d0229d1..6543c3fa0f8 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/lookup-by-path.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index ab51f083b65..d8eb5042e41 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/module-minifier.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index f85c9550d93..d4e72ff4235 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/node-core-library.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index f421c52f0e5..5f940030724 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index b7cc78c3f52..e96dc6641bd 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/operation-graph.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 196b52beaa2..cf037d16889 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/package-deps-hash.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 775d5872b8b..fa657dfc703 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/package-extractor.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index af777563f8c..b4dbbe70603 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/problem-matcher.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 0e17f86cc31..263c99579e1 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -8,12 +8,14 @@ "exports": { ".": { "types": "./dist/rig-package.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index 522772525cf..e6a2f2d3aa6 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -9,11 +9,13 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v10.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index b2229d37f48..d3918ae507e 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -9,11 +9,13 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v8.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index d3cfb5a8b25..2442dce2bc1 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -9,11 +9,13 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v9.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 1f3287bde83..b113ac4c445 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -13,11 +13,13 @@ "exports": { ".": { "types": "./dist/stream-collator.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index 4a0e9fe3fa2..7752fe173d1 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/terminal.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index ac90fc5d7c9..4a6707724e6 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/tree-pattern.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index fa8ae34d7a2..33dfb655b7b 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -13,11 +13,13 @@ "exports": { ".": { "types": "./dist/ts-command-line.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index f3de80f9563..a50efe8d2c3 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -13,11 +13,13 @@ "exports": { ".": { "types": "./dist/typings-generator.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index 53cb56afa12..c0ecca681f1 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/worker-pool.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json index e813868f9db..80c8359f8c2 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json index 86e5fe6a92d..e30745da6b5 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index f90da1c50f5..aa010e9e100 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -15,12 +15,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 120c6426425..cb194acf894 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index a86d21d6be0..f1043820c16 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index 32f2458a6af..2ad094c890c 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -14,11 +14,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index de5e2723fca..b8c4a1d4d62 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -14,12 +14,14 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 5b243599d50..439a571c6b7 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -32,11 +32,13 @@ "exports": { ".": { "types": "./dist/rush-resolver-cache-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 54178e7d2a9..c8d97e954d7 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -42,6 +42,7 @@ "exports": { ".": { "types": "./dist/rush-serve-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, @@ -51,6 +52,7 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush.json b/rush.json index 1b665695ae4..8d2151e9cc1 100644 --- a/rush.json +++ b/rush.json @@ -641,6 +641,12 @@ "reviewCategory": "tests", "shouldPublish": false }, + { + "packageName": "esm-node-import-test", + "projectFolder": "build-tests/esm-node-import-test", + "reviewCategory": "tests", + "shouldPublish": false + }, { "packageName": "eslint-bulk-suppressions-test", "projectFolder": "build-tests/eslint-bulk-suppressions-test", diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index fc2129e1047..e7e8704dc60 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -8,6 +8,7 @@ "exports": { ".": { "types": "./dist/hashed-folder-copy-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, @@ -16,6 +17,7 @@ }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index 17e9f0c5121..23963f8e2a6 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index 78e5559fdb8..d73aaa7dae1 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index 054ee92616c..4a0ba130619 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 6047e96201c..a86954dccdd 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/set-webpack-public-path-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 3560b4e263a..d54a01ed32f 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 3165f86e2de..de7dce98186 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack-plugin-utilities.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index 8ba67aa4501..74806f44db3 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack-workspace-resolve-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index 9d95d5d8025..f0d76d8bc68 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack4-localization-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index 6dfc1a0cc15..7e14f19502e 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack4-module-minifier-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 916e1b9ba08..7654f7a1fab 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 9dccd896296..ce3e85742f9 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack5-localization-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index fe0c9aa9de2..40e61b0ad34 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -8,11 +8,13 @@ "exports": { ".": { "types": "./dist/webpack5-module-minifier-plugin.d.ts", + "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", + "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, From 7218295c84f6cab957c879c082318ebcdedd39f4 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:46:13 -0800 Subject: [PATCH 4/8] fix: add "node" condition to exports to fix ESM resolution (#5644) The "import" condition in "exports" maps points to lib-esm/ files which have extensionless imports. Node.js ESM requires explicit .js extensions, so importing these packages from a "type": "module" project fails with ERR_MODULE_NOT_FOUND. Fix by adding a "node" condition before "import" in exports. Node.js matches "node" first and uses CJS (which handles extensionless requires), while bundlers skip "node" and use "import" for ESM. Also adds an esm-node-import-test build-test project that exercises this scenario by spawning a Node.js ESM subprocess that imports @rushstack/node-core-library. --- .../esm-node-import-test/config/heft.json | 20 +++--- .../esm-node-import-test/config/rig.json | 7 ++ .../esm-node-import-test/eslint.config.cjs | 18 +++++ build-tests/esm-node-import-test/package.json | 8 +-- build-tests/esm-node-import-test/src/index.ts | 18 +---- .../src/test-esm-import.ts | 68 +++++++++++++++++++ .../esm-node-import-test/tsconfig.json | 22 +----- 7 files changed, 109 insertions(+), 52 deletions(-) create mode 100644 build-tests/esm-node-import-test/config/rig.json create mode 100644 build-tests/esm-node-import-test/eslint.config.cjs create mode 100644 build-tests/esm-node-import-test/src/test-esm-import.ts diff --git a/build-tests/esm-node-import-test/config/heft.json b/build-tests/esm-node-import-test/config/heft.json index 526f982a691..ecea8acc9c2 100644 --- a/build-tests/esm-node-import-test/config/heft.json +++ b/build-tests/esm-node-import-test/config/heft.json @@ -1,20 +1,18 @@ -/** - * Configures heft to use the TypeScript plugin for building. - */ { "$schema": "https://developer.microsoft.com/json-schemas/heft/v4/heft.schema.json", + "extends": "local-node-rig/profiles/default/config/heft.json", + "phasesByName": { - "build": { - "cleanFiles": [ - { - "sourcePath": "lib-esm" - } - ], + "test": { "tasksByName": { - "typescript": { + "esm-import-test": { "taskPlugin": { - "pluginPackage": "@rushstack/heft-typescript-plugin" + "pluginPackage": "@rushstack/heft", + "pluginName": "run-script-plugin", + "options": { + "scriptPath": "./lib-commonjs/test-esm-import.js" + } } } } diff --git a/build-tests/esm-node-import-test/config/rig.json b/build-tests/esm-node-import-test/config/rig.json new file mode 100644 index 00000000000..165ffb001f5 --- /dev/null +++ b/build-tests/esm-node-import-test/config/rig.json @@ -0,0 +1,7 @@ +{ + // The "rig.json" file directs tools to look for their config files in an external package. + // Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package + "$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", + + "rigPackageName": "local-node-rig" +} diff --git a/build-tests/esm-node-import-test/eslint.config.cjs b/build-tests/esm-node-import-test/eslint.config.cjs new file mode 100644 index 00000000000..abed1e36d6b --- /dev/null +++ b/build-tests/esm-node-import-test/eslint.config.cjs @@ -0,0 +1,18 @@ +// This is a workaround for https://github.com/eslint/eslint/issues/3458 +require('local-node-rig/profiles/default/includes/eslint/flat/patch/modern-module-resolution'); + +const nodeProfile = require('local-node-rig/profiles/default/includes/eslint/flat/profile/node'); +const friendlyLocalsMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals'); + +module.exports = [ + ...nodeProfile, + ...friendlyLocalsMixin, + { + files: ['**/*.ts', '**/*.tsx'], + languageOptions: { + parserOptions: { + tsconfigRootDir: __dirname + } + } + } +]; diff --git a/build-tests/esm-node-import-test/package.json b/build-tests/esm-node-import-test/package.json index b8c12d86d7f..5e49b7b28fb 100644 --- a/build-tests/esm-node-import-test/package.json +++ b/build-tests/esm-node-import-test/package.json @@ -5,17 +5,15 @@ "private": true, "type": "module", "scripts": { - "build": "heft build --clean", + "build": "heft test --clean", "_phase:build": "heft run --only build -- --clean", - "_phase:test": "node --experimental-vm-modules lib-esm/index.js" + "_phase:test": "heft run --only test -- --clean" }, "dependencies": { "@rushstack/node-core-library": "workspace:*" }, "devDependencies": { "@rushstack/heft": "workspace:*", - "@rushstack/heft-typescript-plugin": "workspace:*", - "@types/node": "20.17.19", - "typescript": "~5.8.2" + "local-node-rig": "workspace:*" } } diff --git a/build-tests/esm-node-import-test/src/index.ts b/build-tests/esm-node-import-test/src/index.ts index 964cb913b59..66420fbe1b7 100644 --- a/build-tests/esm-node-import-test/src/index.ts +++ b/build-tests/esm-node-import-test/src/index.ts @@ -2,19 +2,7 @@ // See LICENSE in the project root for license information. /** - * This test validates that ESM imports from @rushstack/node-core-library work correctly - * under Node.js ESM module resolution (i.e., when the consuming project has "type": "module"). - * - * The issue (https://github.com/microsoft/rushstack/issues/5644) is that when the package exports - * map has an "import" condition pointing to lib-esm/ files that contain extensionless imports - * (e.g., `from './api/Foo'` without `.js`), Node.js ESM resolution fails with ERR_MODULE_NOT_FOUND. - * - * The fix is to add a "node" condition before "import" that directs Node.js to use CJS, - * while bundlers still get the ESM version via the "import" condition. + * This is the main entry point for the esm-node-import-test project. + * The actual ESM import validation is done by test-esm-import.ts via the run-script-plugin. */ - -import { Path } from '@rushstack/node-core-library'; - -// If this line runs without ERR_MODULE_NOT_FOUND, the exports map is working correctly. -const result: string = Path.convertToSlashes('foo\\bar'); -console.log('ESM import test passed! Path.convertToSlashes result:', result); +export {}; diff --git a/build-tests/esm-node-import-test/src/test-esm-import.ts b/build-tests/esm-node-import-test/src/test-esm-import.ts new file mode 100644 index 00000000000..4d0d67279e9 --- /dev/null +++ b/build-tests/esm-node-import-test/src/test-esm-import.ts @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +import * as child_process from 'child_process'; +import * as path from 'path'; +import type { IRunScript, IRunScriptOptions } from '@rushstack/heft'; + +/** + * This test script validates that importing @rushstack/node-core-library from an ESM context + * works correctly with the package.json "exports" field under Node.js. + * + * Issue: https://github.com/microsoft/rushstack/issues/5644 + * + * The problem was that "exports" maps with an "import" condition pointed to lib-esm/ files + * containing extensionless imports (e.g., `from './api/Foo'`). Node.js ESM requires explicit + * .js extensions, so this broke with ERR_MODULE_NOT_FOUND. + * + * The fix adds a "node" condition before "import" so Node.js uses CJS (which handles + * extensionless requires), while bundlers still use "import" for ESM. + */ + +// This ESM code will be piped to `node --input-type=module` to test actual ESM resolution. +const ESM_TEST_CODE: string = ` +import { Path } from '@rushstack/node-core-library'; + +// If this line runs without ERR_MODULE_NOT_FOUND, the exports map is working correctly. +const result = Path.convertToSlashes('foo/bar'); +if (result !== 'foo/bar') { + throw new Error('Unexpected result from Path.convertToSlashes: ' + result); +} +console.log('ESM import test PASSED: @rushstack/node-core-library resolved correctly under Node.js ESM.'); +`; + +export async function runAsync(options: IRunScriptOptions): Promise { + const { heftTaskSession } = options; + const { logger } = heftTaskSession; + + logger.terminal.writeLine('Testing ESM import resolution of @rushstack/node-core-library...'); + + const result: child_process.SpawnSyncReturns = child_process.spawnSync( + process.execPath, + ['--input-type=module', '--eval', ESM_TEST_CODE], + { + encoding: 'utf-8', + cwd: path.resolve(__dirname, '..'), + stdio: ['pipe', 'pipe', 'pipe'] + } + ); + + if (result.stdout) { + logger.terminal.writeLine(result.stdout.trim()); + } + + if (result.status !== 0) { + const stderr: string = result.stderr || ''; + logger.emitError( + new Error( + `ESM import test FAILED (exit code ${result.status}).\n` + + `This likely means the "exports" map in @rushstack/node-core-library/package.json\n` + + `is directing Node.js to lib-esm/ files with extensionless imports.\n` + + `See https://github.com/microsoft/rushstack/issues/5644\n\n` + + `stderr:\n${stderr}` + ) + ); + } else { + logger.terminal.writeLine('ESM import resolution test passed successfully.'); + } +} diff --git a/build-tests/esm-node-import-test/tsconfig.json b/build-tests/esm-node-import-test/tsconfig.json index 086cffb8708..dac21d04081 100644 --- a/build-tests/esm-node-import-test/tsconfig.json +++ b/build-tests/esm-node-import-test/tsconfig.json @@ -1,23 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - - "compilerOptions": { - "outDir": "lib-esm", - "rootDir": "src", - - "forceConsistentCasingInFileNames": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true, - "inlineSources": true, - "strictNullChecks": true, - "noUnusedLocals": true, - "types": ["node"], - - "module": "esnext", - "moduleResolution": "bundler", - "target": "es2020", - "lib": ["es2020"] - }, - "include": ["src/**/*.ts"] + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } From c17ffc794793117a7151e382b736ca46465c8c56 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:50:52 -0800 Subject: [PATCH 5/8] fixup! fix: add "node" condition to exports to fix ESM resolution (#5644) --- build-tests/esm-node-import-test/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tests/esm-node-import-test/package.json b/build-tests/esm-node-import-test/package.json index 5e49b7b28fb..001791a806d 100644 --- a/build-tests/esm-node-import-test/package.json +++ b/build-tests/esm-node-import-test/package.json @@ -14,6 +14,7 @@ }, "devDependencies": { "@rushstack/heft": "workspace:*", - "local-node-rig": "workspace:*" + "local-node-rig": "workspace:*", + "eslint": "~9.37.0" } } From 7f65e98c5d7e243befc1fc2851662437094bb87c Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 14:50:58 -0800 Subject: [PATCH 6/8] Rush update. --- .../config/subspaces/default/pnpm-lock.yaml | 91 +++++-------------- .../config/subspaces/default/repo-state.json | 2 +- 2 files changed, 22 insertions(+), 71 deletions(-) diff --git a/common/config/subspaces/default/pnpm-lock.yaml b/common/config/subspaces/default/pnpm-lock.yaml index fd7d0a5004a..23310be4cec 100644 --- a/common/config/subspaces/default/pnpm-lock.yaml +++ b/common/config/subspaces/default/pnpm-lock.yaml @@ -1642,6 +1642,22 @@ importers: specifier: ~5.8.2 version: 5.8.2 + ../../../build-tests/esm-node-import-test: + dependencies: + '@rushstack/node-core-library': + specifier: workspace:* + version: link:../../libraries/node-core-library + devDependencies: + '@rushstack/heft': + specifier: workspace:* + version: link:../../apps/heft + eslint: + specifier: ~9.37.0 + version: 9.37.0 + local-node-rig: + specifier: workspace:* + version: link:../../rigs/local-node-rig + ../../../build-tests/hashed-folder-copy-plugin-webpack5-test: devDependencies: '@rushstack/hashed-folder-copy-plugin': @@ -4571,7 +4587,7 @@ importers: version: 1.2.0(@types/node@20.17.19) '@rushstack/heft-node-rig': specifier: 2.11.20 - version: 2.11.20(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(babel-plugin-macros@3.1.0)(jest-environment-jsdom@29.5.0) + version: 2.11.20(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(jest-environment-jsdom@29.5.0) '@types/heft-jest': specifier: 1.0.1 version: 1.0.1 @@ -22334,41 +22350,6 @@ snapshots: jest-util: 29.7.0 slash: 3.0.0 - '@jest/core@29.5.0': - dependencies: - '@jest/console': 29.7.0 - '@jest/reporters': 29.5.0 - '@jest/test-result': 29.7.0(@types/node@22.9.3) - '@jest/transform': 29.5.0 - '@jest/types': 29.5.0 - '@types/node': 22.9.3 - ansi-escapes: 4.3.2 - chalk: 4.1.2 - ci-info: 3.9.0 - exit: 0.1.2 - graceful-fs: 4.2.11 - jest-changed-files: 29.7.0 - jest-config: 29.5.0(@types/node@22.9.3) - jest-haste-map: 29.7.0 - jest-message-util: 29.7.0 - jest-regex-util: 29.6.3 - jest-resolve: 29.5.0 - jest-resolve-dependencies: 29.7.0 - jest-runner: 29.7.0 - jest-runtime: 29.7.0 - jest-snapshot: 29.5.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - jest-watcher: 29.7.0 - micromatch: 4.0.8 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-ansi: 6.0.1 - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - - ts-node - '@jest/core@29.5.0(babel-plugin-macros@3.1.0)': dependencies: '@jest/console': 29.7.0 @@ -24024,7 +24005,7 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@rushstack/heft-jest-plugin@1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(babel-plugin-macros@3.1.0)(jest-environment-jsdom@29.5.0)(jest-environment-node@29.5.0)': + '@rushstack/heft-jest-plugin@1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(jest-environment-jsdom@29.5.0)(jest-environment-node@29.5.0)': dependencies: '@jest/core': 29.5.0(babel-plugin-macros@3.1.0) '@jest/reporters': 29.5.0 @@ -24057,13 +24038,13 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@rushstack/heft-node-rig@2.11.20(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(babel-plugin-macros@3.1.0)(jest-environment-jsdom@29.5.0)': + '@rushstack/heft-node-rig@2.11.20(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(jest-environment-jsdom@29.5.0)': dependencies: '@microsoft/api-extractor': 7.57.0(@types/node@20.17.19) '@rushstack/eslint-config': 4.6.2(eslint@9.37.0)(typescript@5.8.2) '@rushstack/heft': 1.2.0(@types/node@20.17.19) '@rushstack/heft-api-extractor-plugin': 1.3.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19) - '@rushstack/heft-jest-plugin': 1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(babel-plugin-macros@3.1.0)(jest-environment-jsdom@29.5.0)(jest-environment-node@29.5.0) + '@rushstack/heft-jest-plugin': 1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19)(jest-environment-jsdom@29.5.0)(jest-environment-node@29.5.0) '@rushstack/heft-lint-plugin': 1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19) '@rushstack/heft-typescript-plugin': 1.2.0(@rushstack/heft@1.2.0(@types/node@20.17.19))(@types/node@20.17.19) '@types/heft-jest': 1.0.1 @@ -32165,36 +32146,6 @@ snapshots: - babel-plugin-macros - supports-color - jest-config@29.5.0(@types/node@22.9.3): - dependencies: - '@babel/core': 7.20.12 - '@jest/test-sequencer': 29.7.0(@types/node@22.9.3) - '@jest/types': 29.5.0 - babel-jest: 29.7.0(@babel/core@7.20.12) - chalk: 4.1.2 - ci-info: 3.9.0 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-circus: 29.7.0(babel-plugin-macros@3.1.0) - jest-environment-node: 29.5.0 - jest-get-type: 29.6.3 - jest-regex-util: 29.6.3 - jest-resolve: 29.5.0 - jest-runner: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - micromatch: 4.0.8 - parse-json: 5.2.0 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-json-comments: 3.1.1 - optionalDependencies: - '@types/node': 22.9.3 - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - jest-config@29.5.0(@types/node@22.9.3)(babel-plugin-macros@3.1.0): dependencies: '@babel/core': 7.20.12 @@ -32645,7 +32596,7 @@ snapshots: jest@29.3.1(@types/node@20.17.19): dependencies: - '@jest/core': 29.5.0 + '@jest/core': 29.5.0(babel-plugin-macros@3.1.0) '@jest/types': 29.5.0 import-local: 3.2.0 jest-cli: 29.7.0(@types/node@20.17.19) diff --git a/common/config/subspaces/default/repo-state.json b/common/config/subspaces/default/repo-state.json index 632ac9be841..e0aab371844 100644 --- a/common/config/subspaces/default/repo-state.json +++ b/common/config/subspaces/default/repo-state.json @@ -1,5 +1,5 @@ // DO NOT MODIFY THIS FILE MANUALLY BUT DO COMMIT IT. It is generated and used by Rush. { - "pnpmShrinkwrapHash": "14e1da426da2babd4e48137086971c10963c6a7f", + "pnpmShrinkwrapHash": "a97a152eec27dd54ce31e3973f851f572c326c76", "preferredVersionsHash": "9ba05fe872434900a0b29c308a94015078f37c47" } From 7e90777c4e02352cebdbe8f42258ce881c5f7afb Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 15:13:09 -0800 Subject: [PATCH 7/8] fixup! fix: add "node" condition to exports to fix ESM resolution (#5644) --- .../esm-node-import-test/config/heft.json | 21 ------ .../config/jest.config.json | 3 + .../esm-node-import-test/eslint.config.cjs | 6 +- build-tests/esm-node-import-test/package.json | 4 +- build-tests/esm-node-import-test/src/index.ts | 8 --- build-tests/esm-node-import-test/src/start.ts | 16 +++++ .../src/test-esm-import.ts | 68 ------------------- .../src/test/__snapshots__/start.test.ts.snap | 6 ++ .../src/test/start.test.ts | 28 ++++++++ 9 files changed, 59 insertions(+), 101 deletions(-) delete mode 100644 build-tests/esm-node-import-test/config/heft.json create mode 100644 build-tests/esm-node-import-test/config/jest.config.json delete mode 100644 build-tests/esm-node-import-test/src/index.ts create mode 100644 build-tests/esm-node-import-test/src/start.ts delete mode 100644 build-tests/esm-node-import-test/src/test-esm-import.ts create mode 100644 build-tests/esm-node-import-test/src/test/__snapshots__/start.test.ts.snap create mode 100644 build-tests/esm-node-import-test/src/test/start.test.ts diff --git a/build-tests/esm-node-import-test/config/heft.json b/build-tests/esm-node-import-test/config/heft.json deleted file mode 100644 index ecea8acc9c2..00000000000 --- a/build-tests/esm-node-import-test/config/heft.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/heft/v4/heft.schema.json", - - "extends": "local-node-rig/profiles/default/config/heft.json", - - "phasesByName": { - "test": { - "tasksByName": { - "esm-import-test": { - "taskPlugin": { - "pluginPackage": "@rushstack/heft", - "pluginName": "run-script-plugin", - "options": { - "scriptPath": "./lib-commonjs/test-esm-import.js" - } - } - } - } - } - } -} diff --git a/build-tests/esm-node-import-test/config/jest.config.json b/build-tests/esm-node-import-test/config/jest.config.json new file mode 100644 index 00000000000..d1749681d90 --- /dev/null +++ b/build-tests/esm-node-import-test/config/jest.config.json @@ -0,0 +1,3 @@ +{ + "extends": "local-node-rig/profiles/default/config/jest.config.json" +} diff --git a/build-tests/esm-node-import-test/eslint.config.cjs b/build-tests/esm-node-import-test/eslint.config.cjs index abed1e36d6b..87132f43292 100644 --- a/build-tests/esm-node-import-test/eslint.config.cjs +++ b/build-tests/esm-node-import-test/eslint.config.cjs @@ -1,12 +1,14 @@ -// This is a workaround for https://github.com/eslint/eslint/issues/3458 -require('local-node-rig/profiles/default/includes/eslint/flat/patch/modern-module-resolution'); +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. const nodeProfile = require('local-node-rig/profiles/default/includes/eslint/flat/profile/node'); const friendlyLocalsMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals'); +const tsdocMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/tsdoc'); module.exports = [ ...nodeProfile, ...friendlyLocalsMixin, + ...tsdocMixin, { files: ['**/*.ts', '**/*.tsx'], languageOptions: { diff --git a/build-tests/esm-node-import-test/package.json b/build-tests/esm-node-import-test/package.json index 001791a806d..1420121453c 100644 --- a/build-tests/esm-node-import-test/package.json +++ b/build-tests/esm-node-import-test/package.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@rushstack/heft": "workspace:*", - "local-node-rig": "workspace:*", - "eslint": "~9.37.0" + "eslint": "~9.37.0", + "local-node-rig": "workspace:*" } } diff --git a/build-tests/esm-node-import-test/src/index.ts b/build-tests/esm-node-import-test/src/index.ts deleted file mode 100644 index 66420fbe1b7..00000000000 --- a/build-tests/esm-node-import-test/src/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -// See LICENSE in the project root for license information. - -/** - * This is the main entry point for the esm-node-import-test project. - * The actual ESM import validation is done by test-esm-import.ts via the run-script-plugin. - */ -export {}; diff --git a/build-tests/esm-node-import-test/src/start.ts b/build-tests/esm-node-import-test/src/start.ts new file mode 100644 index 00000000000..7240f7bcc2a --- /dev/null +++ b/build-tests/esm-node-import-test/src/start.ts @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +import { Path } from '@rushstack/node-core-library'; + +export const EXPECTED_OUTPUT: string = + 'ESM import test PASSED: @rushstack/node-core-library resolved correctly under Node.js ESM.'; + +// If this line runs without ERR_MODULE_NOT_FOUND, the exports map is working correctly. +const result: string = Path.convertToSlashes('foo\\bar'); +if (result !== 'foo/bar') { + throw new Error('Unexpected result from Path.convertToSlashes: ' + result); +} + +// eslint-disable-next-line no-console +console.log(EXPECTED_OUTPUT); diff --git a/build-tests/esm-node-import-test/src/test-esm-import.ts b/build-tests/esm-node-import-test/src/test-esm-import.ts deleted file mode 100644 index 4d0d67279e9..00000000000 --- a/build-tests/esm-node-import-test/src/test-esm-import.ts +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. -// See LICENSE in the project root for license information. - -import * as child_process from 'child_process'; -import * as path from 'path'; -import type { IRunScript, IRunScriptOptions } from '@rushstack/heft'; - -/** - * This test script validates that importing @rushstack/node-core-library from an ESM context - * works correctly with the package.json "exports" field under Node.js. - * - * Issue: https://github.com/microsoft/rushstack/issues/5644 - * - * The problem was that "exports" maps with an "import" condition pointed to lib-esm/ files - * containing extensionless imports (e.g., `from './api/Foo'`). Node.js ESM requires explicit - * .js extensions, so this broke with ERR_MODULE_NOT_FOUND. - * - * The fix adds a "node" condition before "import" so Node.js uses CJS (which handles - * extensionless requires), while bundlers still use "import" for ESM. - */ - -// This ESM code will be piped to `node --input-type=module` to test actual ESM resolution. -const ESM_TEST_CODE: string = ` -import { Path } from '@rushstack/node-core-library'; - -// If this line runs without ERR_MODULE_NOT_FOUND, the exports map is working correctly. -const result = Path.convertToSlashes('foo/bar'); -if (result !== 'foo/bar') { - throw new Error('Unexpected result from Path.convertToSlashes: ' + result); -} -console.log('ESM import test PASSED: @rushstack/node-core-library resolved correctly under Node.js ESM.'); -`; - -export async function runAsync(options: IRunScriptOptions): Promise { - const { heftTaskSession } = options; - const { logger } = heftTaskSession; - - logger.terminal.writeLine('Testing ESM import resolution of @rushstack/node-core-library...'); - - const result: child_process.SpawnSyncReturns = child_process.spawnSync( - process.execPath, - ['--input-type=module', '--eval', ESM_TEST_CODE], - { - encoding: 'utf-8', - cwd: path.resolve(__dirname, '..'), - stdio: ['pipe', 'pipe', 'pipe'] - } - ); - - if (result.stdout) { - logger.terminal.writeLine(result.stdout.trim()); - } - - if (result.status !== 0) { - const stderr: string = result.stderr || ''; - logger.emitError( - new Error( - `ESM import test FAILED (exit code ${result.status}).\n` + - `This likely means the "exports" map in @rushstack/node-core-library/package.json\n` + - `is directing Node.js to lib-esm/ files with extensionless imports.\n` + - `See https://github.com/microsoft/rushstack/issues/5644\n\n` + - `stderr:\n${stderr}` - ) - ); - } else { - logger.terminal.writeLine('ESM import resolution test passed successfully.'); - } -} diff --git a/build-tests/esm-node-import-test/src/test/__snapshots__/start.test.ts.snap b/build-tests/esm-node-import-test/src/test/__snapshots__/start.test.ts.snap new file mode 100644 index 00000000000..83f71f17139 --- /dev/null +++ b/build-tests/esm-node-import-test/src/test/__snapshots__/start.test.ts.snap @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ESM Node Import Test should resolve @rushstack/node-core-library correctly under Node.js ESM 1`] = ` +"ESM import test PASSED: @rushstack/node-core-library resolved correctly under Node.js ESM. +" +`; diff --git a/build-tests/esm-node-import-test/src/test/start.test.ts b/build-tests/esm-node-import-test/src/test/start.test.ts new file mode 100644 index 00000000000..75792fa12c6 --- /dev/null +++ b/build-tests/esm-node-import-test/src/test/start.test.ts @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +import type { ChildProcess } from 'node:child_process'; + +import { Executable, PackageJsonLookup } from '@rushstack/node-core-library'; + +describe('ESM Node Import Test', () => { + it('should resolve @rushstack/node-core-library correctly under Node.js ESM', async () => { + const buildFolderPath: string | undefined = PackageJsonLookup.instance.tryGetPackageFolderFor(__dirname); + if (!buildFolderPath) { + throw new Error('Unable to determine build folder path for test script.'); + } + + const result: ChildProcess = Executable.spawn(process.execPath, [`${buildFolderPath}/lib-esm/start.js`], { + currentWorkingDirectory: buildFolderPath + }); + + const { stderr, stdout, exitCode, signal } = await Executable.waitForExitAsync(result, { + encoding: 'utf8' + }); + + expect(stderr).toBe(''); + expect(stdout).toMatchSnapshot(); + expect(exitCode).toBe(0); + expect(signal).toBeNull(); + }); +}); From ee6096ee40ba1c386da8333f1f4d801dfc058c22 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 15:38:32 -0800 Subject: [PATCH 8/8] fixup! fix: add "node" condition to exports to fix ESM resolution (#5644) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f02752f9405..be4cb6d41cb 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,7 @@ These GitHub repositories provide supplementary resources for Rush Stack: | [/build-tests/eslint-bulk-suppressions-test](./build-tests/eslint-bulk-suppressions-test/) | Sample code to test eslint bulk suppressions | | [/build-tests/eslint-bulk-suppressions-test-flat](./build-tests/eslint-bulk-suppressions-test-flat/) | Sample code to test eslint bulk suppressions with flat configs | | [/build-tests/eslint-bulk-suppressions-test-legacy](./build-tests/eslint-bulk-suppressions-test-legacy/) | Sample code to test eslint bulk suppressions for versions of eslint < 8.57.0 | +| [/build-tests/esm-node-import-test](./build-tests/esm-node-import-test/) | This project validates that importing a rushstack package from a 'type: module' Node.js project works correctly with the package.json 'exports' field. See https://github.com/microsoft/rushstack/issues/5644 | | [/build-tests/hashed-folder-copy-plugin-webpack5-test](./build-tests/hashed-folder-copy-plugin-webpack5-test/) | Building this project exercises @rushstack/hashed-folder-copy-plugin with Webpack 5. NOTE - THIS TEST IS CURRENTLY EXPECTED TO BE BROKEN | | [/build-tests/heft-copy-files-test](./build-tests/heft-copy-files-test/) | Building this project tests copying files with Heft | | [/build-tests/heft-example-lifecycle-plugin](./build-tests/heft-example-lifecycle-plugin/) | This is an example heft plugin for testing the lifecycle hooks |