From 42f001ac275d4592e52f119e51ab60399f3764d7 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Mon, 16 Feb 2026 19:21:00 -0800 Subject: [PATCH 01/43] Add pattern to ignore tmpclaude working directory files --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 93d80cd12c..6f360c85f7 100644 --- a/.gitignore +++ b/.gitignore @@ -136,4 +136,4 @@ test-results/ # Claude Code local configuration .claude/*.local.json - +**/tmpclaude-*-cwd From 4925f18197eae9ea0d2ba14ded7f48b1fbb0ffed Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Mon, 16 Feb 2026 22:54:16 -0800 Subject: [PATCH 02/43] feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules - Updated main entry points to use lib-commonjs and lib-esm for better module resolution. - Added exports field to package.json for improved compatibility with module systems. - Adjusted mainEntryPointFilePath in api-extractor.json to point to lib-dts for type definitions. - Enhanced typesVersions to support lib-dts for type definitions across various plugins. --- apps/api-documenter/bin/api-documenter | 2 +- apps/api-documenter/config/api-extractor.json | 2 +- apps/api-documenter/package.json | 23 ++++++++++++- apps/api-extractor/bin/api-extractor | 2 +- apps/api-extractor/config/api-extractor.json | 2 +- apps/api-extractor/package.json | 23 ++++++++++++- .../bin/cpu-profile-aggregator | 2 +- apps/heft/bin/heft | 2 +- apps/heft/config/api-extractor.json | 2 +- apps/heft/heft-plugin.json | 18 +++++----- apps/heft/package.json | 23 ++++++++++++- apps/heft/src/start.ts | 2 +- apps/heft/src/startWithVersionSelector.ts | 16 +++++++-- apps/lockfile-explorer/bin/lockfile-explorer | 2 +- apps/lockfile-explorer/bin/lockfile-lint | 2 +- .../config/api-extractor.json | 2 +- apps/playwright-browser-tunnel/package.json | 25 +++++++++++++- apps/rundown/bin/rundown | 2 +- apps/rush-mcp-server/bin/mcp-server | 2 +- .../rush-mcp-server/config/api-extractor.json | 2 +- apps/rush-mcp-server/package.json | 23 ++++++++++++- apps/rush/bin/rush | 2 +- apps/rush/bin/rush-pnpm | 2 +- apps/rush/bin/rushx | 2 +- apps/trace-import/bin/trace-import | 2 +- apps/zipsync/bin/zipsync | 2 +- .../rush-lib-test/tsconfig.json | 3 +- .../typescript-newest-test/package.json | 25 +++++++++++++- .../typescript-newest-test/tsconfig.json | 3 +- .../config/api-extractor.json | 2 +- build-tests/api-documenter-test/package.json | 26 ++++++++++++-- .../api-extractor-d-cts-test/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-lib1-test/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-lib2-test/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-lib3-test/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-lib4-test/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-lib5-test/package.json | 23 ++++++++++++- .../api-extractor-scenarios/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-test-01/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-test-02/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-test-04/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../api-extractor-test-05/package.json | 23 ++++++++++++- build-tests/eslint-7-11-test/package.json | 25 +++++++++++++- build-tests/eslint-7-11-test/tsconfig.json | 4 ++- build-tests/eslint-7-7-test/package.json | 25 +++++++++++++- build-tests/eslint-7-7-test/tsconfig.json | 4 ++- build-tests/eslint-7-test/package.json | 25 +++++++++++++- build-tests/eslint-7-test/tsconfig.json | 4 ++- build-tests/eslint-8-test/package.json | 25 +++++++++++++- build-tests/eslint-8-test/tsconfig.json | 4 ++- build-tests/eslint-9-test/package.json | 25 +++++++++++++- .../tsconfig.json | 5 ++- .../tsconfig.json | 6 ++-- .../tsconfig.json | 5 ++- .../run-scenarios-helpers/package.json | 26 ++++++++++++-- .../tsconfig.json | 4 ++- .../rush-mcp-plugin.json | 4 +-- .../tsconfig.json | 4 ++- eslint/eslint-bulk/bin/eslint-bulk | 2 +- .../custom-config-package-names.js | 1 - .../eslint-patch/eslint-bulk-suppressions.js | 1 - .../eslint-patch/modern-module-resolution.js | 1 - eslint/eslint-patch/package.json | 34 ++++++++++++++++++- eslint/eslint-plugin-packlets/package.json | 26 ++++++++++++-- eslint/eslint-plugin-security/package.json | 26 ++++++++++++-- eslint/eslint-plugin/package.json | 26 ++++++++++++-- .../heft-plugin.json | 2 +- .../heft-dev-cert-plugin/heft-plugin.json | 4 +-- .../config/api-extractor.json | 2 +- .../heft-plugin.json | 4 +-- .../package.json | 23 ++++++++++++- .../heft-jest-plugin/heft-plugin.json | 4 +-- .../heft-plugin.json | 4 +-- .../heft-lint-plugin/heft-plugin.json | 4 +-- .../heft-plugin.json | 4 +-- .../config/api-extractor.json | 2 +- .../heft-rspack-plugin/heft-plugin.json | 4 +-- heft-plugins/heft-rspack-plugin/package.json | 23 ++++++++++++- .../heft-plugin.json | 2 +- .../heft-sass-plugin/heft-plugin.json | 2 +- heft-plugins/heft-sass-plugin/package.json | 26 ++++++++++++-- .../heft-plugin.json | 2 +- .../heft-storybook-plugin/heft-plugin.json | 4 +-- .../config/api-extractor.json | 2 +- .../heft-typescript-plugin/heft-plugin.json | 2 +- .../heft-typescript-plugin/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../heft-webpack4-plugin/heft-plugin.json | 4 +-- .../heft-webpack4-plugin/package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../heft-webpack5-plugin/heft-plugin.json | 4 +-- .../heft-webpack5-plugin/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/api-extractor-model/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/credential-cache/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../debug-certificate-manager/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/heft-config-file/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/localization-utilities/package.json | 23 ++++++++++++- .../lookup-by-path/config/api-extractor.json | 2 +- libraries/lookup-by-path/package.json | 23 ++++++++++++- .../module-minifier/config/api-extractor.json | 2 +- libraries/module-minifier/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/node-core-library/package.json | 23 ++++++++++++- libraries/npm-check-fork/package.json | 26 ++++++++++++-- libraries/npm-check-fork/tsconfig.json | 3 +- .../operation-graph/config/api-extractor.json | 2 +- libraries/operation-graph/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/package-deps-hash/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package-extractor/config/typescript.json | 12 ------- libraries/package-extractor/package.json | 23 ++++++++++++- libraries/package-extractor/webpack.config.js | 2 +- .../problem-matcher/config/api-extractor.json | 2 +- libraries/problem-matcher/package.json | 23 ++++++++++++- .../rig-package/config/api-extractor.json | 2 +- libraries/rig-package/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/rush-pnpm-kit-v10/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/rush-pnpm-kit-v8/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/rush-pnpm-kit-v9/package.json | 23 ++++++++++++- libraries/rushell/config/api-extractor.json | 2 +- libraries/rushell/package.json | 23 ++++++++++++- .../stream-collator/config/api-extractor.json | 2 +- libraries/stream-collator/package.json | 23 ++++++++++++- libraries/terminal/config/api-extractor.json | 2 +- libraries/terminal/package.json | 23 ++++++++++++- .../tree-pattern/config/api-extractor.json | 2 +- libraries/tree-pattern/package.json | 23 ++++++++++++- .../ts-command-line/config/api-extractor.json | 2 +- libraries/ts-command-line/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- libraries/typings-generator/package.json | 23 ++++++++++++- .../worker-pool/config/api-extractor.json | 2 +- libraries/worker-pool/package.json | 23 ++++++++++++- .../doc-plugin-rush-stack/package.json | 26 ++++++++++++-- .../profiles/default/config/rush-project.json | 2 +- .../profiles/default/config/typescript.json | 9 ++++- .../profiles/default/tsconfig-base.json | 9 ++--- .../profiles/default/config/rush-project.json | 2 +- .../profiles/default/config/typescript.json | 9 ++++- .../profiles/default/tsconfig-base.json | 3 +- .../config/api-extractor.json | 2 +- .../package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../package.json | 26 ++++++++++++-- .../rush-bridge-cache-plugin/package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../rush-buildxl-graph-plugin/package.json | 26 ++++++++++++-- .../rush-http-build-cache-plugin/package.json | 26 ++++++++++++-- .../rush-mcp-docs-plugin/package.json | 26 ++++++++++++-- .../rush-mcp-docs-plugin/rush-mcp-plugin.json | 4 +-- .../config/api-extractor.json | 2 +- .../rush-redis-cobuild-plugin/package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../rush-resolver-cache-plugin/package.json | 12 ++++++- .../config/api-extractor.json | 2 +- rush-plugins/rush-serve-plugin/package.json | 16 +++++++-- .../config/api-extractor.json | 2 +- .../hashed-folder-copy-plugin/package.json | 14 +++++--- .../config/api-extractor.json | 2 +- .../loader-load-themed-styles/package.json | 26 ++++++++++++-- webpack/loader-raw-script/package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../webpack-deep-imports-plugin/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- webpack/webpack-plugin-utilities/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../webpack4-localization-plugin/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 26 ++++++++++++-- .../config/api-extractor.json | 2 +- .../webpack5-localization-plugin/package.json | 23 ++++++++++++- .../config/api-extractor.json | 2 +- .../package.json | 23 ++++++++++++- 201 files changed, 2025 insertions(+), 262 deletions(-) delete mode 100644 eslint/eslint-patch/custom-config-package-names.js delete mode 100644 eslint/eslint-patch/eslint-bulk-suppressions.js delete mode 100644 eslint/eslint-patch/modern-module-resolution.js delete mode 100644 libraries/package-extractor/config/typescript.json diff --git a/apps/api-documenter/bin/api-documenter b/apps/api-documenter/bin/api-documenter index aee68e8022..eef2fc2706 100755 --- a/apps/api-documenter/bin/api-documenter +++ b/apps/api-documenter/bin/api-documenter @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/api-documenter/config/api-extractor.json b/apps/api-documenter/config/api-extractor.json index aa9d8f810f..05c675a860 100644 --- a/apps/api-documenter/config/api-extractor.json +++ b/apps/api-documenter/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 8e853a5761..151e5264d9 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -17,8 +17,29 @@ "bin": { "api-documenter": "./bin/api-documenter" }, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rollup.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rollup.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "dependencies": { "@microsoft/api-extractor-model": "workspace:*", "@microsoft/tsdoc": "~0.16.0", diff --git a/apps/api-extractor/bin/api-extractor b/apps/api-extractor/bin/api-extractor index aee68e8022..eef2fc2706 100755 --- a/apps/api-extractor/bin/api-extractor +++ b/apps/api-extractor/bin/api-extractor @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/api-extractor/config/api-extractor.json b/apps/api-extractor/config/api-extractor.json index aa9d8f810f..05c675a860 100644 --- a/apps/api-extractor/config/api-extractor.json +++ b/apps/api-extractor/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 54dc663863..0e4cd4e98b 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -25,8 +25,29 @@ "directory": "apps/api-extractor" }, "homepage": "https://api-extractor.com", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rollup.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rollup.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "bin": { "api-extractor": "./bin/api-extractor" }, diff --git a/apps/cpu-profile-summarizer/bin/cpu-profile-aggregator b/apps/cpu-profile-summarizer/bin/cpu-profile-aggregator index aee68e8022..eef2fc2706 100644 --- a/apps/cpu-profile-summarizer/bin/cpu-profile-aggregator +++ b/apps/cpu-profile-summarizer/bin/cpu-profile-aggregator @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/heft/bin/heft b/apps/heft/bin/heft index ef67d5db05..eb51ae89e3 100755 --- a/apps/heft/bin/heft +++ b/apps/heft/bin/heft @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/startWithVersionSelector.js'); +require('../lib-commonjs/startWithVersionSelector.js'); diff --git a/apps/heft/config/api-extractor.json b/apps/heft/config/api-extractor.json index 34fb7776c9..1ddb4758d0 100644 --- a/apps/heft/config/api-extractor.json +++ b/apps/heft/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/apps/heft/heft-plugin.json b/apps/heft/heft-plugin.json index d7c161a404..417896dc26 100644 --- a/apps/heft/heft-plugin.json +++ b/apps/heft/heft-plugin.json @@ -6,17 +6,17 @@ "taskPlugins": [ { "pluginName": "copy-files-plugin", - "entryPoint": "./lib/plugins/CopyFilesPlugin", - "optionsSchema": "./lib/schemas/copy-files-options.schema.json" + "entryPoint": "./lib-commonjs/plugins/CopyFilesPlugin", + "optionsSchema": "./lib-commonjs/schemas/copy-files-options.schema.json" }, { "pluginName": "delete-files-plugin", - "entryPoint": "./lib/plugins/DeleteFilesPlugin", - "optionsSchema": "./lib/schemas/delete-files-options.schema.json" + "entryPoint": "./lib-commonjs/plugins/DeleteFilesPlugin", + "optionsSchema": "./lib-commonjs/schemas/delete-files-options.schema.json" }, { "pluginName": "node-service-plugin", - "entryPoint": "./lib/plugins/NodeServicePlugin", + "entryPoint": "./lib-commonjs/plugins/NodeServicePlugin", "parameterScope": "node-service", "parameters": [ { @@ -28,13 +28,13 @@ }, { "pluginName": "run-script-plugin", - "entryPoint": "./lib/plugins/RunScriptPlugin", - "optionsSchema": "./lib/schemas/run-script-options.schema.json" + "entryPoint": "./lib-commonjs/plugins/RunScriptPlugin", + "optionsSchema": "./lib-commonjs/schemas/run-script-options.schema.json" }, { - "entryPoint": "./lib/plugins/SetEnvironmentVariablesPlugin", + "entryPoint": "./lib-commonjs/plugins/SetEnvironmentVariablesPlugin", "pluginName": "set-environment-variables-plugin", - "optionsSchema": "./lib/schemas/set-environment-variables-plugin.schema.json" + "optionsSchema": "./lib-commonjs/schemas/set-environment-variables-plugin.schema.json" } ] } diff --git a/apps/heft/package.json b/apps/heft/package.json index 4dd3f5d24d..b6412b26b2 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -21,8 +21,29 @@ "node": ">=10.13.0" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "bin": { "heft": "./bin/heft" }, diff --git a/apps/heft/src/start.ts b/apps/heft/src/start.ts index b6c5f1e939..0fa5a60c55 100644 --- a/apps/heft/src/start.ts +++ b/apps/heft/src/start.ts @@ -3,7 +3,7 @@ import { HeftCommandLineParser } from './cli/HeftCommandLineParser'; -// Launching via lib/start.js bypasses the version selector. Use that for debugging Heft. +// Launching via lib-commonjs/start.js bypasses the version selector. Use that for debugging Heft. const parser: HeftCommandLineParser = new HeftCommandLineParser(); diff --git a/apps/heft/src/startWithVersionSelector.ts b/apps/heft/src/startWithVersionSelector.ts index d4a3a3dc15..e9cc3b950f 100644 --- a/apps/heft/src/startWithVersionSelector.ts +++ b/apps/heft/src/startWithVersionSelector.ts @@ -93,9 +93,19 @@ function tryStartLocalHeft(): boolean { // installed as "/node_modules/@rushstack/heft". const heftFolder: string = path.join(projectFolder, 'node_modules', Constants.heftPackageName); - heftEntryPoint = path.join(heftFolder, 'lib', 'start.js'); - if (!fs.existsSync(heftEntryPoint)) { - throw new Error('Unable to find Heft entry point: ' + heftEntryPoint); + // Try the new output layout first, then fall back to the legacy layout + const commonJsHeftEntryPoint: string = path.join(heftFolder, 'lib-commonjs', 'start.js'); + if (!fs.existsSync(commonJsHeftEntryPoint)) { + const legacyHeftEntryPoint: string = path.join(heftFolder, 'lib', 'start.js'); + if (!fs.existsSync(legacyHeftEntryPoint)) { + throw new Error( + `Unable to find Heft entry point: ${commonJsHeftEntryPoint} or ${legacyHeftEntryPoint}` + ); + } else { + heftEntryPoint = legacyHeftEntryPoint; + } + } else { + heftEntryPoint = commonJsHeftEntryPoint; } } catch (error) { throw new Error('Error probing for local Heft version: ' + (error as Error).message); diff --git a/apps/lockfile-explorer/bin/lockfile-explorer b/apps/lockfile-explorer/bin/lockfile-explorer index 55f974d6de..9e8ae2e031 100755 --- a/apps/lockfile-explorer/bin/lockfile-explorer +++ b/apps/lockfile-explorer/bin/lockfile-explorer @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start-explorer.js'); +require('../lib-commonjs/start-explorer.js'); diff --git a/apps/lockfile-explorer/bin/lockfile-lint b/apps/lockfile-explorer/bin/lockfile-lint index 44c9dbf8bd..5f1750744d 100644 --- a/apps/lockfile-explorer/bin/lockfile-lint +++ b/apps/lockfile-explorer/bin/lockfile-lint @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start-lint.js'); +require('../lib-commonjs/start-lint.js'); diff --git a/apps/playwright-browser-tunnel/config/api-extractor.json b/apps/playwright-browser-tunnel/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/apps/playwright-browser-tunnel/config/api-extractor.json +++ b/apps/playwright-browser-tunnel/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index 62ddc1ddd3..3690226842 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -8,7 +8,30 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "apps/playwright-browser-tunnel" }, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "engines": { "node": ">=20.0.0" }, diff --git a/apps/rundown/bin/rundown b/apps/rundown/bin/rundown index aee68e8022..eef2fc2706 100644 --- a/apps/rundown/bin/rundown +++ b/apps/rundown/bin/rundown @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/rush-mcp-server/bin/mcp-server b/apps/rush-mcp-server/bin/mcp-server index aee68e8022..eef2fc2706 100755 --- a/apps/rush-mcp-server/bin/mcp-server +++ b/apps/rush-mcp-server/bin/mcp-server @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/rush-mcp-server/config/api-extractor.json b/apps/rush-mcp-server/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/apps/rush-mcp-server/config/api-extractor.json +++ b/apps/rush-mcp-server/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index 4ac7e2f125..46b0ac35f2 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -9,8 +9,29 @@ "monorepo", "server" ], - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/mcp-server.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/mcp-server.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "repository": { "type": "git", "url": "https://github.com/microsoft/rushstack.git", diff --git a/apps/rush/bin/rush b/apps/rush/bin/rush index aee68e8022..eef2fc2706 100755 --- a/apps/rush/bin/rush +++ b/apps/rush/bin/rush @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/rush/bin/rush-pnpm b/apps/rush/bin/rush-pnpm index aee68e8022..eef2fc2706 100755 --- a/apps/rush/bin/rush-pnpm +++ b/apps/rush/bin/rush-pnpm @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/rush/bin/rushx b/apps/rush/bin/rushx index aee68e8022..eef2fc2706 100755 --- a/apps/rush/bin/rushx +++ b/apps/rush/bin/rushx @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/trace-import/bin/trace-import b/apps/trace-import/bin/trace-import index aee68e8022..eef2fc2706 100644 --- a/apps/trace-import/bin/trace-import +++ b/apps/trace-import/bin/trace-import @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/apps/zipsync/bin/zipsync b/apps/zipsync/bin/zipsync index aee68e8022..eef2fc2706 100755 --- a/apps/zipsync/bin/zipsync +++ b/apps/zipsync/bin/zipsync @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/build-tests-subspace/rush-lib-test/tsconfig.json b/build-tests-subspace/rush-lib-test/tsconfig.json index a79b738019..c053aa1cd8 100644 --- a/build-tests-subspace/rush-lib-test/tsconfig.json +++ b/build-tests-subspace/rush-lib-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "module": "commonjs", diff --git a/build-tests-subspace/typescript-newest-test/package.json b/build-tests-subspace/typescript-newest-test/package.json index bf9ef7a48f..e007699d43 100644 --- a/build-tests-subspace/typescript-newest-test/package.json +++ b/build-tests-subspace/typescript-newest-test/package.json @@ -3,7 +3,30 @@ "description": "Building this project tests Heft with the newest supported TypeScript compiler version", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests-subspace/typescript-newest-test/tsconfig.json b/build-tests-subspace/typescript-newest-test/tsconfig.json index d16a11b11e..8958c41ded 100644 --- a/build-tests-subspace/typescript-newest-test/tsconfig.json +++ b/build-tests-subspace/typescript-newest-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "module": "commonjs", diff --git a/build-tests/api-documenter-test/config/api-extractor.json b/build-tests/api-documenter-test/config/api-extractor.json index 41ce0c97e4..bab654deb3 100644 --- a/build-tests/api-documenter-test/config/api-extractor.json +++ b/build-tests/api-documenter-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "newlineKind": "crlf", diff --git a/build-tests/api-documenter-test/package.json b/build-tests/api-documenter-test/package.json index 934d4ad730..94f936e858 100644 --- a/build-tests/api-documenter-test/package.json +++ b/build-tests/api-documenter-test/package.json @@ -3,8 +3,30 @@ "description": "Building this project is a regression test for api-documenter", "version": "1.0.0", "private": true, - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "test": "heft test", diff --git a/build-tests/api-extractor-d-cts-test/package.json b/build-tests/api-extractor-d-cts-test/package.json index 079c283f9f..ac19ad5090 100644 --- a/build-tests/api-extractor-d-cts-test/package.json +++ b/build-tests/api-extractor-d-cts-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.cjs", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/api-extractor-d-cts-test.d.cts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-d-cts-test.d.cts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-lib1-test/config/api-extractor.json b/build-tests/api-extractor-lib1-test/config/api-extractor.json index 5b20206dab..6f78a23add 100644 --- a/build-tests/api-extractor-lib1-test/config/api-extractor.json +++ b/build-tests/api-extractor-lib1-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/build-tests/api-extractor-lib1-test/package.json b/build-tests/api-extractor-lib1-test/package.json index 365b5a8829..d353aacc59 100644 --- a/build-tests/api-extractor-lib1-test/package.json +++ b/build-tests/api-extractor-lib1-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-lib1-test.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-lib1-test.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-lib2-test/config/api-extractor.json b/build-tests/api-extractor-lib2-test/config/api-extractor.json index ee4ca44dae..ccf3266085 100644 --- a/build-tests/api-extractor-lib2-test/config/api-extractor.json +++ b/build-tests/api-extractor-lib2-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/build-tests/api-extractor-lib2-test/package.json b/build-tests/api-extractor-lib2-test/package.json index 37b754bcdc..bb6c14d2da 100644 --- a/build-tests/api-extractor-lib2-test/package.json +++ b/build-tests/api-extractor-lib2-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-lib2-test.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-lib2-test.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-lib3-test/config/api-extractor.json b/build-tests/api-extractor-lib3-test/config/api-extractor.json index 25114fb98e..4507f00976 100644 --- a/build-tests/api-extractor-lib3-test/config/api-extractor.json +++ b/build-tests/api-extractor-lib3-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/build-tests/api-extractor-lib3-test/package.json b/build-tests/api-extractor-lib3-test/package.json index cbe9648a08..b558b70159 100644 --- a/build-tests/api-extractor-lib3-test/package.json +++ b/build-tests/api-extractor-lib3-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-lib3-test.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-lib4-test/config/api-extractor.json b/build-tests/api-extractor-lib4-test/config/api-extractor.json index 609b62dc03..6509703367 100644 --- a/build-tests/api-extractor-lib4-test/config/api-extractor.json +++ b/build-tests/api-extractor-lib4-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-lib4-test/package.json b/build-tests/api-extractor-lib4-test/package.json index 7be152c199..f9c5a093e9 100644 --- a/build-tests/api-extractor-lib4-test/package.json +++ b/build-tests/api-extractor-lib4-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-lib3-test.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-lib5-test/config/api-extractor.json b/build-tests/api-extractor-lib5-test/config/api-extractor.json index 609b62dc03..6509703367 100644 --- a/build-tests/api-extractor-lib5-test/config/api-extractor.json +++ b/build-tests/api-extractor-lib5-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-lib5-test/package.json b/build-tests/api-extractor-lib5-test/package.json index f6ae8df3aa..6bca37e4aa 100644 --- a/build-tests/api-extractor-lib5-test/package.json +++ b/build-tests/api-extractor-lib5-test/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-lib3-test.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-scenarios/package.json b/build-tests/api-extractor-scenarios/package.json index 226b4e5240..1b9ed52174 100644 --- a/build-tests/api-extractor-scenarios/package.json +++ b/build-tests/api-extractor-scenarios/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/internal/some-fake-file.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/internal/some-fake-file.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft build --clean" diff --git a/build-tests/api-extractor-test-01/config/api-extractor.json b/build-tests/api-extractor-test-01/config/api-extractor.json index e4725c5edc..7b0adce733 100644 --- a/build-tests/api-extractor-test-01/config/api-extractor.json +++ b/build-tests/api-extractor-test-01/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-test-01/package.json b/build-tests/api-extractor-test-01/package.json index 8e165a159a..d9e646fe70 100644 --- a/build-tests/api-extractor-test-01/package.json +++ b/build-tests/api-extractor-test-01/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-test-01.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-test-01.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-test-02/config/api-extractor.json b/build-tests/api-extractor-test-02/config/api-extractor.json index e4725c5edc..7b0adce733 100644 --- a/build-tests/api-extractor-test-02/config/api-extractor.json +++ b/build-tests/api-extractor-test-02/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-test-02/package.json b/build-tests/api-extractor-test-02/package.json index 5b60603109..7377778c64 100644 --- a/build-tests/api-extractor-test-02/package.json +++ b/build-tests/api-extractor-test-02/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-test-02.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-test-02.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-test-04/config/api-extractor.json b/build-tests/api-extractor-test-04/config/api-extractor.json index e4725c5edc..7b0adce733 100644 --- a/build-tests/api-extractor-test-04/config/api-extractor.json +++ b/build-tests/api-extractor-test-04/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-test-04/package.json b/build-tests/api-extractor-test-04/package.json index 958a44833c..be3b6c89fc 100644 --- a/build-tests/api-extractor-test-04/package.json +++ b/build-tests/api-extractor-test-04/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-test-04.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-test-04.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-test-05/config/api-extractor.json b/build-tests/api-extractor-test-05/config/api-extractor.json index 770ab0ff8a..26e66af1b0 100644 --- a/build-tests/api-extractor-test-05/config/api-extractor.json +++ b/build-tests/api-extractor-test-05/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-test-05/package.json b/build-tests/api-extractor-test-05/package.json index 4d707186e5..7306ba08bc 100644 --- a/build-tests/api-extractor-test-05/package.json +++ b/build-tests/api-extractor-test-05/package.json @@ -3,8 +3,29 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/api-extractor-test-05.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/api-extractor-test-05.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/eslint-7-11-test/package.json b/build-tests/eslint-7-11-test/package.json index b1e1cae39c..bc9b8dd7cc 100644 --- a/build-tests/eslint-7-11-test/package.json +++ b/build-tests/eslint-7-11-test/package.json @@ -3,7 +3,30 @@ "description": "This project contains a build test to validate ESLint 7.11.0 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/eslint-7-11-test/tsconfig.json b/build-tests/eslint-7-11-test/tsconfig.json index 8a46ac2445..8768da8a20 100644 --- a/build-tests/eslint-7-11-test/tsconfig.json +++ b/build-tests/eslint-7-11-test/tsconfig.json @@ -2,8 +2,9 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", + "declarationDir": "lib-dts", "forceConsistentCasingInFileNames": true, "declaration": true, @@ -19,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-7-7-test/package.json b/build-tests/eslint-7-7-test/package.json index 8161d5edf7..9044d46cb6 100644 --- a/build-tests/eslint-7-7-test/package.json +++ b/build-tests/eslint-7-7-test/package.json @@ -3,7 +3,30 @@ "description": "This project contains a build test to validate ESLint 7.7.0 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/eslint-7-7-test/tsconfig.json b/build-tests/eslint-7-7-test/tsconfig.json index 8a46ac2445..073f2732c4 100644 --- a/build-tests/eslint-7-7-test/tsconfig.json +++ b/build-tests/eslint-7-7-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -19,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-7-test/package.json b/build-tests/eslint-7-test/package.json index 4c84f0ed5a..d9720f8e4b 100644 --- a/build-tests/eslint-7-test/package.json +++ b/build-tests/eslint-7-test/package.json @@ -3,7 +3,30 @@ "description": "This project contains a build test to validate ESLint 7 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/eslint-7-test/tsconfig.json b/build-tests/eslint-7-test/tsconfig.json index 8a46ac2445..073f2732c4 100644 --- a/build-tests/eslint-7-test/tsconfig.json +++ b/build-tests/eslint-7-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -19,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-8-test/package.json b/build-tests/eslint-8-test/package.json index 650b4e7e59..7c3df54cd2 100644 --- a/build-tests/eslint-8-test/package.json +++ b/build-tests/eslint-8-test/package.json @@ -3,7 +3,30 @@ "description": "This project contains a build test to validate ESLint 8 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/eslint-8-test/tsconfig.json b/build-tests/eslint-8-test/tsconfig.json index 8a46ac2445..073f2732c4 100644 --- a/build-tests/eslint-8-test/tsconfig.json +++ b/build-tests/eslint-8-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -19,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-9-test/package.json b/build-tests/eslint-9-test/package.json index 3a6a4b6687..7346dd06b2 100644 --- a/build-tests/eslint-9-test/package.json +++ b/build-tests/eslint-9-test/package.json @@ -3,7 +3,30 @@ "description": "This project contains a build test to validate ESLint 9 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json index 174bda15d5..3c76f6a7ae 100644 --- a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json @@ -2,8 +2,10 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", + "forceConsistentCasingInFileNames": true, "declaration": true, "sourceMap": true, @@ -18,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json index 174bda15d5..50256c44ac 100644 --- a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json @@ -1,9 +1,10 @@ { "$schema": "http://json.schemastore.org/tsconfig", - "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", + "forceConsistentCasingInFileNames": true, "declaration": true, "sourceMap": true, @@ -18,6 +19,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/eslint-bulk-suppressions-test/tsconfig.json b/build-tests/eslint-bulk-suppressions-test/tsconfig.json index 174bda15d5..3c76f6a7ae 100644 --- a/build-tests/eslint-bulk-suppressions-test/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test/tsconfig.json @@ -2,8 +2,10 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", + "forceConsistentCasingInFileNames": true, "declaration": true, "sourceMap": true, @@ -18,6 +20,7 @@ "target": "es5", "lib": ["es5"] }, + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/run-scenarios-helpers/package.json b/build-tests/run-scenarios-helpers/package.json index a48ffe3851..cf170d1ec7 100644 --- a/build-tests/run-scenarios-helpers/package.json +++ b/build-tests/run-scenarios-helpers/package.json @@ -3,8 +3,30 @@ "description": "Helpers for the *-scenarios test projects.", "version": "1.0.0", "private": true, - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft build --clean" diff --git a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json index 2d179c7173..fd1c9386b5 100644 --- a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json +++ b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +21,7 @@ "target": "es2017", "lib": ["es2017"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/build-tests/rush-mcp-example-plugin/rush-mcp-plugin.json b/build-tests/rush-mcp-example-plugin/rush-mcp-plugin.json index 48ff8a67fb..cf875f15e3 100644 --- a/build-tests/rush-mcp-example-plugin/rush-mcp-plugin.json +++ b/build-tests/rush-mcp-example-plugin/rush-mcp-plugin.json @@ -15,10 +15,10 @@ * * The config file path will be `/common/config/rush-mcp/.json`. */ - "configFileSchema": "./lib/rush-mcp-example-plugin.schema.json", + "configFileSchema": "./lib-commonjs/rush-mcp-example-plugin.schema.json", /** * The entry point, whose default export should be a class that implements */ - "entryPoint": "./lib/index.js" + "entryPoint": "./lib-commonjs/index.js" } diff --git a/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json b/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json index 599b3beb19..3e96c008cd 100644 --- a/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json +++ b/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json @@ -2,7 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -21,6 +22,7 @@ "target": "es2017", "lib": ["es2017", "DOM"] }, + "include": ["src/**/*.ts", "src/**/*.tsx"], "exclude": ["node_modules", "lib"] } diff --git a/eslint/eslint-bulk/bin/eslint-bulk b/eslint/eslint-bulk/bin/eslint-bulk index aee68e8022..eef2fc2706 100755 --- a/eslint/eslint-bulk/bin/eslint-bulk +++ b/eslint/eslint-bulk/bin/eslint-bulk @@ -1,2 +1,2 @@ #!/usr/bin/env node -require('../lib/start.js'); +require('../lib-commonjs/start.js'); diff --git a/eslint/eslint-patch/custom-config-package-names.js b/eslint/eslint-patch/custom-config-package-names.js deleted file mode 100644 index 8897e86979..0000000000 --- a/eslint/eslint-patch/custom-config-package-names.js +++ /dev/null @@ -1 +0,0 @@ -require('./lib/custom-config-package-names'); diff --git a/eslint/eslint-patch/eslint-bulk-suppressions.js b/eslint/eslint-patch/eslint-bulk-suppressions.js deleted file mode 100644 index b1236d4e44..0000000000 --- a/eslint/eslint-patch/eslint-bulk-suppressions.js +++ /dev/null @@ -1 +0,0 @@ -require('./lib/eslint-bulk-suppressions'); diff --git a/eslint/eslint-patch/modern-module-resolution.js b/eslint/eslint-patch/modern-module-resolution.js deleted file mode 100644 index 921317824f..0000000000 --- a/eslint/eslint-patch/modern-module-resolution.js +++ /dev/null @@ -1 +0,0 @@ -require('./lib/modern-module-resolution'); diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index 2b2428efe6..cc3073ac9c 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -2,7 +2,39 @@ "name": "@rushstack/eslint-patch", "version": "1.15.0", "description": "Enhance ESLint with better support for large scale monorepos", - "main": "lib/usage.js", + "main": "./lib-commonjs/usage.js", + "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.js", + "require": "./lib-commonjs/eslint-bulk-suppressions.js" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index 61e19408a8..c2ef7d3baa 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -15,8 +15,30 @@ "packlets", "rules" ], - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index 2bf5f3da83..cace0d6fc1 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -14,8 +14,30 @@ "eslint-config", "security" ], - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index fa87538dc6..db89d173eb 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -18,8 +18,30 @@ "scale", "typescript" ], - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/heft-plugins/heft-api-extractor-plugin/heft-plugin.json b/heft-plugins/heft-api-extractor-plugin/heft-plugin.json index 6ee3f11034..54a11f5ea1 100644 --- a/heft-plugins/heft-api-extractor-plugin/heft-plugin.json +++ b/heft-plugins/heft-api-extractor-plugin/heft-plugin.json @@ -4,7 +4,7 @@ "taskPlugins": [ { "pluginName": "api-extractor-plugin", - "entryPoint": "./lib/ApiExtractorPlugin" + "entryPoint": "./lib-commonjs/ApiExtractorPlugin" } ] } diff --git a/heft-plugins/heft-dev-cert-plugin/heft-plugin.json b/heft-plugins/heft-dev-cert-plugin/heft-plugin.json index 41e46022fc..c8e7e137a5 100644 --- a/heft-plugins/heft-dev-cert-plugin/heft-plugin.json +++ b/heft-plugins/heft-dev-cert-plugin/heft-plugin.json @@ -6,11 +6,11 @@ "taskPlugins": [ { "pluginName": "trust-dev-certificate-plugin", - "entryPoint": "./lib/TrustDevCertificatePlugin" + "entryPoint": "./lib-commonjs/TrustDevCertificatePlugin" }, { "pluginName": "untrust-dev-certificate-plugin", - "entryPoint": "./lib/UntrustDevCertificatePlugin" + "entryPoint": "./lib-commonjs/UntrustDevCertificatePlugin" } ] } diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/config/api-extractor.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/config/api-extractor.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/heft-plugin.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/heft-plugin.json index 87563eea79..e94bf9c081 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/heft-plugin.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "swc-isolated-transpile-plugin", - "entryPoint": "./lib/SwcIsolatedTranspilePlugin", - "optionsSchema": "./lib/schemas/swc-isolated-transpile-plugin.schema.json" + "entryPoint": "./lib-commonjs/SwcIsolatedTranspilePlugin", + "optionsSchema": "./lib-commonjs/schemas/swc-isolated-transpile-plugin.schema.json" } ] } diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 1e956dfaa4..b251073dab 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -9,8 +9,29 @@ }, "homepage": "https://rushstack.io/pages/heft/overview/", "license": "MIT", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft-isolated-typescript-transpile-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "start": "heft test --clean --watch", diff --git a/heft-plugins/heft-jest-plugin/heft-plugin.json b/heft-plugins/heft-jest-plugin/heft-plugin.json index c43c7a8109..52c6554056 100644 --- a/heft-plugins/heft-jest-plugin/heft-plugin.json +++ b/heft-plugins/heft-jest-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "jest-plugin", - "entryPoint": "./lib/JestPlugin", - "optionsSchema": "./lib/schemas/heft-jest-plugin.schema.json", + "entryPoint": "./lib-commonjs/JestPlugin", + "optionsSchema": "./lib-commonjs/schemas/heft-jest-plugin.schema.json", "parameterScope": "jest", "parameters": [ diff --git a/heft-plugins/heft-json-schema-typings-plugin/heft-plugin.json b/heft-plugins/heft-json-schema-typings-plugin/heft-plugin.json index f9db17a5db..9d40b9828d 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/heft-plugin.json +++ b/heft-plugins/heft-json-schema-typings-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "json-schema-typings-plugin", - "entryPoint": "./lib/JsonSchemaTypingsPlugin", - "optionsSchema": "./lib/schemas/heft-json-schema-typings-plugin.schema.json" + "entryPoint": "./lib-commonjs/JsonSchemaTypingsPlugin", + "optionsSchema": "./lib-commonjs/schemas/heft-json-schema-typings-plugin.schema.json" } ] } diff --git a/heft-plugins/heft-lint-plugin/heft-plugin.json b/heft-plugins/heft-lint-plugin/heft-plugin.json index 1de6fef351..13c0b3f365 100644 --- a/heft-plugins/heft-lint-plugin/heft-plugin.json +++ b/heft-plugins/heft-lint-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "lint-plugin", - "entryPoint": "./lib/LintPlugin", - "optionsSchema": "./lib/schemas/heft-lint-plugin.schema.json", + "entryPoint": "./lib-commonjs/LintPlugin", + "optionsSchema": "./lib-commonjs/schemas/heft-lint-plugin.schema.json", "parameterScope": "lint", "parameters": [ diff --git a/heft-plugins/heft-localization-typings-plugin/heft-plugin.json b/heft-plugins/heft-localization-typings-plugin/heft-plugin.json index 3d1d82ac7f..cae2992977 100644 --- a/heft-plugins/heft-localization-typings-plugin/heft-plugin.json +++ b/heft-plugins/heft-localization-typings-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "localization-typings-plugin", - "entryPoint": "./lib/LocalizationTypingsPlugin", - "optionsSchema": "./lib/schemas/heft-localization-typings-plugin.schema.json" + "entryPoint": "./lib-commonjs/LocalizationTypingsPlugin", + "optionsSchema": "./lib-commonjs/schemas/heft-localization-typings-plugin.schema.json" } ] } diff --git a/heft-plugins/heft-rspack-plugin/config/api-extractor.json b/heft-plugins/heft-rspack-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/heft-plugins/heft-rspack-plugin/config/api-extractor.json +++ b/heft-plugins/heft-rspack-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/heft-plugins/heft-rspack-plugin/heft-plugin.json b/heft-plugins/heft-rspack-plugin/heft-plugin.json index a8ce14984a..cec21c0dfc 100644 --- a/heft-plugins/heft-rspack-plugin/heft-plugin.json +++ b/heft-plugins/heft-rspack-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "rspack-plugin", - "entryPoint": "./lib/RspackPlugin", - "optionsSchema": "./lib/schemas/heft-rspack-plugin.schema.json", + "entryPoint": "./lib-commonjs/RspackPlugin", + "optionsSchema": "./lib-commonjs/schemas/heft-rspack-plugin.schema.json", "parameterScope": "rspack", "parameters": [ diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 710ffd5188..577e774ec1 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -8,8 +8,29 @@ "directory": "heft-plugins/heft-rspack-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft-rspack-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft-rspack-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/heft-plugins/heft-sass-load-themed-styles-plugin/heft-plugin.json b/heft-plugins/heft-sass-load-themed-styles-plugin/heft-plugin.json index ef11936b17..ad7de05949 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/heft-plugin.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/heft-plugin.json @@ -4,7 +4,7 @@ "taskPlugins": [ { "pluginName": "sass-load-themed-styles-plugin", - "entryPoint": "./lib/SassLoadThemedStylesPlugin.js" + "entryPoint": "./lib-commonjs/SassLoadThemedStylesPlugin.js" } ] } diff --git a/heft-plugins/heft-sass-plugin/heft-plugin.json b/heft-plugins/heft-sass-plugin/heft-plugin.json index ab4d21de8f..f077231c0d 100644 --- a/heft-plugins/heft-sass-plugin/heft-plugin.json +++ b/heft-plugins/heft-sass-plugin/heft-plugin.json @@ -4,7 +4,7 @@ "taskPlugins": [ { "pluginName": "sass-plugin", - "entryPoint": "./lib/SassPlugin.js" + "entryPoint": "./lib-commonjs/SassPlugin.js" } ] } diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 6b5685b48f..a0efa8c771 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -15,8 +15,30 @@ "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" }, - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "peerDependencies": { "@rushstack/heft": "^1.1.14" }, diff --git a/heft-plugins/heft-serverless-stack-plugin/heft-plugin.json b/heft-plugins/heft-serverless-stack-plugin/heft-plugin.json index 7b3beee1a0..ff9ecc11ae 100644 --- a/heft-plugins/heft-serverless-stack-plugin/heft-plugin.json +++ b/heft-plugins/heft-serverless-stack-plugin/heft-plugin.json @@ -4,7 +4,7 @@ "taskPlugins": [ { "pluginName": "serverless-stack-plugin", - "entryPoint": "./lib/ServerlessStackPlugin", + "entryPoint": "./lib-commonjs/ServerlessStackPlugin", "parameterScope": "serverless-stack", "parameters": [ diff --git a/heft-plugins/heft-storybook-plugin/heft-plugin.json b/heft-plugins/heft-storybook-plugin/heft-plugin.json index c961ec466f..107eca91df 100644 --- a/heft-plugins/heft-storybook-plugin/heft-plugin.json +++ b/heft-plugins/heft-storybook-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "storybook-plugin", - "entryPoint": "./lib/StorybookPlugin", - "optionsSchema": "./lib/schemas/storybook.schema.json", + "entryPoint": "./lib-commonjs/StorybookPlugin", + "optionsSchema": "./lib-commonjs/schemas/storybook.schema.json", "parameterScope": "storybook", "parameters": [ diff --git a/heft-plugins/heft-typescript-plugin/config/api-extractor.json b/heft-plugins/heft-typescript-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/heft-plugins/heft-typescript-plugin/config/api-extractor.json +++ b/heft-plugins/heft-typescript-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/heft-plugins/heft-typescript-plugin/heft-plugin.json b/heft-plugins/heft-typescript-plugin/heft-plugin.json index 8b0bdcbe4a..f4603ba106 100644 --- a/heft-plugins/heft-typescript-plugin/heft-plugin.json +++ b/heft-plugins/heft-typescript-plugin/heft-plugin.json @@ -4,7 +4,7 @@ "taskPlugins": [ { "pluginName": "typescript-plugin", - "entryPoint": "./lib/TypeScriptPlugin" + "entryPoint": "./lib-commonjs/TypeScriptPlugin" } ] } diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index 5a073a9e90..eeb85a1fc0 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -8,8 +8,29 @@ "directory": "heft-plugins/heft-typescript-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft-typescript-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft-typescript-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft test --clean", diff --git a/heft-plugins/heft-webpack4-plugin/config/api-extractor.json b/heft-plugins/heft-webpack4-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/heft-plugins/heft-webpack4-plugin/config/api-extractor.json +++ b/heft-plugins/heft-webpack4-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/heft-plugins/heft-webpack4-plugin/heft-plugin.json b/heft-plugins/heft-webpack4-plugin/heft-plugin.json index 34b6f65442..32f5ce328d 100644 --- a/heft-plugins/heft-webpack4-plugin/heft-plugin.json +++ b/heft-plugins/heft-webpack4-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "webpack4-plugin", - "entryPoint": "./lib/Webpack4Plugin", - "optionsSchema": "./lib/schemas/heft-webpack4-plugin.schema.json", + "entryPoint": "./lib-commonjs/Webpack4Plugin", + "optionsSchema": "./lib-commonjs/schemas/heft-webpack4-plugin.schema.json", "parameterScope": "webpack4", "parameters": [ diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index 0b9fa7e036..d196d71610 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -8,8 +8,30 @@ "directory": "heft-plugins/heft-webpack4-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/heft-plugins/heft-webpack5-plugin/config/api-extractor.json b/heft-plugins/heft-webpack5-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/heft-plugins/heft-webpack5-plugin/config/api-extractor.json +++ b/heft-plugins/heft-webpack5-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/heft-plugins/heft-webpack5-plugin/heft-plugin.json b/heft-plugins/heft-webpack5-plugin/heft-plugin.json index 191a30e7cc..165299e71d 100644 --- a/heft-plugins/heft-webpack5-plugin/heft-plugin.json +++ b/heft-plugins/heft-webpack5-plugin/heft-plugin.json @@ -4,8 +4,8 @@ "taskPlugins": [ { "pluginName": "webpack5-plugin", - "entryPoint": "./lib/Webpack5Plugin", - "optionsSchema": "./lib/schemas/heft-webpack5-plugin.schema.json", + "entryPoint": "./lib-commonjs/Webpack5Plugin", + "optionsSchema": "./lib-commonjs/schemas/heft-webpack5-plugin.schema.json", "parameterScope": "webpack5", "parameters": [ diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index 7f752d2b2e..a23aa8fae1 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -8,8 +8,29 @@ "directory": "heft-plugins/heft-webpack5-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft-webpack5-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft-webpack5-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/libraries/api-extractor-model/config/api-extractor.json b/libraries/api-extractor-model/config/api-extractor.json index aa9d8f810f..05c675a860 100644 --- a/libraries/api-extractor-model/config/api-extractor.json +++ b/libraries/api-extractor-model/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 7281c014d5..11865f355a 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -8,8 +8,29 @@ "directory": "libraries/api-extractor-model" }, "homepage": "https://api-extractor.com", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rollup.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rollup.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/libraries/credential-cache/config/api-extractor.json b/libraries/credential-cache/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/credential-cache/config/api-extractor.json +++ b/libraries/credential-cache/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index b479c2ea4d..53d438923f 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/credential-cache", "version": "0.1.11", "description": "Cross-platform functionality to manage cached credentials.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/credential-cache.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/credential-cache.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/debug-certificate-manager/config/api-extractor.json b/libraries/debug-certificate-manager/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/debug-certificate-manager/config/api-extractor.json +++ b/libraries/debug-certificate-manager/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index d6a0b97e47..b814c17a74 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/debug-certificate-manager", "version": "1.6.14", "description": "Cross-platform functionality to create debug ssl certificates.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/debug-certificate-manager.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/debug-certificate-manager.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/heft-config-file/config/api-extractor.json b/libraries/heft-config-file/config/api-extractor.json index 34fb7776c9..1ddb4758d0 100644 --- a/libraries/heft-config-file/config/api-extractor.json +++ b/libraries/heft-config-file/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index d886cd0bed..a1feb686ac 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -11,8 +11,29 @@ "node": ">=10.13.0" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/heft-config-file.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/heft-config-file.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/libraries/localization-utilities/config/api-extractor.json b/libraries/localization-utilities/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/localization-utilities/config/api-extractor.json +++ b/libraries/localization-utilities/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index c6119d7630..458f5912af 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/localization-utilities", "version": "0.14.14", "description": "This plugin contains some useful functions for localization.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/localization-utilities.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/localization-utilities.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/libraries/lookup-by-path/config/api-extractor.json b/libraries/lookup-by-path/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/lookup-by-path/config/api-extractor.json +++ b/libraries/lookup-by-path/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index 279ba5d862..bde7628678 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/lookup-by-path", "version": "0.8.16", "description": "Strongly typed trie data structure for path and URL-like strings.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/lookup-by-path.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/lookup-by-path.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "keywords": [ "trie", "path", diff --git a/libraries/module-minifier/config/api-extractor.json b/libraries/module-minifier/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/module-minifier/config/api-extractor.json +++ b/libraries/module-minifier/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index 2df226cb84..e05b2a5ad7 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/module-minifier", "version": "0.8.14", "description": "Wrapper for terser to support bulk parallel minification.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/module-minifier.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/module-minifier.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/node-core-library/config/api-extractor.json b/libraries/node-core-library/config/api-extractor.json index ce0b9d7f01..1494cc8b1b 100644 --- a/libraries/node-core-library/config/api-extractor.json +++ b/libraries/node-core-library/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index 0417eb08fe..b058192f60 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/node-core-library", "version": "5.19.1", "description": "Core libraries that every NodeJS toolchain project should use", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/node-core-library.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/node-core-library.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index 949828fa1d..52b4bfc6ad 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -8,8 +8,30 @@ "directory": "libraries/npm-check-fork" }, "homepage": "https://github.com/dylang/npm-check", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/libraries/npm-check-fork/tsconfig.json b/libraries/npm-check-fork/tsconfig.json index f9b633dca5..859b2901d5 100644 --- a/libraries/npm-check-fork/tsconfig.json +++ b/libraries/npm-check-fork/tsconfig.json @@ -4,6 +4,7 @@ "declaration": true, "declarationMap": true, "emitDeclarationOnly": false, - "outDir": "./lib" + "outDir": "./lib-commonjs", + "declarationDir": "./lib-dts" } } diff --git a/libraries/operation-graph/config/api-extractor.json b/libraries/operation-graph/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/operation-graph/config/api-extractor.json +++ b/libraries/operation-graph/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index eec4fe16ad..0a1387655d 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/operation-graph", "version": "0.5.7", "description": "Library for managing and executing operations in a directed acyclic graph.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/operation-graph.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/operation-graph.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/package-deps-hash/config/api-extractor.json b/libraries/package-deps-hash/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/package-deps-hash/config/api-extractor.json +++ b/libraries/package-deps-hash/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index d9740cd4e1..0f6d3b4325 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/package-deps-hash", "version": "4.6.8", "description": "", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/package-deps-hash.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/package-deps-hash.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/libraries/package-extractor/config/api-extractor.json b/libraries/package-extractor/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/package-extractor/config/api-extractor.json +++ b/libraries/package-extractor/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/package-extractor/config/typescript.json b/libraries/package-extractor/config/typescript.json deleted file mode 100644 index 587de5fc0f..0000000000 --- a/libraries/package-extractor/config/typescript.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", - - "extends": "local-node-rig/profiles/default/config/typescript.json", - - "additionalModuleKindsToEmit": [ - { - "moduleKind": "esnext", - "outFolderName": "lib-esnext" - } - ] -} diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 255011c182..0551fb4047 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/package-extractor", "version": "0.11.16", "description": "A library for bundling selected files and dependencies into a deployable package.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/package-extractor.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/package-extractor.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "repository": { "type": "git", "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/package-extractor/webpack.config.js b/libraries/package-extractor/webpack.config.js index 89a6ddf1d8..4fc75fa8fd 100644 --- a/libraries/package-extractor/webpack.config.js +++ b/libraries/package-extractor/webpack.config.js @@ -2,7 +2,7 @@ const webpack = require('webpack'); const { PreserveDynamicRequireWebpackPlugin } = require('@rushstack/webpack-preserve-dynamic-require-plugin'); -const { CREATE_LINKS_SCRIPT_FILENAME, SCRIPTS_FOLDER_PATH } = require('./lib/PathConstants'); +const { CREATE_LINKS_SCRIPT_FILENAME, SCRIPTS_FOLDER_PATH } = require('./lib-commonjs/PathConstants'); module.exports = () => { return { diff --git a/libraries/problem-matcher/config/api-extractor.json b/libraries/problem-matcher/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/problem-matcher/config/api-extractor.json +++ b/libraries/problem-matcher/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index 88dc8f922b..e2246bff54 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/problem-matcher", "version": "0.1.1", "description": "A library for parsing VS Code style problem matchers", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/problem-matcher.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/problem-matcher.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/rig-package/config/api-extractor.json b/libraries/rig-package/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/rig-package/config/api-extractor.json +++ b/libraries/rig-package/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 8b1bf298ed..25015a8bda 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/rig-package", "version": "0.6.0", "description": "A system for sharing tool configurations between projects without duplicating config files.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rig-package.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rig-package.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/rush-pnpm-kit-v10/config/api-extractor.json b/libraries/rush-pnpm-kit-v10/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/rush-pnpm-kit-v10/config/api-extractor.json +++ b/libraries/rush-pnpm-kit-v10/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index bb8112fe73..036cb8c74d 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -3,8 +3,29 @@ "version": "0.1.7", "description": "rush pnpm kit v10", "license": "MIT", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rush-pnpm-kit-v10.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rush-pnpm-kit-v10.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean", diff --git a/libraries/rush-pnpm-kit-v8/config/api-extractor.json b/libraries/rush-pnpm-kit-v8/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/rush-pnpm-kit-v8/config/api-extractor.json +++ b/libraries/rush-pnpm-kit-v8/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index 0b5d6364cb..4fc5c3e06d 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -3,8 +3,29 @@ "version": "0.1.7", "description": "rush pnpm kit v8", "license": "MIT", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rush-pnpm-kit-v8.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rush-pnpm-kit-v8.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean", diff --git a/libraries/rush-pnpm-kit-v9/config/api-extractor.json b/libraries/rush-pnpm-kit-v9/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/rush-pnpm-kit-v9/config/api-extractor.json +++ b/libraries/rush-pnpm-kit-v9/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index 6c9bf5b556..eb0b1d643e 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -3,8 +3,29 @@ "version": "0.1.7", "description": "rush pnpm kit v9", "license": "MIT", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rush-pnpm-kit-v9.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rush-pnpm-kit-v9.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean", diff --git a/libraries/rushell/config/api-extractor.json b/libraries/rushell/config/api-extractor.json index 3e7ff571ed..4ec2e42999 100644 --- a/libraries/rushell/config/api-extractor.json +++ b/libraries/rushell/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rushell/package.json b/libraries/rushell/package.json index 9721b1fd44..095681402b 100644 --- a/libraries/rushell/package.json +++ b/libraries/rushell/package.json @@ -7,8 +7,29 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/rushell" }, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/rushell.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/rushell.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "start": "heft test --watch", diff --git a/libraries/stream-collator/config/api-extractor.json b/libraries/stream-collator/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/stream-collator/config/api-extractor.json +++ b/libraries/stream-collator/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 3ef54c0c5f..eff4c171e2 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -7,8 +7,29 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/stream-collator" }, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/stream-collator.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/stream-collator.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/libraries/terminal/config/api-extractor.json b/libraries/terminal/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/terminal/config/api-extractor.json +++ b/libraries/terminal/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index fff5c52981..ee5b93dfe3 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/terminal", "version": "0.21.0", "description": "User interface primitives for console applications", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/terminal.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/terminal.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/tree-pattern/config/api-extractor.json b/libraries/tree-pattern/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/tree-pattern/config/api-extractor.json +++ b/libraries/tree-pattern/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index 47300639e1..df3d810fd3 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/tree-pattern", "version": "0.3.4", "description": "A fast, lightweight pattern matcher for tree structures such as an Abstract Syntax Tree (AST)", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/tree-pattern.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/tree-pattern.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/libraries/ts-command-line/config/api-extractor.json b/libraries/ts-command-line/config/api-extractor.json index 7454dd5c1d..d96b3e7a9a 100644 --- a/libraries/ts-command-line/config/api-extractor.json +++ b/libraries/ts-command-line/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index 0ed7d4c8b6..cbfb2918bc 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -7,8 +7,29 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/ts-command-line" }, - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/ts-command-line.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/ts-command-line.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/libraries/typings-generator/config/api-extractor.json b/libraries/typings-generator/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/typings-generator/config/api-extractor.json +++ b/libraries/typings-generator/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index 316b4382cd..6ad8e0b70b 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -7,8 +7,29 @@ "typings", "generate" ], - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/typings-generator.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/typings-generator.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/libraries/worker-pool/config/api-extractor.json b/libraries/worker-pool/config/api-extractor.json index 996e271d3d..5dbfda704f 100644 --- a/libraries/worker-pool/config/api-extractor.json +++ b/libraries/worker-pool/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index 78d60122f1..5384c06942 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/worker-pool", "version": "0.6.14", "description": "Lightweight worker pool using NodeJS worker_threads", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/worker-pool.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/worker-pool.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", diff --git a/repo-scripts/doc-plugin-rush-stack/package.json b/repo-scripts/doc-plugin-rush-stack/package.json index 422186b3fd..81ea85c2f0 100644 --- a/repo-scripts/doc-plugin-rush-stack/package.json +++ b/repo-scripts/doc-plugin-rush-stack/package.json @@ -3,8 +3,30 @@ "version": "1.0.0", "private": true, "description": "API Documenter plugin used with the rushstack.io website", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rigs/decoupled-local-node-rig/profiles/default/config/rush-project.json b/rigs/decoupled-local-node-rig/profiles/default/config/rush-project.json index b3e191a2bb..cf4f521457 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/config/rush-project.json +++ b/rigs/decoupled-local-node-rig/profiles/default/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib-esnext"] + "outputFolderNames": [".heft", "lib-dts", "lib-esm"] }, { "operationName": "_phase:test", diff --git a/rigs/decoupled-local-node-rig/profiles/default/config/typescript.json b/rigs/decoupled-local-node-rig/profiles/default/config/typescript.json index c86f0a36a0..19141b1662 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/config/typescript.json +++ b/rigs/decoupled-local-node-rig/profiles/default/config/typescript.json @@ -3,5 +3,12 @@ "extends": "@rushstack/heft-node-rig/profiles/default/config/typescript.json", - "onlyResolveSymlinksInNodeModules": true + "onlyResolveSymlinksInNodeModules": true, + + "additionalModuleKindsToEmit": [ + { + "moduleKind": "esnext", + "outFolderName": "lib-esm" + } + ] } diff --git a/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json b/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json index dff2ef99dc..a70f860525 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json +++ b/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json @@ -8,11 +8,12 @@ "isolatedModules": true, "target": "es2018", - "outDir": "../../../../lib", - "rootDir": "../../../../src", + "outDir": "${configDir}/lib-commonjs", + "declarationDir": "${configDir}/lib-dts", + "rootDir": "${configDir}/src", "types": ["heft-jest", "node"], - "typeRoots": ["../../../../node_modules/@types", "../../node_modules/@types"] + "typeRoots": ["${configDir}/node_modules/@types", "../../node_modules/@types"] }, - "include": ["../../../../src/**/*.ts", "../../../../src/**/*.tsx"] + "include": ["${configDir}/src/**/*.ts", "${configDir}/src/**/*.tsx"] } diff --git a/rigs/local-node-rig/profiles/default/config/rush-project.json b/rigs/local-node-rig/profiles/default/config/rush-project.json index b3e191a2bb..cf4f521457 100644 --- a/rigs/local-node-rig/profiles/default/config/rush-project.json +++ b/rigs/local-node-rig/profiles/default/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib-esnext"] + "outputFolderNames": [".heft", "lib-dts", "lib-esm"] }, { "operationName": "_phase:test", diff --git a/rigs/local-node-rig/profiles/default/config/typescript.json b/rigs/local-node-rig/profiles/default/config/typescript.json index c86f0a36a0..19141b1662 100644 --- a/rigs/local-node-rig/profiles/default/config/typescript.json +++ b/rigs/local-node-rig/profiles/default/config/typescript.json @@ -3,5 +3,12 @@ "extends": "@rushstack/heft-node-rig/profiles/default/config/typescript.json", - "onlyResolveSymlinksInNodeModules": true + "onlyResolveSymlinksInNodeModules": true, + + "additionalModuleKindsToEmit": [ + { + "moduleKind": "esnext", + "outFolderName": "lib-esm" + } + ] } diff --git a/rigs/local-node-rig/profiles/default/tsconfig-base.json b/rigs/local-node-rig/profiles/default/tsconfig-base.json index 418d1448e6..a70f860525 100644 --- a/rigs/local-node-rig/profiles/default/tsconfig-base.json +++ b/rigs/local-node-rig/profiles/default/tsconfig-base.json @@ -8,7 +8,8 @@ "isolatedModules": true, "target": "es2018", - "outDir": "${configDir}/lib", + "outDir": "${configDir}/lib-commonjs", + "declarationDir": "${configDir}/lib-dts", "rootDir": "${configDir}/src", "types": ["heft-jest", "node"], diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/config/api-extractor.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/config/api-extractor.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" 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 533fe23aa7..6c34426f2d 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -8,8 +8,30 @@ "directory": "rush-plugins/rush-amazon-s3-build-cache-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/config/api-extractor.json b/rush-plugins/rush-azure-storage-build-cache-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/config/api-extractor.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" 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 15b933f37f..4f42dd4281 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -8,8 +8,30 @@ "directory": "heft-plugins/heft-webpack5-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 4f94ed753c..722d1ebd51 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -3,14 +3,36 @@ "version": "5.168.0", "description": "Rush plugin that provides a --set-cache-only command flag to populate the cache from content on disk.", "license": "MIT", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "repository": { "url": "https://github.com/microsoft/rushstack", "type": "git", "directory": "rush-plugins/rush-bridge-cache-plugin" }, "homepage": "https://rushjs.io", - "types": "lib/index.d.ts", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft test --clean", "start": "heft test --clean --watch", diff --git a/rush-plugins/rush-buildxl-graph-plugin/config/api-extractor.json b/rush-plugins/rush-buildxl-graph-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/config/api-extractor.json +++ b/rush-plugins/rush-buildxl-graph-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index a24c2f5967..e666204754 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -8,8 +8,30 @@ "directory": "rush-plugins/rush-buildxl-graph-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 3dfe5400ad..4d5ab8ba43 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -8,8 +8,30 @@ "directory": "rush-plugins/rush-http-build-cache-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index 91936b9146..f3a200bf51 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -8,8 +8,30 @@ "directory": "rush-plugins/rush-mcp-docs-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-mcp-docs-plugin/rush-mcp-plugin.json b/rush-plugins/rush-mcp-docs-plugin/rush-mcp-plugin.json index 61d2750e16..518d2beeb5 100644 --- a/rush-plugins/rush-mcp-docs-plugin/rush-mcp-plugin.json +++ b/rush-plugins/rush-mcp-docs-plugin/rush-mcp-plugin.json @@ -15,10 +15,10 @@ * * The config file path will be `/common/config/rush-mcp/.json`. */ - // "configFileSchema": "./lib/rush-mcp-example-plugin.schema.json", + // "configFileSchema": "./lib-commonjs/rush-mcp-example-plugin.schema.json", /** * The entry point, whose default export should be a class that implements */ - "entryPoint": "./lib/index.js" + "entryPoint": "./lib-commonjs/index.js" } diff --git a/rush-plugins/rush-redis-cobuild-plugin/config/api-extractor.json b/rush-plugins/rush-redis-cobuild-plugin/config/api-extractor.json index 74590d3c4f..05559c8de5 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/config/api-extractor.json +++ b/rush-plugins/rush-redis-cobuild-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "../../../common/reviews/api" diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index 5de0d9009a..da65967262 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -8,8 +8,30 @@ "directory": "rush-plugins/rush-redis-cobuild-plugin" }, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/rush-plugins/rush-resolver-cache-plugin/config/api-extractor.json b/rush-plugins/rush-resolver-cache-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/rush-plugins/rush-resolver-cache-plugin/config/api-extractor.json +++ b/rush-plugins/rush-resolver-cache-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 379c152119..e929d797a7 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -9,6 +9,7 @@ "directory": "rush-plugins/rush-resolver-cache-plugin" }, "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/rush-resolver-cache-plugin.d.ts", "scripts": { "build": "heft test --clean", @@ -30,15 +31,24 @@ }, "exports": { ".": { - "require": "./lib/index.js", + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", "types": "./dist/rush-resolver-cache-plugin.d.ts" }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, "./package.json": "./package.json" }, "typesVersions": { "*": { ".": [ "dist/rush-resolver-cache-plugin.d.ts" + ], + "lib/*": [ + "lib-dts/*" ] } } diff --git a/rush-plugins/rush-serve-plugin/config/api-extractor.json b/rush-plugins/rush-serve-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/rush-plugins/rush-serve-plugin/config/api-extractor.json +++ b/rush-plugins/rush-serve-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 12470ccc61..bc710961e9 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -9,6 +9,7 @@ "directory": "rush-plugins/rush-serve-plugin" }, "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "types": "dist/index.d.ts", "scripts": { "build": "heft test --clean", @@ -40,11 +41,17 @@ }, "exports": { ".": { - "require": "./lib/index.js", + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", "types": "./dist/rush-serve-plugin.d.ts" }, "./api": { - "types": "./lib/api.types.d.ts" + "types": "./lib-dts/api.types.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" }, "./package.json": "./package.json" }, @@ -54,7 +61,10 @@ "dist/rush-serve-plugin.d.ts" ], "api": [ - "lib/api.types.d.ts" + "lib-dts/api.types.d.ts" + ], + "lib/*": [ + "lib-dts/*" ] } } diff --git a/webpack/hashed-folder-copy-plugin/config/api-extractor.json b/webpack/hashed-folder-copy-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/hashed-folder-copy-plugin/config/api-extractor.json +++ b/webpack/hashed-folder-copy-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index 296dfc95dd..d00eb5fa88 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -3,18 +3,21 @@ "version": "1.2.14", "description": "Webpack plugin for copying a folder to the output directory with a hash in the folder name.", "typings": "dist/hashed-folder-copy-plugin.d.ts", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "exports": { ".": { + "import": "./lib-esm/index.js", "types": "./dist/hashed-folder-copy-plugin.d.ts", - "default": "./lib/index.js" + "require": "./lib-commonjs/index.js" }, "./ambientTypes": { "types": "./dist/ambientTypes.d.ts" }, "./lib/*": { - "types": "./lib/*.d.ts", - "default": "./lib/*.js" + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" }, "./package.json": "./package.json" }, @@ -25,6 +28,9 @@ ], "ambientTypes": [ "./dist/ambientTypes.d.ts" + ], + "lib/*": [ + "lib-dts/*" ] } }, diff --git a/webpack/loader-load-themed-styles/config/api-extractor.json b/webpack/loader-load-themed-styles/config/api-extractor.json index dcfa9cfc5b..c1ce1e4d74 100644 --- a/webpack/loader-load-themed-styles/config/api-extractor.json +++ b/webpack/loader-load-themed-styles/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index e7cd564e5f..d629060617 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -2,8 +2,30 @@ "name": "@microsoft/loader-load-themed-styles", "version": "2.1.125", "description": "This simple loader wraps the loading of CSS in script equivalent to `require('load-themed-styles').loadStyles( /* css text */ )`. It is designed to be a replacement for style-loader.", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index d72a874bb2..2010a09763 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -2,8 +2,30 @@ "name": "@rushstack/loader-raw-script", "version": "1.5.14", "description": "", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/preserve-dynamic-require-plugin/config/api-extractor.json b/webpack/preserve-dynamic-require-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/preserve-dynamic-require-plugin/config/api-extractor.json +++ b/webpack/preserve-dynamic-require-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index 555ed42837..ee24240b0c 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack-preserve-dynamic-require-plugin", "version": "0.11.125", "description": "This plugin tells webpack to leave dynamic calls to \"require\" as-is instead of trying to bundle them.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack-preserve-dynamic-require-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/set-webpack-public-path-plugin/config/api-extractor.json b/webpack/set-webpack-public-path-plugin/config/api-extractor.json index 31010bc626..f18620460f 100644 --- a/webpack/set-webpack-public-path-plugin/config/api-extractor.json +++ b/webpack/set-webpack-public-path-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 261b00c49e..c04e6f961a 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/set-webpack-public-path-plugin", "version": "5.2.15", "description": "This plugin sets the webpack public path at runtime.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/set-webpack-public-path-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/set-webpack-public-path-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack-deep-imports-plugin/config/api-extractor.json b/webpack/webpack-deep-imports-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack-deep-imports-plugin/config/api-extractor.json +++ b/webpack/webpack-deep-imports-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack-deep-imports-plugin/package.json b/webpack/webpack-deep-imports-plugin/package.json index 2f33c47ede..9b9e264729 100644 --- a/webpack/webpack-deep-imports-plugin/package.json +++ b/webpack/webpack-deep-imports-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack-deep-imports-plugin", "version": "0.0.0", "description": "This plugin creates a bundle and commonJS files in a 'lib' folder mirroring modules in another 'lib' folder.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack-deep-imports-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack-deep-imports-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack-embedded-dependencies-plugin/config/api-extractor.json b/webpack/webpack-embedded-dependencies-plugin/config/api-extractor.json index 31010bc626..f18620460f 100644 --- a/webpack/webpack-embedded-dependencies-plugin/config/api-extractor.json +++ b/webpack/webpack-embedded-dependencies-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 451cfd01e0..bee013a15a 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack-embedded-dependencies-plugin", "version": "0.3.15", "description": "This plugin analyzes bundled dependencies from Node Modules for use with Component Governance and License Scanning.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack-embedded-dependencies-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack-embedded-dependencies-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack-plugin-utilities/config/api-extractor.json b/webpack/webpack-plugin-utilities/config/api-extractor.json index 31010bc626..f18620460f 100644 --- a/webpack/webpack-plugin-utilities/config/api-extractor.json +++ b/webpack/webpack-plugin-utilities/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 38744edcf9..e87760ef73 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack-plugin-utilities", "version": "0.5.14", "description": "This plugin sets the webpack public path at runtime.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack-plugin-utilities.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack-plugin-utilities.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack-workspace-resolve-plugin/config/api-extractor.json b/webpack/webpack-workspace-resolve-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack-workspace-resolve-plugin/config/api-extractor.json +++ b/webpack/webpack-workspace-resolve-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index 438923a23c..3b498cce70 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack-workspace-resolve-plugin", "version": "0.5.14", "description": "This plugin leverages workspace-level metadata to greatly accelerate module resolution.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack-workspace-resolve-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack-workspace-resolve-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack4-localization-plugin/config/api-extractor.json b/webpack/webpack4-localization-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack4-localization-plugin/config/api-extractor.json +++ b/webpack/webpack4-localization-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index 84fbc33742..ed3b7c9847 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack4-localization-plugin", "version": "0.19.14", "description": "This plugin facilitates localization with Webpack.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack4-localization-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack4-localization-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack4-module-minifier-plugin/config/api-extractor.json b/webpack/webpack4-module-minifier-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack4-module-minifier-plugin/config/api-extractor.json +++ b/webpack/webpack4-module-minifier-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index 99e65c4e47..41ff43ed3f 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack4-module-minifier-plugin", "version": "0.14.14", "description": "This plugin splits minification of webpack compilations into smaller units.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack4-module-minifier-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack4-module-minifier-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack5-load-themed-styles-loader/config/api-extractor.json b/webpack/webpack5-load-themed-styles-loader/config/api-extractor.json index dcfa9cfc5b..c1ce1e4d74 100644 --- a/webpack/webpack5-load-themed-styles-loader/config/api-extractor.json +++ b/webpack/webpack5-load-themed-styles-loader/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index e6651ee351..36515e707a 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -2,8 +2,30 @@ "name": "@microsoft/webpack5-load-themed-styles-loader", "version": "0.3.14", "description": "This simple loader wraps the loading of CSS in script equivalent to `require('load-themed-styles').loadStyles( /* css text */ )`. It is designed to be a replacement for style-loader.", - "main": "lib/index.js", - "typings": "lib/index.d.ts", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack5-localization-plugin/config/api-extractor.json b/webpack/webpack5-localization-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack5-localization-plugin/config/api-extractor.json +++ b/webpack/webpack5-localization-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 2304fbeaa6..f6991b3dc7 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack5-localization-plugin", "version": "0.15.14", "description": "This plugin facilitates localization with Webpack.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack5-localization-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack5-localization-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", diff --git a/webpack/webpack5-module-minifier-plugin/config/api-extractor.json b/webpack/webpack5-module-minifier-plugin/config/api-extractor.json index fba8a2992f..1d56fc29ae 100644 --- a/webpack/webpack5-module-minifier-plugin/config/api-extractor.json +++ b/webpack/webpack5-module-minifier-plugin/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index 4b98748458..4f1da7e07d 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -2,8 +2,29 @@ "name": "@rushstack/webpack5-module-minifier-plugin", "version": "5.7.0", "description": "This plugin splits minification of webpack compilations into smaller units.", - "main": "lib/index.js", + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", "typings": "dist/webpack5-module-minifier-plugin.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./dist/webpack5-module-minifier-plugin.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "type": "git", From 0b04151299fe1771182ef73aa4e549b991ccfca0 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Mon, 16 Feb 2026 23:31:26 -0800 Subject: [PATCH 03/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- apps/cpu-profile-summarizer/package.json | 15 ++++++++++++ apps/lockfile-explorer/package.json | 15 ++++++++++++ apps/rundown/package.json | 15 ++++++++++++ apps/rush/package.json | 15 ++++++++++++ apps/trace-import/package.json | 15 ++++++++++++ apps/zipsync/package.json | 24 +++++++++++++++++++ .../rush-lib-test/package.json | 15 ++++++++++++ .../rush-sdk-test/package.json | 15 ++++++++++++ .../api-documenter-scenarios/package.json | 15 ++++++++++++ .../config/api-extractor.json | 2 +- .../config/api-extractor.json | 2 +- .../api-extractor-d-mts-test/package.json | 16 ++++++++++++- .../api-extractor-test-03/package.json | 24 +++++++++++++++++++ .../package.json | 15 ++++++++++++ .../localization-plugin-test-01/package.json | 15 ++++++++++++ .../localization-plugin-test-02/package.json | 15 ++++++++++++ .../localization-plugin-test-03/package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ .../rush-mcp-example-plugin/package.json | 24 +++++++++++++++++++ .../package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ eslint/eslint-bulk/package.json | 18 ++++++++++++-- .../heft-api-extractor-plugin/package.json | 15 ++++++++++++ .../heft-dev-cert-plugin/package.json | 15 ++++++++++++ heft-plugins/heft-jest-plugin/package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ heft-plugins/heft-lint-plugin/package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ .../package.json | 15 ++++++++++++ .../heft-serverless-stack-plugin/package.json | 15 ++++++++++++ .../heft-storybook-plugin/package.json | 15 ++++++++++++ repo-scripts/repo-toolbox/package.json | 15 ++++++++++++ .../rush-litewatch-plugin/package.json | 24 +++++++++++++++++++ 35 files changed, 534 insertions(+), 5 deletions(-) diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index 7d4e3bbfdd..1441764511 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -25,5 +25,20 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index c869e61ea2..75331370c5 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -73,5 +73,20 @@ "open": "~8.4.0", "semver": "~7.5.4", "update-notifier": "~5.1.0" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 40fded0343..8a9de83104 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -29,5 +29,20 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/apps/rush/package.json b/apps/rush/package.json index e232002274..44a3a691f0 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -50,5 +50,20 @@ "@rushstack/rush-http-build-cache-plugin": "workspace:*", "@types/heft-jest": "1.0.1", "@types/semver": "7.5.0" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index 07c9c81f78..94d9adb23d 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -31,5 +31,20 @@ "@types/semver": "7.5.0", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index 7a10e996b3..d6be3086c7 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -27,5 +27,29 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests-subspace/rush-lib-test/package.json b/build-tests-subspace/rush-lib-test/package.json index b622838bef..c587b67293 100644 --- a/build-tests-subspace/rush-lib-test/package.json +++ b/build-tests-subspace/rush-lib-test/package.json @@ -32,5 +32,20 @@ "local-node-rig": { "injected": true } + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests-subspace/rush-sdk-test/package.json b/build-tests-subspace/rush-sdk-test/package.json index cbddd0f8b8..1429e91c93 100644 --- a/build-tests-subspace/rush-sdk-test/package.json +++ b/build-tests-subspace/rush-sdk-test/package.json @@ -32,5 +32,20 @@ "local-node-rig": { "injected": true } + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/api-documenter-scenarios/package.json b/build-tests/api-documenter-scenarios/package.json index 13a84a3885..c68219659b 100644 --- a/build-tests/api-documenter-scenarios/package.json +++ b/build-tests/api-documenter-scenarios/package.json @@ -4,6 +4,21 @@ "version": "1.0.0", "private": true, "typings": "dist/internal/some-fake-file.d.ts", + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft build --clean" diff --git a/build-tests/api-extractor-d-cts-test/config/api-extractor.json b/build-tests/api-extractor-d-cts-test/config/api-extractor.json index 10c1ae9abd..570369b31a 100644 --- a/build-tests/api-extractor-d-cts-test/config/api-extractor.json +++ b/build-tests/api-extractor-d-cts-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.cts", + "mainEntryPointFilePath": "/lib-dts/index.d.cts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-d-mts-test/config/api-extractor.json b/build-tests/api-extractor-d-mts-test/config/api-extractor.json index 0d47ad78c1..c84f19c880 100644 --- a/build-tests/api-extractor-d-mts-test/config/api-extractor.json +++ b/build-tests/api-extractor-d-mts-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.mts", + "mainEntryPointFilePath": "/lib-dts/index.d.mts", "apiReport": { "enabled": true diff --git a/build-tests/api-extractor-d-mts-test/package.json b/build-tests/api-extractor-d-mts-test/package.json index 519d68ec8d..aba849de08 100644 --- a/build-tests/api-extractor-d-mts-test/package.json +++ b/build-tests/api-extractor-d-mts-test/package.json @@ -3,9 +3,23 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "module": "lib/index.mjs", "type": "module", "types": "dist/api-extractor-d-mts-test.d.mts", + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests/api-extractor-test-03/package.json b/build-tests/api-extractor-test-03/package.json index 6583ecd3c8..e128bf8904 100644 --- a/build-tests/api-extractor-test-03/package.json +++ b/build-tests/api-extractor-test-03/package.json @@ -13,5 +13,29 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*" + }, + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/heft-json-schema-typings-plugin-test/package.json b/build-tests/heft-json-schema-typings-plugin-test/package.json index a7ae645f19..a675354790 100644 --- a/build-tests/heft-json-schema-typings-plugin-test/package.json +++ b/build-tests/heft-json-schema-typings-plugin-test/package.json @@ -15,5 +15,20 @@ "@rushstack/node-core-library": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/localization-plugin-test-01/package.json b/build-tests/localization-plugin-test-01/package.json index 7702df1f1a..4a334ae8a0 100644 --- a/build-tests/localization-plugin-test-01/package.json +++ b/build-tests/localization-plugin-test-01/package.json @@ -21,5 +21,20 @@ "webpack": "~4.47.0", "webpack-bundle-analyzer": "~4.5.0", "webpack-dev-server": "~4.9.3" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/localization-plugin-test-02/package.json b/build-tests/localization-plugin-test-02/package.json index 6e6d389e18..c7d764f757 100644 --- a/build-tests/localization-plugin-test-02/package.json +++ b/build-tests/localization-plugin-test-02/package.json @@ -24,5 +24,20 @@ "webpack": "~4.47.0", "webpack-bundle-analyzer": "~4.5.0", "webpack-dev-server": "~4.9.3" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/localization-plugin-test-03/package.json b/build-tests/localization-plugin-test-03/package.json index 3c72df7724..9e5b10c8ce 100644 --- a/build-tests/localization-plugin-test-03/package.json +++ b/build-tests/localization-plugin-test-03/package.json @@ -24,5 +24,20 @@ "webpack": "~4.47.0", "webpack-bundle-analyzer": "~4.5.0", "webpack-dev-server": "~4.9.3" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json index 0833997b92..5a9f0515e0 100644 --- a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json +++ b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json @@ -21,5 +21,20 @@ "eslint": "~9.37.0", "http-proxy": "~1.18.1", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-lib-declaration-paths-test/package.json b/build-tests/rush-lib-declaration-paths-test/package.json index d497ba52b6..3839cf994f 100644 --- a/build-tests/rush-lib-declaration-paths-test/package.json +++ b/build-tests/rush-lib-declaration-paths-test/package.json @@ -16,5 +16,20 @@ "@types/node": "20.17.19", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-mcp-example-plugin/package.json b/build-tests/rush-mcp-example-plugin/package.json index 2f16f0b004..5e034b40de 100644 --- a/build-tests/rush-mcp-example-plugin/package.json +++ b/build-tests/rush-mcp-example-plugin/package.json @@ -14,5 +14,29 @@ "@rushstack/mcp-server": "workspace:*", "local-node-rig": "workspace:*", "local-eslint-config": "workspace:*" + }, + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-package-manager-integration-test/package.json b/build-tests/rush-package-manager-integration-test/package.json index a8c688eb31..3248410786 100644 --- a/build-tests/rush-package-manager-integration-test/package.json +++ b/build-tests/rush-package-manager-integration-test/package.json @@ -16,5 +16,20 @@ "@rushstack/node-core-library": "workspace:*", "@rushstack/terminal": "workspace:*", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-project-change-analyzer-test/package.json b/build-tests/rush-project-change-analyzer-test/package.json index 5d53df9077..ad04a70e30 100644 --- a/build-tests/rush-project-change-analyzer-test/package.json +++ b/build-tests/rush-project-change-analyzer-test/package.json @@ -18,5 +18,20 @@ "@types/node": "20.17.19", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/build-tests/rush-redis-cobuild-plugin-integration-test/package.json b/build-tests/rush-redis-cobuild-plugin-integration-test/package.json index 309fe18fd9..df53aa5182 100644 --- a/build-tests/rush-redis-cobuild-plugin-integration-test/package.json +++ b/build-tests/rush-redis-cobuild-plugin-integration-test/package.json @@ -20,5 +20,20 @@ "eslint": "~9.37.0", "http-proxy": "~1.18.1", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 6e22e408f6..73ac6ba5ab 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -2,7 +2,21 @@ "name": "@rushstack/eslint-bulk", "version": "0.4.15", "description": "Roll out new ESLint rules in a large monorepo without cluttering up your code with \"eslint-ignore-next-line\"", - "main": "index.js", + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "license": "MIT", "repository": { "url": "https://github.com/microsoft/rushstack.git", @@ -16,7 +30,7 @@ "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", - "start": "node ./lib/start.js" + "start": "node ./lib-commonjs/start.js" }, "keywords": [ "eslintrc", diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index e11e07978e..3122835dfc 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -28,5 +28,20 @@ "@types/semver": "7.5.0", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index 7a87e2bb95..a0f0aa84ac 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -26,5 +26,20 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 34bffd4e4a..002fe01ca3 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -51,5 +51,20 @@ "jest-environment-jsdom": "~29.5.0", "jest-environment-node": "~29.5.0", "jest-watch-select-projects": "2.0.0" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index 2a555c3fb7..fca8c991bf 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -27,5 +27,20 @@ "@rushstack/terminal": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 5b0b61e275..310d454286 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -36,5 +36,20 @@ "eslint-8": "npm:eslint@~8.57.0", "typescript": "~5.8.2", "tslint": "~5.20.1" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index 2085a36f6c..54432424be 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -25,5 +25,20 @@ }, "dependencies": { "@rushstack/localization-utilities": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } 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 cdd1829114..c57ad331c2 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -26,5 +26,20 @@ "@rushstack/heft-sass-plugin": "workspace:*", "local-node-rig": "workspace:*", "eslint": "~9.37.0" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 9e6841116e..34e63b4d07 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -26,5 +26,20 @@ "@rushstack/heft-webpack5-plugin": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index e4822640ad..fac7e67c12 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -29,5 +29,20 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "@rushstack/heft-rspack-plugin": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/repo-scripts/repo-toolbox/package.json b/repo-scripts/repo-toolbox/package.json index 5a56b90632..5ef4fec8ed 100644 --- a/repo-scripts/repo-toolbox/package.json +++ b/repo-scripts/repo-toolbox/package.json @@ -20,5 +20,20 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "exports": { + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } diff --git a/rush-plugins/rush-litewatch-plugin/package.json b/rush-plugins/rush-litewatch-plugin/package.json index 1e27d7c627..f9cb46a0a6 100644 --- a/rush-plugins/rush-litewatch-plugin/package.json +++ b/rush-plugins/rush-litewatch-plugin/package.json @@ -23,5 +23,29 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" + }, + "main": "lib-commonjs/index.js", + "module": "lib-esm/index.js", + "types": "./lib/index.d.ts", + "typings": "lib-dts/index.d.ts", + "exports": { + ".": { + "import": "./lib-esm/index.js", + "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } } } From 1856e577444ce4d6c857f724b828bc8988d1393f Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Mon, 16 Feb 2026 23:42:55 -0800 Subject: [PATCH 04/43] fix: normalize package.json fields across projects - Consolidate "typings" to "types" for consistency - Add leading "./" to "main", "types", and "module" paths - Remove incorrect "main", "module", and "." exports from projects that don't have index entrypoints Co-Authored-By: Claude --- apps/api-documenter/package.json | 6 +++--- apps/api-extractor/package.json | 6 +++--- apps/heft/package.json | 6 +++--- apps/playwright-browser-tunnel/package.json | 7 +++---- apps/rush-mcp-server/package.json | 6 +++--- apps/zipsync/package.json | 7 +++---- build-tests-subspace/typescript-newest-test/package.json | 7 +++---- build-tests-subspace/typescript-v4-test/package.json | 2 +- build-tests/api-documenter-scenarios/package.json | 2 +- build-tests/api-documenter-test/package.json | 7 +++---- build-tests/api-extractor-d-cts-test/package.json | 6 +++--- build-tests/api-extractor-d-mts-test/package.json | 2 +- build-tests/api-extractor-lib1-test/package.json | 6 +++--- build-tests/api-extractor-lib2-test/package.json | 6 +++--- build-tests/api-extractor-lib3-test/package.json | 6 +++--- build-tests/api-extractor-lib4-test/package.json | 6 +++--- build-tests/api-extractor-lib5-test/package.json | 6 +++--- build-tests/api-extractor-scenarios/package.json | 6 +++--- build-tests/api-extractor-test-01/package.json | 6 +++--- build-tests/api-extractor-test-02/package.json | 6 +++--- build-tests/api-extractor-test-03/package.json | 7 +++---- build-tests/api-extractor-test-04/package.json | 6 +++--- build-tests/api-extractor-test-05/package.json | 6 +++--- build-tests/eslint-7-11-test/package.json | 7 +++---- build-tests/eslint-7-7-test/package.json | 7 +++---- build-tests/eslint-7-test/package.json | 7 +++---- build-tests/eslint-8-test/package.json | 7 +++---- build-tests/eslint-9-test/package.json | 7 +++---- build-tests/heft-example-lifecycle-plugin/package.json | 2 +- build-tests/heft-example-plugin-01/package.json | 2 +- build-tests/heft-example-plugin-02/package.json | 2 +- build-tests/heft-fastify-test/package.json | 2 +- .../heft-node-everything-esm-module-test/package.json | 2 +- build-tests/heft-node-everything-test/package.json | 2 +- build-tests/heft-parameter-plugin/package.json | 2 +- build-tests/heft-swc-test/package.json | 2 +- build-tests/heft-typescript-v2-test/package.json | 2 +- build-tests/heft-typescript-v3-test/package.json | 2 +- build-tests/heft-typescript-v4-test/package.json | 2 +- build-tests/heft-web-rig-library-test/package.json | 2 +- build-tests/run-scenarios-helpers/package.json | 7 +++---- build-tests/rush-mcp-example-plugin/package.json | 7 +++---- eslint/eslint-plugin-packlets/package.json | 7 +++---- eslint/eslint-plugin-security/package.json | 7 +++---- eslint/eslint-plugin/package.json | 7 +++---- .../heft-isolated-typescript-transpile-plugin/package.json | 6 +++--- heft-plugins/heft-rspack-plugin/package.json | 6 +++--- heft-plugins/heft-sass-plugin/package.json | 7 +++---- heft-plugins/heft-typescript-plugin/package.json | 6 +++--- heft-plugins/heft-vscode-extension-plugin/package.json | 4 ++-- heft-plugins/heft-webpack4-plugin/package.json | 7 +++---- heft-plugins/heft-webpack5-plugin/package.json | 6 +++--- libraries/api-extractor-model/package.json | 6 +++--- libraries/credential-cache/package.json | 6 +++--- libraries/debug-certificate-manager/package.json | 6 +++--- libraries/heft-config-file/package.json | 6 +++--- libraries/load-themed-styles/package.json | 6 +++--- libraries/localization-utilities/package.json | 6 +++--- libraries/lookup-by-path/package.json | 6 +++--- libraries/module-minifier/package.json | 6 +++--- libraries/node-core-library/package.json | 6 +++--- libraries/npm-check-fork/package.json | 7 +++---- libraries/operation-graph/package.json | 6 +++--- libraries/package-deps-hash/package.json | 6 +++--- libraries/package-extractor/package.json | 6 +++--- libraries/problem-matcher/package.json | 6 +++--- libraries/rig-package/package.json | 6 +++--- libraries/rush-lib/package.json | 4 ++-- libraries/rush-pnpm-kit-v10/package.json | 6 +++--- libraries/rush-pnpm-kit-v8/package.json | 6 +++--- libraries/rush-pnpm-kit-v9/package.json | 6 +++--- libraries/rush-sdk/package.json | 4 ++-- libraries/rush-themed-ui/package.json | 4 ++-- libraries/rushell/package.json | 6 +++--- libraries/stream-collator/package.json | 6 +++--- libraries/terminal/package.json | 6 +++--- libraries/tree-pattern/package.json | 6 +++--- libraries/ts-command-line/package.json | 6 +++--- libraries/typings-generator/package.json | 6 +++--- libraries/worker-pool/package.json | 6 +++--- repo-scripts/doc-plugin-rush-stack/package.json | 7 +++---- .../rush-amazon-s3-build-cache-plugin/package.json | 7 +++---- .../rush-azure-storage-build-cache-plugin/package.json | 7 +++---- rush-plugins/rush-bridge-cache-plugin/package.json | 7 +++---- rush-plugins/rush-buildxl-graph-plugin/package.json | 7 +++---- rush-plugins/rush-http-build-cache-plugin/package.json | 7 +++---- rush-plugins/rush-litewatch-plugin/package.json | 7 +++---- rush-plugins/rush-mcp-docs-plugin/package.json | 7 +++---- rush-plugins/rush-redis-cobuild-plugin/package.json | 7 +++---- rush-plugins/rush-resolver-cache-plugin/package.json | 6 +++--- rush-plugins/rush-serve-plugin/package.json | 6 +++--- webpack/hashed-folder-copy-plugin/package.json | 6 +++--- webpack/loader-load-themed-styles/package.json | 7 +++---- webpack/loader-raw-script/package.json | 7 +++---- webpack/preserve-dynamic-require-plugin/package.json | 6 +++--- webpack/set-webpack-public-path-plugin/package.json | 6 +++--- webpack/webpack-deep-imports-plugin/package.json | 6 +++--- webpack/webpack-embedded-dependencies-plugin/package.json | 6 +++--- webpack/webpack-plugin-utilities/package.json | 6 +++--- webpack/webpack-workspace-resolve-plugin/package.json | 6 +++--- webpack/webpack4-localization-plugin/package.json | 6 +++--- webpack/webpack4-module-minifier-plugin/package.json | 6 +++--- webpack/webpack5-load-themed-styles-loader/package.json | 7 +++---- webpack/webpack5-localization-plugin/package.json | 6 +++--- webpack/webpack5-module-minifier-plugin/package.json | 6 +++--- 105 files changed, 281 insertions(+), 311 deletions(-) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 151e5264d9..4c2b1ef477 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -17,9 +17,9 @@ "bin": { "api-documenter": "./bin/api-documenter" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rollup.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rollup.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 0e4cd4e98b..1c3531221e 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -25,9 +25,9 @@ "directory": "apps/api-extractor" }, "homepage": "https://api-extractor.com", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rollup.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rollup.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/apps/heft/package.json b/apps/heft/package.json index b6412b26b2..6b5be9fd38 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -21,9 +21,9 @@ "node": ">=10.13.0" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index 3690226842..fe7c95fc01 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -8,10 +8,9 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "apps/playwright-browser-tunnel" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index 46b0ac35f2..b98ca6751d 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -9,9 +9,9 @@ "monorepo", "server" ], - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/mcp-server.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/mcp-server.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index d6be3086c7..cbb763dace 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -28,10 +28,9 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests-subspace/typescript-newest-test/package.json b/build-tests-subspace/typescript-newest-test/package.json index e007699d43..237a408daa 100644 --- a/build-tests-subspace/typescript-newest-test/package.json +++ b/build-tests-subspace/typescript-newest-test/package.json @@ -3,10 +3,9 @@ "description": "Building this project tests Heft with the newest supported TypeScript compiler version", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests-subspace/typescript-v4-test/package.json b/build-tests-subspace/typescript-v4-test/package.json index f4b21f5caf..0da7a11deb 100644 --- a/build-tests-subspace/typescript-v4-test/package.json +++ b/build-tests-subspace/typescript-v4-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests Heft with TypeScript v4", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/api-documenter-scenarios/package.json b/build-tests/api-documenter-scenarios/package.json index c68219659b..deb4c466e8 100644 --- a/build-tests/api-documenter-scenarios/package.json +++ b/build-tests/api-documenter-scenarios/package.json @@ -3,7 +3,7 @@ "description": "Building this project is a regression test for api-documenter", "version": "1.0.0", "private": true, - "typings": "dist/internal/some-fake-file.d.ts", + "types": "./dist/internal/some-fake-file.d.ts", "exports": { "./lib/*": { "import": "./lib-esm/*.js", diff --git a/build-tests/api-documenter-test/package.json b/build-tests/api-documenter-test/package.json index 94f936e858..4f5cad8de5 100644 --- a/build-tests/api-documenter-test/package.json +++ b/build-tests/api-documenter-test/package.json @@ -3,10 +3,9 @@ "description": "Building this project is a regression test for api-documenter", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-d-cts-test/package.json b/build-tests/api-extractor-d-cts-test/package.json index ac19ad5090..e58431d74c 100644 --- a/build-tests/api-extractor-d-cts-test/package.json +++ b/build-tests/api-extractor-d-cts-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/api-extractor-d-cts-test.d.cts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-d-cts-test.d.cts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-d-mts-test/package.json b/build-tests/api-extractor-d-mts-test/package.json index aba849de08..5cfda7f1c5 100644 --- a/build-tests/api-extractor-d-mts-test/package.json +++ b/build-tests/api-extractor-d-mts-test/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "private": true, "type": "module", - "types": "dist/api-extractor-d-mts-test.d.mts", + "types": "./dist/api-extractor-d-mts-test.d.mts", "exports": { "./lib/*": { "import": "./lib-esm/*.js", diff --git a/build-tests/api-extractor-lib1-test/package.json b/build-tests/api-extractor-lib1-test/package.json index d353aacc59..520139f65e 100644 --- a/build-tests/api-extractor-lib1-test/package.json +++ b/build-tests/api-extractor-lib1-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-lib1-test.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-lib1-test.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-lib2-test/package.json b/build-tests/api-extractor-lib2-test/package.json index bb6c14d2da..2778e1ccc0 100644 --- a/build-tests/api-extractor-lib2-test/package.json +++ b/build-tests/api-extractor-lib2-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-lib2-test.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-lib2-test.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-lib3-test/package.json b/build-tests/api-extractor-lib3-test/package.json index b558b70159..b8fbfb1ecc 100644 --- a/build-tests/api-extractor-lib3-test/package.json +++ b/build-tests/api-extractor-lib3-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-lib3-test.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-lib4-test/package.json b/build-tests/api-extractor-lib4-test/package.json index f9c5a093e9..1f48a38a67 100644 --- a/build-tests/api-extractor-lib4-test/package.json +++ b/build-tests/api-extractor-lib4-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-lib3-test.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-lib5-test/package.json b/build-tests/api-extractor-lib5-test/package.json index 6bca37e4aa..82049503ce 100644 --- a/build-tests/api-extractor-lib5-test/package.json +++ b/build-tests/api-extractor-lib5-test/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-lib3-test.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-scenarios/package.json b/build-tests/api-extractor-scenarios/package.json index 1b9ed52174..7350bcaf1f 100644 --- a/build-tests/api-extractor-scenarios/package.json +++ b/build-tests/api-extractor-scenarios/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/internal/some-fake-file.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/internal/some-fake-file.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-test-01/package.json b/build-tests/api-extractor-test-01/package.json index d9e646fe70..7380601a22 100644 --- a/build-tests/api-extractor-test-01/package.json +++ b/build-tests/api-extractor-test-01/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-test-01.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-test-01.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-test-02/package.json b/build-tests/api-extractor-test-02/package.json index 7377778c64..2c0cae1443 100644 --- a/build-tests/api-extractor-test-02/package.json +++ b/build-tests/api-extractor-test-02/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-test-02.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-test-02.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-test-03/package.json b/build-tests/api-extractor-test-03/package.json index e128bf8904..5ecc0c6256 100644 --- a/build-tests/api-extractor-test-03/package.json +++ b/build-tests/api-extractor-test-03/package.json @@ -14,10 +14,9 @@ "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-test-04/package.json b/build-tests/api-extractor-test-04/package.json index be3b6c89fc..16c6c2907b 100644 --- a/build-tests/api-extractor-test-04/package.json +++ b/build-tests/api-extractor-test-04/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-test-04.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-test-04.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/api-extractor-test-05/package.json b/build-tests/api-extractor-test-05/package.json index 7306ba08bc..53068a1dad 100644 --- a/build-tests/api-extractor-test-05/package.json +++ b/build-tests/api-extractor-test-05/package.json @@ -3,9 +3,9 @@ "description": "Building this project is a regression test for api-extractor", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/api-extractor-test-05.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/api-extractor-test-05.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/eslint-7-11-test/package.json b/build-tests/eslint-7-11-test/package.json index bc9b8dd7cc..310e0fdf23 100644 --- a/build-tests/eslint-7-11-test/package.json +++ b/build-tests/eslint-7-11-test/package.json @@ -3,10 +3,9 @@ "description": "This project contains a build test to validate ESLint 7.11.0 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/eslint-7-7-test/package.json b/build-tests/eslint-7-7-test/package.json index 9044d46cb6..e862947e12 100644 --- a/build-tests/eslint-7-7-test/package.json +++ b/build-tests/eslint-7-7-test/package.json @@ -3,10 +3,9 @@ "description": "This project contains a build test to validate ESLint 7.7.0 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/eslint-7-test/package.json b/build-tests/eslint-7-test/package.json index d9720f8e4b..857b1d963a 100644 --- a/build-tests/eslint-7-test/package.json +++ b/build-tests/eslint-7-test/package.json @@ -3,10 +3,9 @@ "description": "This project contains a build test to validate ESLint 7 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/eslint-8-test/package.json b/build-tests/eslint-8-test/package.json index 7c3df54cd2..c0388d8b92 100644 --- a/build-tests/eslint-8-test/package.json +++ b/build-tests/eslint-8-test/package.json @@ -3,10 +3,9 @@ "description": "This project contains a build test to validate ESLint 8 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/eslint-9-test/package.json b/build-tests/eslint-9-test/package.json index 7346dd06b2..41e81f2e75 100644 --- a/build-tests/eslint-9-test/package.json +++ b/build-tests/eslint-9-test/package.json @@ -3,10 +3,9 @@ "description": "This project contains a build test to validate ESLint 9 compatibility with the latest version of @rushstack/eslint-config (and by extension, the ESLint plugin)", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/heft-example-lifecycle-plugin/package.json b/build-tests/heft-example-lifecycle-plugin/package.json index 996b1d2771..e8a8f195db 100644 --- a/build-tests/heft-example-lifecycle-plugin/package.json +++ b/build-tests/heft-example-lifecycle-plugin/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "private": true, "main": "./lib/index.js", - "typings": "./lib/index.d.ts", + "types": "./lib/index.d.ts", "scripts": { "build": "heft build --clean", "start": "heft build-watch", diff --git a/build-tests/heft-example-plugin-01/package.json b/build-tests/heft-example-plugin-01/package.json index a635fd4123..3480d27620 100644 --- a/build-tests/heft-example-plugin-01/package.json +++ b/build-tests/heft-example-plugin-01/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "private": true, "main": "./lib/index.js", - "typings": "./lib/index.d.ts", + "types": "./lib/index.d.ts", "scripts": { "build": "heft build --clean", "start": "heft build-watch", diff --git a/build-tests/heft-example-plugin-02/package.json b/build-tests/heft-example-plugin-02/package.json index 1d7f1b56bf..d6698ec89b 100644 --- a/build-tests/heft-example-plugin-02/package.json +++ b/build-tests/heft-example-plugin-02/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "private": true, "main": "./lib/index.js", - "typings": "./lib/index.d.ts", + "types": "./lib/index.d.ts", "scripts": { "build": "heft build --clean", "start": "heft build-watch", diff --git a/build-tests/heft-fastify-test/package.json b/build-tests/heft-fastify-test/package.json index 3aaac5a4d2..18d04edda9 100644 --- a/build-tests/heft-fastify-test/package.json +++ b/build-tests/heft-fastify-test/package.json @@ -3,7 +3,7 @@ "description": "This project tests Heft support for the Fastify framework for Node.js services", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-node-everything-esm-module-test/package.json b/build-tests/heft-node-everything-esm-module-test/package.json index 7511a0b574..0f4196f00a 100644 --- a/build-tests/heft-node-everything-esm-module-test/package.json +++ b/build-tests/heft-node-everything-esm-module-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests every task and config file for Heft when targeting the Node.js runtime when configured to use ESM module support", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "type": "module", "license": "MIT", "scripts": { diff --git a/build-tests/heft-node-everything-test/package.json b/build-tests/heft-node-everything-test/package.json index 7b2fa422c0..bd60e9a4a5 100644 --- a/build-tests/heft-node-everything-test/package.json +++ b/build-tests/heft-node-everything-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests every task and config file for Heft when targeting the Node.js runtime", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-parameter-plugin/package.json b/build-tests/heft-parameter-plugin/package.json index 9e447a93ec..a6f8ca8652 100644 --- a/build-tests/heft-parameter-plugin/package.json +++ b/build-tests/heft-parameter-plugin/package.json @@ -3,7 +3,7 @@ "description": "This project contains a Heft plugin that adds a custom parameter to built-in actions", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-swc-test/package.json b/build-tests/heft-swc-test/package.json index 1ca1751879..93bb816832 100644 --- a/build-tests/heft-swc-test/package.json +++ b/build-tests/heft-swc-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests building with SWC", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-typescript-v2-test/package.json b/build-tests/heft-typescript-v2-test/package.json index c00de02bb2..2f8e7b572e 100644 --- a/build-tests/heft-typescript-v2-test/package.json +++ b/build-tests/heft-typescript-v2-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests building with TypeScript v2", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-typescript-v3-test/package.json b/build-tests/heft-typescript-v3-test/package.json index 18da26383e..8f8fb7a56e 100644 --- a/build-tests/heft-typescript-v3-test/package.json +++ b/build-tests/heft-typescript-v3-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests building with TypeScript v3", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-typescript-v4-test/package.json b/build-tests/heft-typescript-v4-test/package.json index 4975e4f904..23f4dfbaa4 100644 --- a/build-tests/heft-typescript-v4-test/package.json +++ b/build-tests/heft-typescript-v4-test/package.json @@ -3,7 +3,7 @@ "description": "Building this project tests building with TypeScript v4", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/heft-web-rig-library-test/package.json b/build-tests/heft-web-rig-library-test/package.json index 65a9734b44..037696dacc 100644 --- a/build-tests/heft-web-rig-library-test/package.json +++ b/build-tests/heft-web-rig-library-test/package.json @@ -3,7 +3,7 @@ "description": "A test project for Heft that exercises the '@rushstack/heft-web-rig' package", "version": "1.0.0", "private": true, - "main": "lib/index.js", + "main": "./lib/index.js", "license": "MIT", "scripts": { "build": "heft build --clean", diff --git a/build-tests/run-scenarios-helpers/package.json b/build-tests/run-scenarios-helpers/package.json index cf170d1ec7..45a849d6d7 100644 --- a/build-tests/run-scenarios-helpers/package.json +++ b/build-tests/run-scenarios-helpers/package.json @@ -3,10 +3,9 @@ "description": "Helpers for the *-scenarios test projects.", "version": "1.0.0", "private": true, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/build-tests/rush-mcp-example-plugin/package.json b/build-tests/rush-mcp-example-plugin/package.json index 5e034b40de..deab0f4f43 100644 --- a/build-tests/rush-mcp-example-plugin/package.json +++ b/build-tests/rush-mcp-example-plugin/package.json @@ -15,10 +15,9 @@ "local-node-rig": "workspace:*", "local-eslint-config": "workspace:*" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index c2ef7d3baa..62914e06d1 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -15,10 +15,9 @@ "packlets", "rules" ], - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index cace0d6fc1..cd5ff5fd71 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -14,10 +14,9 @@ "eslint-config", "security" ], - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index db89d173eb..7e60268428 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -18,10 +18,9 @@ "scale", "typescript" ], - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index b251073dab..02fbbe91fb 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -9,9 +9,9 @@ }, "homepage": "https://rushstack.io/pages/heft/overview/", "license": "MIT", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft-isolated-typescript-transpile-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 577e774ec1..9cab8ae481 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -8,9 +8,9 @@ "directory": "heft-plugins/heft-rspack-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft-rspack-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft-rspack-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index a0efa8c771..41a7684f3e 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -15,10 +15,9 @@ "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index eeb85a1fc0..a10ab404af 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -8,9 +8,9 @@ "directory": "heft-plugins/heft-typescript-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft-typescript-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft-typescript-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index 159c94a41f..3e8f31360f 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -15,8 +15,8 @@ "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" }, - "main": "lib/index.js", - "types": "lib/index.d.ts", + "main": "./lib/index.js", + "types": "./lib/index.d.ts", "peerDependencies": { "@rushstack/heft": "^1.1.14" }, diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index d196d71610..cc5072de26 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -8,10 +8,9 @@ "directory": "heft-plugins/heft-webpack4-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index a23aa8fae1..6b7ee08469 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -8,9 +8,9 @@ "directory": "heft-plugins/heft-webpack5-plugin" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft-webpack5-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft-webpack5-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 11865f355a..8fdf2fb9ed 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -8,9 +8,9 @@ "directory": "libraries/api-extractor-model" }, "homepage": "https://api-extractor.com", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rollup.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rollup.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index 53d438923f..0a23818df4 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/credential-cache", "version": "0.1.11", "description": "Cross-platform functionality to manage cached credentials.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/credential-cache.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/credential-cache.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index b814c17a74..5bd45206a8 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/debug-certificate-manager", "version": "1.6.14", "description": "Cross-platform functionality to create debug ssl certificates.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/debug-certificate-manager.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/debug-certificate-manager.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index a1feb686ac..d7cee21f81 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -11,9 +11,9 @@ "node": ">=10.13.0" }, "homepage": "https://rushstack.io/pages/heft/overview/", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/heft-config-file.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/heft-config-file.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index 835ef302e7..dc79fa82bc 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -13,9 +13,9 @@ "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "keywords": [], "devDependencies": { "@rushstack/heft": "workspace:*", diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index 458f5912af..5bd24440f5 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/localization-utilities", "version": "0.14.14", "description": "This plugin contains some useful functions for localization.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/localization-utilities.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/localization-utilities.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index bde7628678..e6b980d5b4 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/lookup-by-path", "version": "0.8.16", "description": "Strongly typed trie data structure for path and URL-like strings.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/lookup-by-path.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/lookup-by-path.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index e05b2a5ad7..df004b8fbe 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/module-minifier", "version": "0.8.14", "description": "Wrapper for terser to support bulk parallel minification.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/module-minifier.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/module-minifier.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index b058192f60..09d37713e7 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/node-core-library", "version": "5.19.1", "description": "Core libraries that every NodeJS toolchain project should use", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/node-core-library.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/node-core-library.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index 52b4bfc6ad..e9afe97923 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -8,10 +8,9 @@ "directory": "libraries/npm-check-fork" }, "homepage": "https://github.com/dylang/npm-check", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index 0a1387655d..9e6a7f9675 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/operation-graph", "version": "0.5.7", "description": "Library for managing and executing operations in a directed acyclic graph.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/operation-graph.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/operation-graph.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 0f6d3b4325..15630e7149 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/package-deps-hash", "version": "4.6.8", "description": "", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/package-deps-hash.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/package-deps-hash.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 0551fb4047..9bcb530100 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/package-extractor", "version": "0.11.16", "description": "A library for bundling selected files and dependencies into a deployable package.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/package-extractor.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/package-extractor.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index e2246bff54..47eafad306 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/problem-matcher", "version": "0.1.1", "description": "A library for parsing VS Code style problem matchers", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/problem-matcher.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/problem-matcher.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 25015a8bda..8559b2bf76 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/rig-package", "version": "0.6.0", "description": "A system for sharing tool configurations between projects without duplicating config files.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rig-package.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rig-package.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index 4f30c55334..5fb859511b 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -12,8 +12,8 @@ }, "engineStrict": true, "homepage": "https://rushjs.io", - "main": "lib/index.js", - "typings": "dist/rush-lib.d.ts", + "main": "./lib/index.js", + "types": "./dist/rush-lib.d.ts", "typesVersions": { "*": { "lib-esnext/*": [ diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index 036cb8c74d..d734fe6085 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -3,9 +3,9 @@ "version": "0.1.7", "description": "rush pnpm kit v10", "license": "MIT", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rush-pnpm-kit-v10.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rush-pnpm-kit-v10.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index 4fc5c3e06d..a41f9eff6c 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -3,9 +3,9 @@ "version": "0.1.7", "description": "rush pnpm kit v8", "license": "MIT", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rush-pnpm-kit-v8.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rush-pnpm-kit-v8.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index eb0b1d643e..10315646fa 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -3,9 +3,9 @@ "version": "0.1.7", "description": "rush pnpm kit v9", "license": "MIT", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rush-pnpm-kit-v9.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rush-pnpm-kit-v9.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/rush-sdk/package.json b/libraries/rush-sdk/package.json index 08b75d7ac7..cf685a5993 100644 --- a/libraries/rush-sdk/package.json +++ b/libraries/rush-sdk/package.json @@ -8,8 +8,8 @@ "directory": "apps/rush-sdk" }, "homepage": "https://rushjs.io", - "main": "lib-shim/index.js", - "typings": "dist/rush-lib.d.ts", + "main": "./lib-shim/index.js", + "types": "./dist/rush-lib.d.ts", "exports": { ".": { "types": "./dist/rush-lib.d.ts", diff --git a/libraries/rush-themed-ui/package.json b/libraries/rush-themed-ui/package.json index 2eaf61dcf2..2fe7d94f8e 100644 --- a/libraries/rush-themed-ui/package.json +++ b/libraries/rush-themed-ui/package.json @@ -4,8 +4,8 @@ "version": "0.0.0", "private": true, "license": "MIT", - "module": "dist/rush-themed-ui.js", - "types": "dist/rush-themed-ui.d.ts", + "module": "./dist/rush-themed-ui.js", + "types": "./dist/rush-themed-ui.d.ts", "scripts": { "build": "heft test --clean", "start": "heft build --watch", diff --git a/libraries/rushell/package.json b/libraries/rushell/package.json index 095681402b..934f0da643 100644 --- a/libraries/rushell/package.json +++ b/libraries/rushell/package.json @@ -7,9 +7,9 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/rushell" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/rushell.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rushell.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index eff4c171e2..65d91f2b8c 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -7,9 +7,9 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/stream-collator" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/stream-collator.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/stream-collator.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index ee5b93dfe3..600efb6b90 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/terminal", "version": "0.21.0", "description": "User interface primitives for console applications", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/terminal.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/terminal.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index df3d810fd3..b5bc2c9a32 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/tree-pattern", "version": "0.3.4", "description": "A fast, lightweight pattern matcher for tree structures such as an Abstract Syntax Tree (AST)", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/tree-pattern.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/tree-pattern.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index cbfb2918bc..4201566c1b 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -7,9 +7,9 @@ "url": "https://github.com/microsoft/rushstack.git", "directory": "libraries/ts-command-line" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/ts-command-line.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/ts-command-line.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index 6ad8e0b70b..c6a35f9a2c 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -7,9 +7,9 @@ "typings", "generate" ], - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/typings-generator.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/typings-generator.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index 5384c06942..d860a71771 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/worker-pool", "version": "0.6.14", "description": "Lightweight worker pool using NodeJS worker_threads", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/worker-pool.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/worker-pool.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/repo-scripts/doc-plugin-rush-stack/package.json b/repo-scripts/doc-plugin-rush-stack/package.json index 81ea85c2f0..b9a54a7061 100644 --- a/repo-scripts/doc-plugin-rush-stack/package.json +++ b/repo-scripts/doc-plugin-rush-stack/package.json @@ -3,10 +3,9 @@ "version": "1.0.0", "private": true, "description": "API Documenter plugin used with the rushstack.io website", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.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 6c34426f2d..b06ce8789c 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -8,10 +8,9 @@ "directory": "rush-plugins/rush-amazon-s3-build-cache-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.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 4f42dd4281..53e45dcecc 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -8,10 +8,9 @@ "directory": "heft-plugins/heft-webpack5-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 722d1ebd51..4cc69c80d1 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -3,16 +3,15 @@ "version": "5.168.0", "description": "Rush plugin that provides a --set-cache-only command flag to populate the cache from content on disk.", "license": "MIT", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", "repository": { "url": "https://github.com/microsoft/rushstack", "type": "git", "directory": "rush-plugins/rush-bridge-cache-plugin" }, "homepage": "https://rushjs.io", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index e666204754..c2608b834d 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -8,10 +8,9 @@ "directory": "rush-plugins/rush-buildxl-graph-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 4d5ab8ba43..8cdcc94091 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -8,10 +8,9 @@ "directory": "rush-plugins/rush-http-build-cache-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-litewatch-plugin/package.json b/rush-plugins/rush-litewatch-plugin/package.json index f9cb46a0a6..513fcdb999 100644 --- a/rush-plugins/rush-litewatch-plugin/package.json +++ b/rush-plugins/rush-litewatch-plugin/package.json @@ -24,10 +24,9 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index f3a200bf51..09963444e3 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -8,10 +8,9 @@ "directory": "rush-plugins/rush-mcp-docs-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index da65967262..91076c27f3 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -8,10 +8,9 @@ "directory": "rush-plugins/rush-redis-cobuild-plugin" }, "homepage": "https://rushjs.io", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index e929d797a7..e91fb13c0b 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -8,9 +8,9 @@ "type": "git", "directory": "rush-plugins/rush-resolver-cache-plugin" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/rush-resolver-cache-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/rush-resolver-cache-plugin.d.ts", "scripts": { "build": "heft test --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index bc710961e9..6c3afb52ef 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -8,9 +8,9 @@ "type": "git", "directory": "rush-plugins/rush-serve-plugin" }, - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "dist/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/index.d.ts", "scripts": { "build": "heft test --clean", "_phase:build": "heft run --only build -- --clean", diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index d00eb5fa88..2d59f5982c 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/hashed-folder-copy-plugin", "version": "1.2.14", "description": "Webpack plugin for copying a folder to the output directory with a hash in the folder name.", - "typings": "dist/hashed-folder-copy-plugin.d.ts", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", + "types": "./dist/hashed-folder-copy-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index d629060617..e5b46de7d8 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -2,10 +2,9 @@ "name": "@microsoft/loader-load-themed-styles", "version": "2.1.125", "description": "This simple loader wraps the loading of CSS in script equivalent to `require('load-themed-styles').loadStyles( /* css text */ )`. It is designed to be a replacement for style-loader.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index 2010a09763..68bdb6b9bc 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -2,10 +2,9 @@ "name": "@rushstack/loader-raw-script", "version": "1.5.14", "description": "", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index ee24240b0c..16cb2a1308 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack-preserve-dynamic-require-plugin", "version": "0.11.125", "description": "This plugin tells webpack to leave dynamic calls to \"require\" as-is instead of trying to bundle them.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack-preserve-dynamic-require-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index c04e6f961a..d65c0c4db5 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/set-webpack-public-path-plugin", "version": "5.2.15", "description": "This plugin sets the webpack public path at runtime.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/set-webpack-public-path-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/set-webpack-public-path-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack-deep-imports-plugin/package.json b/webpack/webpack-deep-imports-plugin/package.json index 9b9e264729..bbc0a0d3ec 100644 --- a/webpack/webpack-deep-imports-plugin/package.json +++ b/webpack/webpack-deep-imports-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack-deep-imports-plugin", "version": "0.0.0", "description": "This plugin creates a bundle and commonJS files in a 'lib' folder mirroring modules in another 'lib' folder.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack-deep-imports-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack-deep-imports-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index bee013a15a..72928cacb1 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack-embedded-dependencies-plugin", "version": "0.3.15", "description": "This plugin analyzes bundled dependencies from Node Modules for use with Component Governance and License Scanning.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack-embedded-dependencies-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index e87760ef73..37312e26cc 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack-plugin-utilities", "version": "0.5.14", "description": "This plugin sets the webpack public path at runtime.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack-plugin-utilities.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack-plugin-utilities.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index 3b498cce70..baa2d7a592 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack-workspace-resolve-plugin", "version": "0.5.14", "description": "This plugin leverages workspace-level metadata to greatly accelerate module resolution.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack-workspace-resolve-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack-workspace-resolve-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index ed3b7c9847..e3950fdb43 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack4-localization-plugin", "version": "0.19.14", "description": "This plugin facilitates localization with Webpack.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack4-localization-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack4-localization-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index 41ff43ed3f..4fe2736096 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack4-module-minifier-plugin", "version": "0.14.14", "description": "This plugin splits minification of webpack compilations into smaller units.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack4-module-minifier-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack4-module-minifier-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 36515e707a..89eee52873 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -2,10 +2,9 @@ "name": "@microsoft/webpack5-load-themed-styles-loader", "version": "0.3.14", "description": "This simple loader wraps the loading of CSS in script equivalent to `require('load-themed-styles').loadStyles( /* css text */ )`. It is designed to be a replacement for style-loader.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "types": "./lib/index.d.ts", - "typings": "lib-dts/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index f6991b3dc7..739e5864bc 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack5-localization-plugin", "version": "0.15.14", "description": "This plugin facilitates localization with Webpack.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack5-localization-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack5-localization-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index 4f1da7e07d..f56eb38d16 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -2,9 +2,9 @@ "name": "@rushstack/webpack5-module-minifier-plugin", "version": "5.7.0", "description": "This plugin splits minification of webpack compilations into smaller units.", - "main": "lib-commonjs/index.js", - "module": "lib-esm/index.js", - "typings": "dist/webpack5-module-minifier-plugin.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./dist/webpack5-module-minifier-plugin.d.ts", "exports": { ".": { "import": "./lib-esm/index.js", From c71849c4f4733e1c72274c490c01679342cc9ab3 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 00:48:35 -0800 Subject: [PATCH 05/43] fixup! fix: normalize package.json fields across projects --- libraries/load-themed-styles/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index dc79fa82bc..760c2e3089 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -8,6 +8,7 @@ "type": "git", "directory": "libraries/load-themed-styles" }, + "keywords": [], "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean", @@ -16,12 +17,6 @@ "main": "./lib-commonjs/index.js", "module": "./lib-esm/index.js", "types": "./lib-dts/index.d.ts", - "keywords": [], - "devDependencies": { - "@rushstack/heft": "workspace:*", - "eslint": "~9.37.0", - "local-web-rig": "workspace:*" - }, "exports": { ".": { "require": "./lib-commonjs/index.js", @@ -41,5 +36,10 @@ "lib-dts/*" ] } + }, + "devDependencies": { + "@rushstack/heft": "workspace:*", + "eslint": "~9.37.0", + "local-web-rig": "workspace:*" } } From 673032d7c945c950c22da0d57496923570e7476f Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:02:30 -0800 Subject: [PATCH 06/43] Include lib-esm in the prettierignore. --- .prettierignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.prettierignore b/.prettierignore index 5f92ce14d6..45e09e79d7 100644 --- a/.prettierignore +++ b/.prettierignore @@ -114,6 +114,7 @@ temp/ lib/ lib-amd/ lib-es6/ +lib-esm/ lib-esnext/ lib-commonjs/ lib-shim/ From b89c0c51db86da78c5d63d9e4906184e7b54f525 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:05:34 -0800 Subject: [PATCH 07/43] Update paths in web projects. --- apps/lockfile-explorer-web/webpack.config.js | 3 +++ libraries/rush-themed-ui/config/api-extractor.json | 2 +- libraries/rush-themed-ui/webpack.config.js | 4 ++++ rigs/local-web-rig/profiles/app/config/rush-project.json | 2 +- rigs/local-web-rig/profiles/app/tsconfig-base.json | 3 ++- rigs/local-web-rig/profiles/library/config/rush-project.json | 2 +- rigs/local-web-rig/profiles/library/tsconfig-base.json | 3 ++- vscode-extensions/rush-vscode-command-webview/package.json | 2 +- .../rush-vscode-command-webview/webpack.config.js | 2 +- 9 files changed, 16 insertions(+), 7 deletions(-) diff --git a/apps/lockfile-explorer-web/webpack.config.js b/apps/lockfile-explorer-web/webpack.config.js index 7b09bf573c..45fec6530c 100644 --- a/apps/lockfile-explorer-web/webpack.config.js +++ b/apps/lockfile-explorer-web/webpack.config.js @@ -10,6 +10,9 @@ module.exports = function createConfig(env, argv) { projectRoot: __dirname, // Documentation: https://webpack.js.org/configuration/ configOverride: { + entry: { + app: `${__dirname}/lib-esm/start.js` + }, resolve: { alias: { // Don't rebundle this large library diff --git a/libraries/rush-themed-ui/config/api-extractor.json b/libraries/rush-themed-ui/config/api-extractor.json index cafe285cb0..1cb6d1c00a 100644 --- a/libraries/rush-themed-ui/config/api-extractor.json +++ b/libraries/rush-themed-ui/config/api-extractor.json @@ -45,7 +45,7 @@ * * SUPPORTED TOKENS: , , */ - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", /** * A list of NPM package names whose exports should be treated as part of this package. diff --git a/libraries/rush-themed-ui/webpack.config.js b/libraries/rush-themed-ui/webpack.config.js index 3dc6a34498..dbebe07e1c 100644 --- a/libraries/rush-themed-ui/webpack.config.js +++ b/libraries/rush-themed-ui/webpack.config.js @@ -10,6 +10,10 @@ module.exports = function createConfig(env, argv) { // Documentation: https://webpack.js.org/configuration/ configOverride: { + entry: { + ['rush-themed-ui']: `${__dirname}/lib-esm/index.js` + }, + externals: ['react', 'react-dom', 'tslib'], performance: { diff --git a/rigs/local-web-rig/profiles/app/config/rush-project.json b/rigs/local-web-rig/profiles/app/config/rush-project.json index d1b5241fb6..1476defbc9 100644 --- a/rigs/local-web-rig/profiles/app/config/rush-project.json +++ b/rigs/local-web-rig/profiles/app/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft"] + "outputFolderNames": [".heft", "lib-dts", "lib-esm"] }, { "operationName": "_phase:test", diff --git a/rigs/local-web-rig/profiles/app/tsconfig-base.json b/rigs/local-web-rig/profiles/app/tsconfig-base.json index 03bbe4b704..e609adca75 100644 --- a/rigs/local-web-rig/profiles/app/tsconfig-base.json +++ b/rigs/local-web-rig/profiles/app/tsconfig-base.json @@ -10,7 +10,8 @@ "target": "es2017", "lib": ["es2017", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"], - "outDir": "${configDir}/lib", + "outDir": "${configDir}/lib-esm", + "declarationDir": "${configDir}/lib-dts", "rootDir": "${configDir}/src", "rootDirs": ["${configDir}/src", "${configDir}/temp/sass-ts"], diff --git a/rigs/local-web-rig/profiles/library/config/rush-project.json b/rigs/local-web-rig/profiles/library/config/rush-project.json index 1df3cee0d7..d76c205b61 100644 --- a/rigs/local-web-rig/profiles/library/config/rush-project.json +++ b/rigs/local-web-rig/profiles/library/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft"] + "outputFolderNames": [".heft", "lib-dts", "lib-esm"] }, { "operationName": "_phase:test", diff --git a/rigs/local-web-rig/profiles/library/tsconfig-base.json b/rigs/local-web-rig/profiles/library/tsconfig-base.json index b3568c82cd..eec41564e0 100644 --- a/rigs/local-web-rig/profiles/library/tsconfig-base.json +++ b/rigs/local-web-rig/profiles/library/tsconfig-base.json @@ -7,7 +7,8 @@ "resolveJsonModule": true, "isolatedModules": true, - "outDir": "${configDir}/lib", + "outDir": "${configDir}/lib-esm", + "declarationDir": "${configDir}/lib-dts", "rootDir": "${configDir}/src", "rootDirs": ["${configDir}/src", "${configDir}/temp/sass-ts"], diff --git a/vscode-extensions/rush-vscode-command-webview/package.json b/vscode-extensions/rush-vscode-command-webview/package.json index 1b6991c2e6..30bd573dec 100644 --- a/vscode-extensions/rush-vscode-command-webview/package.json +++ b/vscode-extensions/rush-vscode-command-webview/package.json @@ -9,7 +9,7 @@ "directory": "vscode-extensions/rush-vscode-command-webview" }, "license": "MIT", - "main": "./lib/index.js", + "main": "./lib-esm/index.js", "scripts": { "_phase:build": "heft build --clean", "_phase:test": "", diff --git a/vscode-extensions/rush-vscode-command-webview/webpack.config.js b/vscode-extensions/rush-vscode-command-webview/webpack.config.js index fc39d6df9e..d729dd7a99 100644 --- a/vscode-extensions/rush-vscode-command-webview/webpack.config.js +++ b/vscode-extensions/rush-vscode-command-webview/webpack.config.js @@ -16,7 +16,7 @@ function createWebpackConfig({ production }) { } }, entry: { - ['bundle']: path.join(__dirname, 'lib', 'entry.js') + bundle: path.join(__dirname, 'lib-esm', 'entry.js') }, output: { path: path.join(__dirname, 'dist'), From 0e288e8d095142792e4f902dc33ea48f5acadc29 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:07:42 -0800 Subject: [PATCH 08/43] Clean up output folders in tests. --- .../src/api/test/test-data/config-lookup1/tsconfig.json | 5 ++--- .../src/api/test/test-data/config-lookup2/tsconfig.json | 5 ++--- .../api/test/test-data/config-lookup3/src/test/tsconfig.json | 5 ++--- .../src/api/test/test-data/config-lookup3/tsconfig.json | 5 ++--- .../src/api/test/test-data/custom-tsdoc-tags/tsconfig.json | 5 ++--- build-tests-samples/heft-node-basic-tutorial/tsconfig.json | 5 ++--- build-tests-samples/heft-node-jest-tutorial/tsconfig.json | 5 ++--- .../heft-serverless-stack-tutorial/tsconfig.json | 5 ++--- .../heft-webpack-basic-tutorial/tsconfig.json | 5 ++--- build-tests-samples/packlets-tutorial/tsconfig.json | 5 ++--- build-tests-subspace/rush-sdk-test/tsconfig.json | 2 +- build-tests-subspace/typescript-v4-test/tsconfig.json | 2 +- build-tests/api-extractor-lib1-test/tsconfig.json | 2 +- .../api-extractor-test-04/beta-consumer/tsconfig.json | 2 +- build-tests/eslint-7-11-test/tsconfig.json | 5 ++--- build-tests/eslint-7-7-test/tsconfig.json | 5 ++--- build-tests/eslint-7-test/tsconfig.json | 5 ++--- build-tests/eslint-8-test/tsconfig.json | 5 ++--- build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json | 5 ++--- .../eslint-bulk-suppressions-test-legacy/tsconfig.json | 5 ++--- build-tests/eslint-bulk-suppressions-test/tsconfig.json | 5 ++--- .../hashed-folder-copy-plugin-webpack5-test/tsconfig.json | 2 +- build-tests/heft-example-lifecycle-plugin/tsconfig.json | 5 ++--- build-tests/heft-example-plugin-01/tsconfig.json | 5 ++--- build-tests/heft-example-plugin-02/tsconfig.json | 5 ++--- build-tests/heft-fastify-test/tsconfig.json | 5 ++--- build-tests/heft-jest-preset-test/tsconfig.json | 5 ++--- build-tests/heft-jest-reporters-test/tsconfig.json | 5 ++--- .../heft-node-everything-esm-module-test/config/heft.json | 2 +- .../config/rush-project.json | 2 +- .../config/typescript.json | 2 +- .../heft-node-everything-esm-module-test/tsconfig.json | 5 ++--- build-tests/heft-node-everything-test/config/heft.json | 2 +- .../heft-node-everything-test/config/rush-project.json | 2 +- build-tests/heft-node-everything-test/config/typescript.json | 2 +- build-tests/heft-node-everything-test/tsconfig.json | 5 ++--- build-tests/heft-parameter-plugin-test/tsconfig.json | 5 ++--- build-tests/heft-parameter-plugin/tsconfig.json | 5 ++--- build-tests/heft-rspack-everything-test/tsconfig.json | 5 ++--- build-tests/heft-sass-test/tsconfig.json | 5 ++--- build-tests/heft-typescript-v2-test/config/typescript.json | 2 +- build-tests/heft-typescript-v2-test/tsconfig.json | 5 ++--- build-tests/heft-typescript-v3-test/config/heft.json | 2 +- build-tests/heft-typescript-v3-test/config/rush-project.json | 2 +- build-tests/heft-typescript-v3-test/config/typescript.json | 2 +- build-tests/heft-typescript-v3-test/tsconfig.json | 5 ++--- build-tests/heft-typescript-v4-test/config/heft.json | 4 +++- build-tests/heft-typescript-v4-test/config/rush-project.json | 2 +- build-tests/heft-typescript-v4-test/config/typescript.json | 2 +- build-tests/heft-typescript-v4-test/tsconfig.json | 5 ++--- build-tests/heft-webpack4-everything-test/tsconfig.json | 5 ++--- build-tests/heft-webpack5-everything-test/tsconfig.json | 5 ++--- .../tsconfig.json | 3 +-- .../rush-redis-cobuild-plugin-integration-test/tsconfig.json | 3 +-- .../set-webpack-public-path-plugin-test/tsconfig.json | 2 +- build-tests/webpack-local-version-test/tsconfig.json | 2 +- 56 files changed, 92 insertions(+), 126 deletions(-) diff --git a/apps/api-extractor/src/api/test/test-data/config-lookup1/tsconfig.json b/apps/api-extractor/src/api/test/test-data/config-lookup1/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/apps/api-extractor/src/api/test/test-data/config-lookup1/tsconfig.json +++ b/apps/api-extractor/src/api/test/test-data/config-lookup1/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/apps/api-extractor/src/api/test/test-data/config-lookup2/tsconfig.json b/apps/api-extractor/src/api/test/test-data/config-lookup2/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/apps/api-extractor/src/api/test/test-data/config-lookup2/tsconfig.json +++ b/apps/api-extractor/src/api/test/test-data/config-lookup2/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/apps/api-extractor/src/api/test/test-data/config-lookup3/src/test/tsconfig.json b/apps/api-extractor/src/api/test/test-data/config-lookup3/src/test/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/apps/api-extractor/src/api/test/test-data/config-lookup3/src/test/tsconfig.json +++ b/apps/api-extractor/src/api/test/test-data/config-lookup3/src/test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/apps/api-extractor/src/api/test/test-data/config-lookup3/tsconfig.json b/apps/api-extractor/src/api/test/test-data/config-lookup3/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/apps/api-extractor/src/api/test/test-data/config-lookup3/tsconfig.json +++ b/apps/api-extractor/src/api/test/test-data/config-lookup3/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/apps/api-extractor/src/api/test/test-data/custom-tsdoc-tags/tsconfig.json b/apps/api-extractor/src/api/test/test-data/custom-tsdoc-tags/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/apps/api-extractor/src/api/test/test-data/custom-tsdoc-tags/tsconfig.json +++ b/apps/api-extractor/src/api/test/test-data/custom-tsdoc-tags/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/heft-node-basic-tutorial/tsconfig.json b/build-tests-samples/heft-node-basic-tutorial/tsconfig.json index 36f4f4267d..f00b374c30 100644 --- a/build-tests-samples/heft-node-basic-tutorial/tsconfig.json +++ b/build-tests-samples/heft-node-basic-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -24,6 +24,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/heft-node-jest-tutorial/tsconfig.json b/build-tests-samples/heft-node-jest-tutorial/tsconfig.json index 36f4f4267d..f00b374c30 100644 --- a/build-tests-samples/heft-node-jest-tutorial/tsconfig.json +++ b/build-tests-samples/heft-node-jest-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -24,6 +24,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/heft-serverless-stack-tutorial/tsconfig.json b/build-tests-samples/heft-serverless-stack-tutorial/tsconfig.json index fabb41a31d..fb86ba34ed 100644 --- a/build-tests-samples/heft-serverless-stack-tutorial/tsconfig.json +++ b/build-tests-samples/heft-serverless-stack-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -26,6 +26,5 @@ "target": "es2017", "lib": ["es2017", "DOM"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/heft-webpack-basic-tutorial/tsconfig.json b/build-tests-samples/heft-webpack-basic-tutorial/tsconfig.json index 4d703032a2..7c377b06b3 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/tsconfig.json +++ b/build-tests-samples/heft-webpack-basic-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -26,6 +26,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/packlets-tutorial/tsconfig.json b/build-tests-samples/packlets-tutorial/tsconfig.json index 3a994cbd1c..8968fb092b 100644 --- a/build-tests-samples/packlets-tutorial/tsconfig.json +++ b/build-tests-samples/packlets-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -24,6 +24,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-subspace/rush-sdk-test/tsconfig.json b/build-tests-subspace/rush-sdk-test/tsconfig.json index a56f7ca421..7c6800ed98 100644 --- a/build-tests-subspace/rush-sdk-test/tsconfig.json +++ b/build-tests-subspace/rush-sdk-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "module": "commonjs", diff --git a/build-tests-subspace/typescript-v4-test/tsconfig.json b/build-tests-subspace/typescript-v4-test/tsconfig.json index d16a11b11e..b4a2bb819a 100644 --- a/build-tests-subspace/typescript-v4-test/tsconfig.json +++ b/build-tests-subspace/typescript-v4-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "module": "commonjs", diff --git a/build-tests/api-extractor-lib1-test/tsconfig.json b/build-tests/api-extractor-lib1-test/tsconfig.json index d080f1b161..47f16e7926 100644 --- a/build-tests/api-extractor-lib1-test/tsconfig.json +++ b/build-tests/api-extractor-lib1-test/tsconfig.json @@ -9,7 +9,7 @@ "experimentalDecorators": true, "strictNullChecks": true, "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable"], - "outDir": "lib" + "outDir": "lib-commonjs" }, "include": ["src/**/*.ts"] } diff --git a/build-tests/api-extractor-test-04/beta-consumer/tsconfig.json b/build-tests/api-extractor-test-04/beta-consumer/tsconfig.json index a2f349c815..7f2efa812b 100644 --- a/build-tests/api-extractor-test-04/beta-consumer/tsconfig.json +++ b/build-tests/api-extractor-test-04/beta-consumer/tsconfig.json @@ -9,7 +9,7 @@ "experimentalDecorators": true, "strictNullChecks": true, "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable"], - "outDir": "lib" + "outDir": "lib-commonjs" }, "include": ["src/**/*.ts", "typings/tsd.d.ts"] } diff --git a/build-tests/eslint-7-11-test/tsconfig.json b/build-tests/eslint-7-11-test/tsconfig.json index 8768da8a20..f0f30450e2 100644 --- a/build-tests/eslint-7-11-test/tsconfig.json +++ b/build-tests/eslint-7-11-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "rootDir": "src", "declarationDir": "lib-dts", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/eslint-7-7-test/tsconfig.json b/build-tests/eslint-7-7-test/tsconfig.json index 073f2732c4..9dee0ce958 100644 --- a/build-tests/eslint-7-7-test/tsconfig.json +++ b/build-tests/eslint-7-7-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/eslint-7-test/tsconfig.json b/build-tests/eslint-7-test/tsconfig.json index 073f2732c4..9dee0ce958 100644 --- a/build-tests/eslint-7-test/tsconfig.json +++ b/build-tests/eslint-7-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/eslint-8-test/tsconfig.json b/build-tests/eslint-8-test/tsconfig.json index 073f2732c4..9dee0ce958 100644 --- a/build-tests/eslint-8-test/tsconfig.json +++ b/build-tests/eslint-8-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json index 3c76f6a7ae..a5503632f5 100644 --- a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"] } diff --git a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json index 50256c44ac..912cf8f084 100644 --- a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -20,6 +20,5 @@ "lib": ["es5"] }, - "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"] } diff --git a/build-tests/eslint-bulk-suppressions-test/tsconfig.json b/build-tests/eslint-bulk-suppressions-test/tsconfig.json index 3c76f6a7ae..a5503632f5 100644 --- a/build-tests/eslint-bulk-suppressions-test/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-esm", "declarationDir": "lib-dts", "rootDir": "src", @@ -21,6 +21,5 @@ "lib": ["es5"] }, - "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["client/**/*.ts", "client/**/*.tsx", "server/**/*.ts", "server/**/*.tsx"] } diff --git a/build-tests/hashed-folder-copy-plugin-webpack5-test/tsconfig.json b/build-tests/hashed-folder-copy-plugin-webpack5-test/tsconfig.json index 0c28792450..f75d74a5e8 100644 --- a/build-tests/hashed-folder-copy-plugin-webpack5-test/tsconfig.json +++ b/build-tests/hashed-folder-copy-plugin-webpack5-test/tsconfig.json @@ -15,7 +15,7 @@ "target": "es5", "types": ["webpack-env", "@rushstack/hashed-folder-copy-plugin/ambientTypes"], - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "rootDirs": ["src", "temp/loc-json-ts"] }, diff --git a/build-tests/heft-example-lifecycle-plugin/tsconfig.json b/build-tests/heft-example-lifecycle-plugin/tsconfig.json index 2d179c7173..e2f3510802 100644 --- a/build-tests/heft-example-lifecycle-plugin/tsconfig.json +++ b/build-tests/heft-example-lifecycle-plugin/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-example-plugin-01/tsconfig.json b/build-tests/heft-example-plugin-01/tsconfig.json index 2d179c7173..e2f3510802 100644 --- a/build-tests/heft-example-plugin-01/tsconfig.json +++ b/build-tests/heft-example-plugin-01/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-example-plugin-02/tsconfig.json b/build-tests/heft-example-plugin-02/tsconfig.json index 2d179c7173..e2f3510802 100644 --- a/build-tests/heft-example-plugin-02/tsconfig.json +++ b/build-tests/heft-example-plugin-02/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-fastify-test/tsconfig.json b/build-tests/heft-fastify-test/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/build-tests/heft-fastify-test/tsconfig.json +++ b/build-tests/heft-fastify-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-jest-preset-test/tsconfig.json b/build-tests/heft-jest-preset-test/tsconfig.json index 0ad08cab8f..4178fcb7a1 100644 --- a/build-tests/heft-jest-preset-test/tsconfig.json +++ b/build-tests/heft-jest-preset-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "ES2015", "lib": ["ES2015"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-jest-reporters-test/tsconfig.json b/build-tests/heft-jest-reporters-test/tsconfig.json index ffed841a22..57465fc850 100644 --- a/build-tests/heft-jest-reporters-test/tsconfig.json +++ b/build-tests/heft-jest-reporters-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2020", "lib": ["es2020"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-node-everything-esm-module-test/config/heft.json b/build-tests/heft-node-everything-esm-module-test/config/heft.json index a82a1fd0bb..bfb4f25a90 100644 --- a/build-tests/heft-node-everything-esm-module-test/config/heft.json +++ b/build-tests/heft-node-everything-esm-module-test/config/heft.json @@ -6,7 +6,7 @@ "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-esnext", "lib-umd"] }], + "cleanFiles": [{ "includeGlobs": ["dist", "lib-commonjs", "lib", "lib-esm", "lib-esnext", "lib-umd"] }], "tasksByName": { "typescript": { diff --git a/build-tests/heft-node-everything-esm-module-test/config/rush-project.json b/build-tests/heft-node-everything-esm-module-test/config/rush-project.json index a93c6b2720..95af43b193 100644 --- a/build-tests/heft-node-everything-esm-module-test/config/rush-project.json +++ b/build-tests/heft-node-everything-esm-module-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["dist", "lib", "lib-esnext", "lib-umd"] + "outputFolderNames": ["dist", "lib-commonjs", "lib-esm", "lib-umd"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-node-everything-esm-module-test/config/typescript.json b/build-tests/heft-node-everything-esm-module-test/config/typescript.json index 7295774598..d7616572a6 100644 --- a/build-tests/heft-node-everything-esm-module-test/config/typescript.json +++ b/build-tests/heft-node-everything-esm-module-test/config/typescript.json @@ -11,7 +11,7 @@ "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-esm" }, { "moduleKind": "umd", diff --git a/build-tests/heft-node-everything-esm-module-test/tsconfig.json b/build-tests/heft-node-everything-esm-module-test/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/build-tests/heft-node-everything-esm-module-test/tsconfig.json +++ b/build-tests/heft-node-everything-esm-module-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-node-everything-test/config/heft.json b/build-tests/heft-node-everything-test/config/heft.json index 08d9c72b92..568860391f 100644 --- a/build-tests/heft-node-everything-test/config/heft.json +++ b/build-tests/heft-node-everything-test/config/heft.json @@ -13,7 +13,7 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-esnext", "lib-umd"] }], + "cleanFiles": [{ "includeGlobs": ["dist", "lib-commonjs", "lib", "lib-esm", "lib-esnext", "lib-umd"] }], "tasksByName": { "typescript": { diff --git a/build-tests/heft-node-everything-test/config/rush-project.json b/build-tests/heft-node-everything-test/config/rush-project.json index a93c6b2720..95af43b193 100644 --- a/build-tests/heft-node-everything-test/config/rush-project.json +++ b/build-tests/heft-node-everything-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["dist", "lib", "lib-esnext", "lib-umd"] + "outputFolderNames": ["dist", "lib-commonjs", "lib-esm", "lib-umd"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-node-everything-test/config/typescript.json b/build-tests/heft-node-everything-test/config/typescript.json index 7295774598..d7616572a6 100644 --- a/build-tests/heft-node-everything-test/config/typescript.json +++ b/build-tests/heft-node-everything-test/config/typescript.json @@ -11,7 +11,7 @@ "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-esm" }, { "moduleKind": "umd", diff --git a/build-tests/heft-node-everything-test/tsconfig.json b/build-tests/heft-node-everything-test/tsconfig.json index 845c0343e3..b2ec41e114 100644 --- a/build-tests/heft-node-everything-test/tsconfig.json +++ b/build-tests/heft-node-everything-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-parameter-plugin-test/tsconfig.json b/build-tests/heft-parameter-plugin-test/tsconfig.json index 98464e7dfe..f8d1ad8c88 100644 --- a/build-tests/heft-parameter-plugin-test/tsconfig.json +++ b/build-tests/heft-parameter-plugin-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-parameter-plugin/tsconfig.json b/build-tests/heft-parameter-plugin/tsconfig.json index 2d179c7173..e2f3510802 100644 --- a/build-tests/heft-parameter-plugin/tsconfig.json +++ b/build-tests/heft-parameter-plugin/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-rspack-everything-test/tsconfig.json b/build-tests/heft-rspack-everything-test/tsconfig.json index 1838fa44b7..e36104a989 100644 --- a/build-tests/heft-rspack-everything-test/tsconfig.json +++ b/build-tests/heft-rspack-everything-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "allowArbitraryExtensions": true, @@ -24,6 +24,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-sass-test/tsconfig.json b/build-tests/heft-sass-test/tsconfig.json index aab26ef92a..2cba886d6d 100644 --- a/build-tests/heft-sass-test/tsconfig.json +++ b/build-tests/heft-sass-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "rootDirs": ["src", "temp/sass-ts"], @@ -22,6 +22,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-typescript-v2-test/config/typescript.json b/build-tests/heft-typescript-v2-test/config/typescript.json index 433bdbea19..85dc7d42b7 100644 --- a/build-tests/heft-typescript-v2-test/config/typescript.json +++ b/build-tests/heft-typescript-v2-test/config/typescript.json @@ -11,7 +11,7 @@ "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-esm" }, { "moduleKind": "umd", diff --git a/build-tests/heft-typescript-v2-test/tsconfig.json b/build-tests/heft-typescript-v2-test/tsconfig.json index 4596d66604..9d6a675868 100644 --- a/build-tests/heft-typescript-v2-test/tsconfig.json +++ b/build-tests/heft-typescript-v2-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -23,6 +23,5 @@ // TODO: REVERT THIS AFTER WE UPGRADE heft-typescript-v2-test TO A NEWER VERSION "skipLibCheck": true }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-typescript-v3-test/config/heft.json b/build-tests/heft-typescript-v3-test/config/heft.json index 7a5e5b56ad..07fd7b53d0 100644 --- a/build-tests/heft-typescript-v3-test/config/heft.json +++ b/build-tests/heft-typescript-v3-test/config/heft.json @@ -4,7 +4,7 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-esnext", "lib-umd", "temp"] }], + "cleanFiles": [{ "includeGlobs": ["dist", "lib-commonjs", "lib", "lib-esnext", "lib-umd", "temp"] }], "tasksByName": { "typescript": { diff --git a/build-tests/heft-typescript-v3-test/config/rush-project.json b/build-tests/heft-typescript-v3-test/config/rush-project.json index a93c6b2720..95af43b193 100644 --- a/build-tests/heft-typescript-v3-test/config/rush-project.json +++ b/build-tests/heft-typescript-v3-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["dist", "lib", "lib-esnext", "lib-umd"] + "outputFolderNames": ["dist", "lib-commonjs", "lib-esm", "lib-umd"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-typescript-v3-test/config/typescript.json b/build-tests/heft-typescript-v3-test/config/typescript.json index 433bdbea19..85dc7d42b7 100644 --- a/build-tests/heft-typescript-v3-test/config/typescript.json +++ b/build-tests/heft-typescript-v3-test/config/typescript.json @@ -11,7 +11,7 @@ "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-esm" }, { "moduleKind": "umd", diff --git a/build-tests/heft-typescript-v3-test/tsconfig.json b/build-tests/heft-typescript-v3-test/tsconfig.json index a24c429ddf..a141c3e954 100644 --- a/build-tests/heft-typescript-v3-test/tsconfig.json +++ b/build-tests/heft-typescript-v3-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-typescript-v4-test/config/heft.json b/build-tests/heft-typescript-v4-test/config/heft.json index 7a5e5b56ad..460ff4c0c9 100644 --- a/build-tests/heft-typescript-v4-test/config/heft.json +++ b/build-tests/heft-typescript-v4-test/config/heft.json @@ -4,7 +4,9 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-esnext", "lib-umd", "temp"] }], + "cleanFiles": [ + { "includeGlobs": ["dist", "lib-commonjs", "lib", "lib-esm", "lib-esnext", "lib-umd", "temp"] } + ], "tasksByName": { "typescript": { diff --git a/build-tests/heft-typescript-v4-test/config/rush-project.json b/build-tests/heft-typescript-v4-test/config/rush-project.json index a93c6b2720..95af43b193 100644 --- a/build-tests/heft-typescript-v4-test/config/rush-project.json +++ b/build-tests/heft-typescript-v4-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["dist", "lib", "lib-esnext", "lib-umd"] + "outputFolderNames": ["dist", "lib-commonjs", "lib-esm", "lib-umd"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-typescript-v4-test/config/typescript.json b/build-tests/heft-typescript-v4-test/config/typescript.json index 433bdbea19..85dc7d42b7 100644 --- a/build-tests/heft-typescript-v4-test/config/typescript.json +++ b/build-tests/heft-typescript-v4-test/config/typescript.json @@ -11,7 +11,7 @@ "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-esm" }, { "moduleKind": "umd", diff --git a/build-tests/heft-typescript-v4-test/tsconfig.json b/build-tests/heft-typescript-v4-test/tsconfig.json index a24c429ddf..a141c3e954 100644 --- a/build-tests/heft-typescript-v4-test/tsconfig.json +++ b/build-tests/heft-typescript-v4-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-commonjs", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -20,6 +20,5 @@ "target": "es2017", "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-webpack4-everything-test/tsconfig.json b/build-tests/heft-webpack4-everything-test/tsconfig.json index eb547d1f50..2b5b7ac967 100644 --- a/build-tests/heft-webpack4-everything-test/tsconfig.json +++ b/build-tests/heft-webpack4-everything-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -23,6 +23,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/heft-webpack5-everything-test/tsconfig.json b/build-tests/heft-webpack5-everything-test/tsconfig.json index a6ce628bed..e3c0ce2496 100644 --- a/build-tests/heft-webpack5-everything-test/tsconfig.json +++ b/build-tests/heft-webpack5-everything-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "allowArbitraryExtensions": true, @@ -24,6 +24,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json index fd1c9386b5..7fed53142a 100644 --- a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json +++ b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/tsconfig.json @@ -22,6 +22,5 @@ "lib": ["es2017"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json b/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json index 3e96c008cd..75355e8f91 100644 --- a/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json +++ b/build-tests/rush-redis-cobuild-plugin-integration-test/tsconfig.json @@ -23,6 +23,5 @@ "lib": ["es2017", "DOM"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests/set-webpack-public-path-plugin-test/tsconfig.json b/build-tests/set-webpack-public-path-plugin-test/tsconfig.json index dad0392042..cf3d039b7d 100644 --- a/build-tests/set-webpack-public-path-plugin-test/tsconfig.json +++ b/build-tests/set-webpack-public-path-plugin-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/webpack-local-version-test/tsconfig.json b/build-tests/webpack-local-version-test/tsconfig.json index dad0392042..cf3d039b7d 100644 --- a/build-tests/webpack-local-version-test/tsconfig.json +++ b/build-tests/webpack-local-version-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, From 2df340d5980bfa1541bc7f8b2192a81b52b9a689 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:08:25 -0800 Subject: [PATCH 09/43] fixup! Update paths in web projects. --- .../package.json | 26 ++++++++++++++++--- .../tsconfig.json | 5 ++-- .../package.json | 26 ++++++++++++++++--- .../tsconfig.json | 5 ++-- libraries/load-themed-styles/config/heft.json | 11 -------- .../config/rush-project.json | 12 --------- .../load-themed-styles/config/typescript.json | 7 ++--- .../profiles/app/config/heft.json | 2 ++ .../profiles/library/config/heft.json | 2 ++ 9 files changed, 56 insertions(+), 40 deletions(-) delete mode 100644 libraries/load-themed-styles/config/heft.json delete mode 100644 libraries/load-themed-styles/config/rush-project.json diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json b/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json index bc034dbafd..01563e9d74 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json +++ b/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json @@ -3,9 +3,29 @@ "version": "0.0.0", "private": true, "description": "Storybook build dependencies for heft-storybook-v6-react-tutorial", - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", + "exports": { + ".": { + "require": "./lib-commonjs/index.js", + "import": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "require": "./lib-commonjs/*", + "import": "./lib-esm/*", + "types": "./lib-dts/*" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/tsconfig.json b/build-tests-samples/heft-storybook-v6-react-tutorial/tsconfig.json index 4d703032a2..7c377b06b3 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/tsconfig.json +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -26,6 +26,5 @@ "target": "es5", "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable", "dom"] }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json b/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json index 02d412fb0d..e3bde66977 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json +++ b/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json @@ -3,9 +3,29 @@ "version": "0.0.0", "private": true, "description": "Storybook build dependencies for heft-storybook-v9-react-tutorial", - "main": "lib-commonjs/index.js", - "module": "lib/index.js", - "types": "lib/index.d.ts", + "main": "./lib-commonjs/index.js", + "module": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", + "exports": { + ".": { + "require": "./lib-commonjs/index.js", + "import": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts" + }, + "./lib/*": { + "require": "./lib-commonjs/*", + "import": "./lib-esm/*", + "types": "./lib-dts/*" + }, + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "scripts": { "build": "heft build --clean", "_phase:build": "heft run --only build -- --clean" diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/tsconfig.json b/build-tests-samples/heft-storybook-v9-react-tutorial/tsconfig.json index d9da69ce34..f5e1932b4f 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/tsconfig.json +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib", + "outDir": "lib-esm", "rootDir": "src", "forceConsistentCasingInFileNames": true, @@ -27,6 +27,5 @@ "lib": ["es2020", "scripthost", "dom"], "skipLibCheck": true }, - "include": ["src/**/*.ts", "src/**/*.tsx"], - "exclude": ["node_modules", "lib"] + "include": ["src/**/*.ts", "src/**/*.tsx"] } diff --git a/libraries/load-themed-styles/config/heft.json b/libraries/load-themed-styles/config/heft.json deleted file mode 100644 index 9016348093..0000000000 --- a/libraries/load-themed-styles/config/heft.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", - - "extends": "local-web-rig/profiles/library/config/heft.json", - - "phasesByName": { - "build": { - "cleanFiles": [{ "includeGlobs": ["lib-dts", "lib-esm"] }] - } - } -} diff --git a/libraries/load-themed-styles/config/rush-project.json b/libraries/load-themed-styles/config/rush-project.json deleted file mode 100644 index de5c9b428a..0000000000 --- a/libraries/load-themed-styles/config/rush-project.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush-project.schema.json", - - "extends": "local-web-rig/profiles/library/config/rush-project.json", - - "operationSettings": [ - { - "operationName": "_phase:build", - "outputFolderNames": ["lib-dts", "lib-esm"] - } - ] -} diff --git a/libraries/load-themed-styles/config/typescript.json b/libraries/load-themed-styles/config/typescript.json index ece203c810..757aae0da5 100644 --- a/libraries/load-themed-styles/config/typescript.json +++ b/libraries/load-themed-styles/config/typescript.json @@ -4,6 +4,8 @@ { "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", + "extends": "local-web-rig/profiles/library/config/typescript.json", + /** * If provided, emit these module kinds in addition to the modules specified in the tsconfig. * Note that this option only applies to the main tsconfig.json configuration. @@ -23,11 +25,6 @@ { "moduleKind": "amd", "outFolderName": "lib-amd" - }, - - { - "moduleKind": "commonjs", - "outFolderName": "lib-commonjs" } ] } diff --git a/rigs/local-web-rig/profiles/app/config/heft.json b/rigs/local-web-rig/profiles/app/config/heft.json index e3679801f2..e4476d38ce 100644 --- a/rigs/local-web-rig/profiles/app/config/heft.json +++ b/rigs/local-web-rig/profiles/app/config/heft.json @@ -5,6 +5,8 @@ "phasesByName": { "build": { + "cleanFiles": [{ "includeGlobs": ["lib-esm"] }], + "tasksByName": { "lint": { "taskPlugin": { diff --git a/rigs/local-web-rig/profiles/library/config/heft.json b/rigs/local-web-rig/profiles/library/config/heft.json index d26de84e78..ce53bdc260 100644 --- a/rigs/local-web-rig/profiles/library/config/heft.json +++ b/rigs/local-web-rig/profiles/library/config/heft.json @@ -5,6 +5,8 @@ "phasesByName": { "build": { + "cleanFiles": [{ "includeGlobs": ["lib-esm"] }], + "tasksByName": { "lint": { "taskPlugin": { From a4764f6194c6a695add3f4c5f4082f8b25c677e3 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:13:28 -0800 Subject: [PATCH 10/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- rigs/local-node-rig/profiles/default/config/heft.json | 2 ++ webpack/webpack-deep-imports-plugin/README.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/rigs/local-node-rig/profiles/default/config/heft.json b/rigs/local-node-rig/profiles/default/config/heft.json index b8d4218212..c4dc9b3781 100644 --- a/rigs/local-node-rig/profiles/default/config/heft.json +++ b/rigs/local-node-rig/profiles/default/config/heft.json @@ -5,6 +5,8 @@ "phasesByName": { "build": { + "cleanFiles": [{ "includeGlobs": ["lib-esnext"] }], + "tasksByName": { "lint": { "taskPlugin": { diff --git a/webpack/webpack-deep-imports-plugin/README.md b/webpack/webpack-deep-imports-plugin/README.md index b26aa1ac02..4eada1e0e2 100644 --- a/webpack/webpack-deep-imports-plugin/README.md +++ b/webpack/webpack-deep-imports-plugin/README.md @@ -32,12 +32,12 @@ const { DeepImportsPlugin } = require('@rushstack/webpack-deep-imports-plugin'); const configuration = { entry: { - 'my-project': `${__dirname}/lib-esnext/index.js` + 'my-project': `${__dirname}/lib-esm/index.js` }, plugins: [ new DeepImportsPlugin({ path: `${__dirname}/dist/my-project-manifest.json`, // From `DllPlugin`'s options - inFolderName: 'lib-esnext', // The folder containing the original loose files and the entrypoint + inFolderName: 'lib-esm', // The folder containing the original loose files and the entrypoint outFolderName: 'lib', // The folder where the bundle and commonJS files will be written pathsToIgnore: ['folder/not-included-in-bundle.js'], dTsFilesInputFolderName: 'lib-commonjs' // The folder containing loose .d.ts files From 745ff8785c66bd5886c353ec0ba217d5662466c8 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:18:17 -0800 Subject: [PATCH 11/43] fixup! Clean up output folders in tests. --- .../heft-node-basic-tutorial/config/rush-project.json | 2 +- .../heft-node-jest-tutorial/config/rush-project.json | 2 +- .../heft-serverless-stack-tutorial/config/rush-project.json | 2 +- .../heft-storybook-v6-react-tutorial/config/rush-project.json | 2 +- .../heft-storybook-v9-react-tutorial/config/rush-project.json | 2 +- .../heft-webpack-basic-tutorial/config/rush-project.json | 2 +- build-tests-samples/packlets-tutorial/config/rush-project.json | 2 +- .../typescript-v4-test/config/rush-project.json | 2 +- build-tests/api-extractor-lib1-test/config/rush-project.json | 2 +- .../config/rush-project.json | 2 +- .../heft-example-lifecycle-plugin/config/rush-project.json | 2 +- build-tests/heft-example-plugin-01/config/rush-project.json | 2 +- build-tests/heft-example-plugin-02/config/rush-project.json | 2 +- build-tests/heft-fastify-test/config/rush-project.json | 2 +- build-tests/heft-jest-preset-test/config/rush-project.json | 2 +- build-tests/heft-jest-reporters-test/config/rush-project.json | 2 +- build-tests/heft-parameter-plugin-test/config/rush-project.json | 2 +- build-tests/heft-parameter-plugin/config/rush-project.json | 2 +- .../heft-rspack-everything-test/config/rush-project.json | 2 +- build-tests/heft-sass-test/config/rush-project.json | 2 +- build-tests/heft-typescript-v2-test/config/rush-project.json | 2 +- .../heft-webpack4-everything-test/config/rush-project.json | 2 +- .../heft-webpack5-everything-test/config/rush-project.json | 2 +- .../config/rush-project.json | 2 +- build-tests/webpack-local-version-test/config/rush-project.json | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/build-tests-samples/heft-node-basic-tutorial/config/rush-project.json b/build-tests-samples/heft-node-basic-tutorial/config/rush-project.json index 9042450ba2..21fa5b8e2e 100644 --- a/build-tests-samples/heft-node-basic-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-node-basic-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-commonjs", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/heft-node-jest-tutorial/config/rush-project.json b/build-tests-samples/heft-node-jest-tutorial/config/rush-project.json index 9042450ba2..21fa5b8e2e 100644 --- a/build-tests-samples/heft-node-jest-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-node-jest-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-commonjs", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/heft-serverless-stack-tutorial/config/rush-project.json b/build-tests-samples/heft-serverless-stack-tutorial/config/rush-project.json index 9042450ba2..21fa5b8e2e 100644 --- a/build-tests-samples/heft-serverless-stack-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-serverless-stack-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-commonjs", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/config/rush-project.json b/build-tests-samples/heft-storybook-v6-react-tutorial/config/rush-project.json index 9042450ba2..52ba509ef7 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/config/rush-project.json b/build-tests-samples/heft-storybook-v9-react-tutorial/config/rush-project.json index 9042450ba2..52ba509ef7 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/heft-webpack-basic-tutorial/config/rush-project.json b/build-tests-samples/heft-webpack-basic-tutorial/config/rush-project.json index 9042450ba2..52ba509ef7 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/config/rush-project.json +++ b/build-tests-samples/heft-webpack-basic-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests-samples/packlets-tutorial/config/rush-project.json b/build-tests-samples/packlets-tutorial/config/rush-project.json index 6183592308..ad4743f873 100644 --- a/build-tests-samples/packlets-tutorial/config/rush-project.json +++ b/build-tests-samples/packlets-tutorial/config/rush-project.json @@ -5,7 +5,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": [".heft", "lib", "dist"] + "outputFolderNames": [".heft", "lib-commonjs", "dist"] } ] } diff --git a/build-tests-subspace/typescript-v4-test/config/rush-project.json b/build-tests-subspace/typescript-v4-test/config/rush-project.json index 11f81b2441..d8e232986d 100644 --- a/build-tests-subspace/typescript-v4-test/config/rush-project.json +++ b/build-tests-subspace/typescript-v4-test/config/rush-project.json @@ -2,7 +2,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-commonjs", "dist"] } ] } diff --git a/build-tests/api-extractor-lib1-test/config/rush-project.json b/build-tests/api-extractor-lib1-test/config/rush-project.json index fd37eb2705..b4536921de 100644 --- a/build-tests/api-extractor-lib1-test/config/rush-project.json +++ b/build-tests/api-extractor-lib1-test/config/rush-project.json @@ -5,7 +5,7 @@ { "operationName": "_phase:build", // dist is intentionally tracked - "outputFolderNames": ["lib"] + "outputFolderNames": ["lib-commonjs"] } ] } diff --git a/build-tests/hashed-folder-copy-plugin-webpack5-test/config/rush-project.json b/build-tests/hashed-folder-copy-plugin-webpack5-test/config/rush-project.json index 543278bebd..0dbbaa8317 100644 --- a/build-tests/hashed-folder-copy-plugin-webpack5-test/config/rush-project.json +++ b/build-tests/hashed-folder-copy-plugin-webpack5-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist-dev", "dist-prod"] + "outputFolderNames": ["lib-esm", "dist-dev", "dist-prod"] } ] } diff --git a/build-tests/heft-example-lifecycle-plugin/config/rush-project.json b/build-tests/heft-example-lifecycle-plugin/config/rush-project.json index 514e557d5e..a015d9f1f5 100644 --- a/build-tests/heft-example-lifecycle-plugin/config/rush-project.json +++ b/build-tests/heft-example-lifecycle-plugin/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-commonjs", "dist"] } ] } diff --git a/build-tests/heft-example-plugin-01/config/rush-project.json b/build-tests/heft-example-plugin-01/config/rush-project.json index 514e557d5e..a015d9f1f5 100644 --- a/build-tests/heft-example-plugin-01/config/rush-project.json +++ b/build-tests/heft-example-plugin-01/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-commonjs", "dist"] } ] } diff --git a/build-tests/heft-example-plugin-02/config/rush-project.json b/build-tests/heft-example-plugin-02/config/rush-project.json index 514e557d5e..a015d9f1f5 100644 --- a/build-tests/heft-example-plugin-02/config/rush-project.json +++ b/build-tests/heft-example-plugin-02/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-commonjs", "dist"] } ] } diff --git a/build-tests/heft-fastify-test/config/rush-project.json b/build-tests/heft-fastify-test/config/rush-project.json index 11f81b2441..d8e232986d 100644 --- a/build-tests/heft-fastify-test/config/rush-project.json +++ b/build-tests/heft-fastify-test/config/rush-project.json @@ -2,7 +2,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-commonjs", "dist"] } ] } diff --git a/build-tests/heft-jest-preset-test/config/rush-project.json b/build-tests/heft-jest-preset-test/config/rush-project.json index 030d8d0ff0..a87b21eb4a 100644 --- a/build-tests/heft-jest-preset-test/config/rush-project.json +++ b/build-tests/heft-jest-preset-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-jest-reporters-test/config/rush-project.json b/build-tests/heft-jest-reporters-test/config/rush-project.json index 030d8d0ff0..a87b21eb4a 100644 --- a/build-tests/heft-jest-reporters-test/config/rush-project.json +++ b/build-tests/heft-jest-reporters-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-parameter-plugin-test/config/rush-project.json b/build-tests/heft-parameter-plugin-test/config/rush-project.json index 93089856e4..b3729624ae 100644 --- a/build-tests/heft-parameter-plugin-test/config/rush-project.json +++ b/build-tests/heft-parameter-plugin-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib"] + "outputFolderNames": ["lib-commonjs"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-parameter-plugin/config/rush-project.json b/build-tests/heft-parameter-plugin/config/rush-project.json index a3516b19e5..3437c4d773 100644 --- a/build-tests/heft-parameter-plugin/config/rush-project.json +++ b/build-tests/heft-parameter-plugin/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib"] + "outputFolderNames": ["lib-commonjs"] } ] } diff --git a/build-tests/heft-rspack-everything-test/config/rush-project.json b/build-tests/heft-rspack-everything-test/config/rush-project.json index 030d8d0ff0..a87b21eb4a 100644 --- a/build-tests/heft-rspack-everything-test/config/rush-project.json +++ b/build-tests/heft-rspack-everything-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-sass-test/config/rush-project.json b/build-tests/heft-sass-test/config/rush-project.json index cd98f0644b..8640b4ff7e 100644 --- a/build-tests/heft-sass-test/config/rush-project.json +++ b/build-tests/heft-sass-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "lib-css", "dist", "temp/sass-ts"] + "outputFolderNames": ["lib-esm", "lib-css", "dist", "temp/sass-ts"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-typescript-v2-test/config/rush-project.json b/build-tests/heft-typescript-v2-test/config/rush-project.json index a93c6b2720..95af43b193 100644 --- a/build-tests/heft-typescript-v2-test/config/rush-project.json +++ b/build-tests/heft-typescript-v2-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["dist", "lib", "lib-esnext", "lib-umd"] + "outputFolderNames": ["dist", "lib-commonjs", "lib-esm", "lib-umd"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-webpack4-everything-test/config/rush-project.json b/build-tests/heft-webpack4-everything-test/config/rush-project.json index 030d8d0ff0..a87b21eb4a 100644 --- a/build-tests/heft-webpack4-everything-test/config/rush-project.json +++ b/build-tests/heft-webpack4-everything-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-webpack5-everything-test/config/rush-project.json b/build-tests/heft-webpack5-everything-test/config/rush-project.json index 030d8d0ff0..a87b21eb4a 100644 --- a/build-tests/heft-webpack5-everything-test/config/rush-project.json +++ b/build-tests/heft-webpack5-everything-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist"] + "outputFolderNames": ["lib-esm", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/set-webpack-public-path-plugin-test/config/rush-project.json b/build-tests/set-webpack-public-path-plugin-test/config/rush-project.json index 543278bebd..0dbbaa8317 100644 --- a/build-tests/set-webpack-public-path-plugin-test/config/rush-project.json +++ b/build-tests/set-webpack-public-path-plugin-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib", "dist-dev", "dist-prod"] + "outputFolderNames": ["lib-esm", "dist-dev", "dist-prod"] } ] } diff --git a/build-tests/webpack-local-version-test/config/rush-project.json b/build-tests/webpack-local-version-test/config/rush-project.json index a3516b19e5..504f387541 100644 --- a/build-tests/webpack-local-version-test/config/rush-project.json +++ b/build-tests/webpack-local-version-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib"] + "outputFolderNames": ["lib-esm"] } ] } From 1e571475bf4cfa3ac07b965f17141a39ddd258f0 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 01:28:47 -0800 Subject: [PATCH 12/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- .../heft-jest-plugin/includes/jest-shared.config.json | 10 +++++----- .../profiles/default/config/jest.config.json | 11 +++++++++++ .../profiles/default/config/jest.config.json | 11 +++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/heft-plugins/heft-jest-plugin/includes/jest-shared.config.json b/heft-plugins/heft-jest-plugin/includes/jest-shared.config.json index 766c8c5608..68347ee032 100644 --- a/heft-plugins/heft-jest-plugin/includes/jest-shared.config.json +++ b/heft-plugins/heft-jest-plugin/includes/jest-shared.config.json @@ -53,7 +53,7 @@ "printBasicPrototype": true }, - "snapshotResolver": "../lib/exports/jest-source-map-snapshot-resolver.js", + "snapshotResolver": "../lib-commonjs/exports/jest-source-map-snapshot-resolver.js", // Instruct jest not to run the transformer pipeline by default on JS files. The output files from TypeScript // will already be fully transformed, so this avoids redundant file system operations. @@ -63,9 +63,9 @@ // jest-string-mock-transform returns the filename, relative to the current working directory, where Webpack would return a URL // When using the heft-jest-plugin, these will be replaced with the resolved module location "transform": { - "\\.(css|sass|scss)$": "../lib/exports/jest-identity-mock-transform.js", + "\\.(css|sass|scss)$": "../lib-commonjs/exports/jest-identity-mock-transform.js", - "\\.(aac|eot|gif|jpeg|jpg|m4a|mp3|mp4|oga|otf|png|svg|ttf|wav|webm|webp|woff|woff2)$": "../lib/exports/jest-string-mock-transform.js" + "\\.(aac|eot|gif|jpeg|jpg|m4a|mp3|mp4|oga|otf|png|svg|ttf|wav|webm|webp|woff|woff2)$": "../lib-commonjs/exports/jest-string-mock-transform.js" }, // The modulePathIgnorePatterns below accepts these sorts of paths: @@ -78,8 +78,8 @@ "moduleFileExtensions": ["cjs", "js", "json", "node"], // When using the heft-jest-plugin, these will be replaced with the resolved module location - "setupFiles": ["../lib/exports/jest-global-setup.js"], + "setupFiles": ["../lib-commonjs/exports/jest-global-setup.js"], // When using the heft-jest-plugin, these will be replaced with the resolved module location - "resolver": "../lib/exports/jest-improved-resolver.js" + "resolver": "../lib-commonjs/exports/jest-improved-resolver.js" } diff --git a/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json b/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json index 1127530a18..e45b045989 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json +++ b/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json @@ -1,10 +1,21 @@ { "extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", + "testMatch": ["/lib-commonjs/**/*.test.js"], + // Enable code coverage for Jest "collectCoverage": true, "coverageDirectory": "/coverage", "coverageReporters": ["cobertura", "html"], + "collectCoverageFrom": [ + "lib-commonjs/**/*.js", + "!lib-commonjs/**/*.d.ts", + "!lib-commonjs/**/*.test.js", + "!lib-commonjs/**/test/**", + "!lib-commonjs/**/__tests__/**", + "!lib-commonjs/**/__fixtures__/**", + "!lib-commonjs/**/__mocks__/**" + ], // Use v8 coverage provider to avoid Babel "coverageProvider": "v8", diff --git a/rigs/local-node-rig/profiles/default/config/jest.config.json b/rigs/local-node-rig/profiles/default/config/jest.config.json index 1127530a18..e45b045989 100644 --- a/rigs/local-node-rig/profiles/default/config/jest.config.json +++ b/rigs/local-node-rig/profiles/default/config/jest.config.json @@ -1,10 +1,21 @@ { "extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", + "testMatch": ["/lib-commonjs/**/*.test.js"], + // Enable code coverage for Jest "collectCoverage": true, "coverageDirectory": "/coverage", "coverageReporters": ["cobertura", "html"], + "collectCoverageFrom": [ + "lib-commonjs/**/*.js", + "!lib-commonjs/**/*.d.ts", + "!lib-commonjs/**/*.test.js", + "!lib-commonjs/**/test/**", + "!lib-commonjs/**/__tests__/**", + "!lib-commonjs/**/__fixtures__/**", + "!lib-commonjs/**/__mocks__/**" + ], // Use v8 coverage provider to avoid Babel "coverageProvider": "v8", From a7a8b39ba6daeabb8956ac79078d79a138525960 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 10:16:29 -0800 Subject: [PATCH 13/43] Fix compatability with legacy globally-installed versions of Heft. --- apps/heft/.npmignore | 2 +- apps/heft/config/heft.json | 17 +++++++++++++++++ apps/heft/src/legacy-compatibility/start.ts | 6 ++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 apps/heft/src/legacy-compatibility/start.ts diff --git a/apps/heft/.npmignore b/apps/heft/.npmignore index 3b7d5ed952..52bcd7587a 100644 --- a/apps/heft/.npmignore +++ b/apps/heft/.npmignore @@ -33,4 +33,4 @@ !/includes/** !UPGRADING.md - +lib-*/legacy-compatibility/** diff --git a/apps/heft/config/heft.json b/apps/heft/config/heft.json index 8d1359f022..debe81e690 100644 --- a/apps/heft/config/heft.json +++ b/apps/heft/config/heft.json @@ -20,6 +20,23 @@ ] } } + }, + + "copy-legacy-compatibility-start-js": { + "taskDependencies": ["typescript"], + "taskPlugin": { + "pluginPackage": "@rushstack/heft", + "pluginName": "copy-files-plugin", + "options": { + "copyOperations": [ + { + "sourcePath": "lib-commonjs/legacy-compatibility", + "destinationFolders": ["lib"], + "includeGlobs": ["*"] + } + ] + } + } } } } diff --git a/apps/heft/src/legacy-compatibility/start.ts b/apps/heft/src/legacy-compatibility/start.ts new file mode 100644 index 0000000000..8cdc33e712 --- /dev/null +++ b/apps/heft/src/legacy-compatibility/start.ts @@ -0,0 +1,6 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +// This file is specifically included for compatibility with older global installations of Heft. +require('../lib-commonjs/start.js'); +export {}; From 83c67aa934fc7d6bc2040eed59b3c0bdb23c5ffd Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 10:20:54 -0800 Subject: [PATCH 14/43] Fix a few issues linting and cleaning in local projects. --- .../profiles/default/config/heft.json | 22 ++++++++++++++++++- .../profiles/app/config/heft.json | 6 ++++- .../profiles/library/config/heft.json | 6 ++++- .../profiles/default/config/heft.json | 4 ++++ .../profiles/app/config/heft.json | 2 +- .../profiles/library/config/heft.json | 2 +- 6 files changed, 37 insertions(+), 5 deletions(-) diff --git a/rigs/decoupled-local-node-rig/profiles/default/config/heft.json b/rigs/decoupled-local-node-rig/profiles/default/config/heft.json index 437ad9b13b..77fe092ba0 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/config/heft.json +++ b/rigs/decoupled-local-node-rig/profiles/default/config/heft.json @@ -1,5 +1,25 @@ { "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", - "extends": "@rushstack/heft-node-rig/profiles/default/config/heft.json" + "extends": "@rushstack/heft-node-rig/profiles/default/config/heft.json", + + "phasesByName": { + "build": { + "cleanFiles": [{ "includeGlobs": ["lib-esnext"] }], + + "tasksByName": { + "lint": { + "taskPlugin": { + "options": { + "sarifLogPath": "temp/build/lint/lint.sarif" + } + } + } + } + }, + + "test": { + "cleanFiles": [{ "includeGlobs": ["coverage"] }] + } + } } diff --git a/rigs/heft-web-rig/profiles/app/config/heft.json b/rigs/heft-web-rig/profiles/app/config/heft.json index 8e80c60611..2e357ca82c 100644 --- a/rigs/heft-web-rig/profiles/app/config/heft.json +++ b/rigs/heft-web-rig/profiles/app/config/heft.json @@ -56,7 +56,10 @@ "lint": { "taskDependencies": ["typescript"], "taskPlugin": { - "pluginPackage": "@rushstack/heft-lint-plugin" + "pluginPackage": "@rushstack/heft-lint-plugin", + "options": { + "sarifLogPath": "temp/build/lint/lint.sarif" + } } }, "api-extractor": { @@ -76,6 +79,7 @@ "test": { "phaseDependencies": ["build"], + "cleanFiles": [{ "includeGlobs": ["coverage"] }], "tasksByName": { "jest": { "taskPlugin": { diff --git a/rigs/heft-web-rig/profiles/library/config/heft.json b/rigs/heft-web-rig/profiles/library/config/heft.json index 8e80c60611..2e357ca82c 100644 --- a/rigs/heft-web-rig/profiles/library/config/heft.json +++ b/rigs/heft-web-rig/profiles/library/config/heft.json @@ -56,7 +56,10 @@ "lint": { "taskDependencies": ["typescript"], "taskPlugin": { - "pluginPackage": "@rushstack/heft-lint-plugin" + "pluginPackage": "@rushstack/heft-lint-plugin", + "options": { + "sarifLogPath": "temp/build/lint/lint.sarif" + } } }, "api-extractor": { @@ -76,6 +79,7 @@ "test": { "phaseDependencies": ["build"], + "cleanFiles": [{ "includeGlobs": ["coverage"] }], "tasksByName": { "jest": { "taskPlugin": { diff --git a/rigs/local-node-rig/profiles/default/config/heft.json b/rigs/local-node-rig/profiles/default/config/heft.json index c4dc9b3781..77fe092ba0 100644 --- a/rigs/local-node-rig/profiles/default/config/heft.json +++ b/rigs/local-node-rig/profiles/default/config/heft.json @@ -16,6 +16,10 @@ } } } + }, + + "test": { + "cleanFiles": [{ "includeGlobs": ["coverage"] }] } } } diff --git a/rigs/local-web-rig/profiles/app/config/heft.json b/rigs/local-web-rig/profiles/app/config/heft.json index e4476d38ce..c9728c87ad 100644 --- a/rigs/local-web-rig/profiles/app/config/heft.json +++ b/rigs/local-web-rig/profiles/app/config/heft.json @@ -5,7 +5,7 @@ "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["lib-esm"] }], + "cleanFiles": [{ "includeGlobs": ["lib-dts", "lib-esm"] }], "tasksByName": { "lint": { diff --git a/rigs/local-web-rig/profiles/library/config/heft.json b/rigs/local-web-rig/profiles/library/config/heft.json index ce53bdc260..4b0251d340 100644 --- a/rigs/local-web-rig/profiles/library/config/heft.json +++ b/rigs/local-web-rig/profiles/library/config/heft.json @@ -5,7 +5,7 @@ "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["lib-esm"] }], + "cleanFiles": [{ "includeGlobs": ["lib-dts", "lib-esm"] }], "tasksByName": { "lint": { From 287c7134c8990c6990925c998b99739c1c3fa071 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 10:48:14 -0800 Subject: [PATCH 15/43] Update rush-lib and rush-sdk to the new convention. --- libraries/rush-lib/.gitignore | 1 + libraries/rush-lib/.npmignore | 3 ++ .../rush-lib/assets/rush-init/[dot]gitignore | 1 + libraries/rush-lib/config/api-extractor.json | 2 +- libraries/rush-lib/config/heft.json | 12 +++--- libraries/rush-lib/config/jest.config.json | 20 +++++----- libraries/rush-lib/config/rush-project.json | 10 +++++ libraries/rush-lib/config/typescript.json | 3 +- libraries/rush-lib/package.json | 27 ++++++++++--- .../rush-lib/scripts/copyEmptyModules.js | 18 ++------- libraries/rush-lib/tsconfig.json | 3 +- libraries/rush-lib/webpack.config.js | 28 ++++++------- libraries/rush-sdk/.gitignore | 1 + libraries/rush-sdk/.npmignore | 5 ++- libraries/rush-sdk/config/api-extractor.json | 2 +- libraries/rush-sdk/config/heft.json | 13 ++++++- libraries/rush-sdk/config/jest.config.json | 4 +- libraries/rush-sdk/config/rush-project.json | 7 +++- libraries/rush-sdk/config/typescript.json | 3 +- libraries/rush-sdk/package.json | 7 +++- libraries/rush-sdk/src/generate-stubs.ts | 39 ++++++++++++------- libraries/rush-sdk/src/index.ts | 2 +- libraries/rush-sdk/tsconfig.json | 3 +- libraries/rush-sdk/webpack.config.js | 6 +-- 24 files changed, 138 insertions(+), 82 deletions(-) create mode 100644 libraries/rush-lib/.gitignore create mode 100644 libraries/rush-lib/config/rush-project.json create mode 100644 libraries/rush-sdk/.gitignore diff --git a/libraries/rush-lib/.gitignore b/libraries/rush-lib/.gitignore new file mode 100644 index 0000000000..4717fcdca2 --- /dev/null +++ b/libraries/rush-lib/.gitignore @@ -0,0 +1 @@ +lib-intermediate-*/ \ No newline at end of file diff --git a/libraries/rush-lib/.npmignore b/libraries/rush-lib/.npmignore index 9194692aaf..280c047d5c 100644 --- a/libraries/rush-lib/.npmignore +++ b/libraries/rush-lib/.npmignore @@ -34,3 +34,6 @@ !/assets/** +# Exclude intermediate build outputs (not shipped) +/lib-intermediate-*/** +/lib-commonjs/**/*.exports.json diff --git a/libraries/rush-lib/assets/rush-init/[dot]gitignore b/libraries/rush-lib/assets/rush-init/[dot]gitignore index 1fcd67c780..5c2c299194 100644 --- a/libraries/rush-lib/assets/rush-init/[dot]gitignore +++ b/libraries/rush-lib/assets/rush-init/[dot]gitignore @@ -110,6 +110,7 @@ temp/ lib/ lib-amd/ lib-es6/ +lib-esm/ lib-esnext/ lib-commonjs/ lib-shim/ diff --git a/libraries/rush-lib/config/api-extractor.json b/libraries/rush-lib/config/api-extractor.json index 3386b9a947..5dbfda704f 100644 --- a/libraries/rush-lib/config/api-extractor.json +++ b/libraries/rush-lib/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib-commonjs/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rush-lib/config/heft.json b/libraries/rush-lib/config/heft.json index e260d7e35e..0706e37e4e 100644 --- a/libraries/rush-lib/config/heft.json +++ b/libraries/rush-lib/config/heft.json @@ -9,7 +9,7 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["lib-esnext"] }], + "cleanFiles": [{ "includeGlobs": ["lib-intermediate-commonjs", "lib-intermediate-esm"] }], "tasksByName": { "copy-mock-flush-telemetry-plugin": { @@ -20,26 +20,26 @@ "options": { "copyOperations": [ { - "sourcePath": "lib-commonjs/cli/test/rush-mock-flush-telemetry-plugin", + "sourcePath": "lib-intermediate-commonjs/cli/test/rush-mock-flush-telemetry-plugin", "destinationFolders": [ - "lib-commonjs/cli/test/tapFlushTelemetryAndRunBuildActionRepo/common/autoinstallers/plugins/node_modules/rush-mock-flush-telemetry-plugin" + "lib-intermediate-commonjs/cli/test/tapFlushTelemetryAndRunBuildActionRepo/common/autoinstallers/plugins/node_modules/rush-mock-flush-telemetry-plugin" ], "fileExtensions": [".json", ".js", ".map"], "hardlink": true }, { "sourcePath": "src/cli/test", - "destinationFolders": ["lib-commonjs/cli/test"], + "destinationFolders": ["lib-intermediate-commonjs/cli/test"], "fileExtensions": [".js"] }, { "sourcePath": "src/logic/pnpm/test", - "destinationFolders": ["lib-commonjs/logic/pnpm/test"], + "destinationFolders": ["lib-intermediate-commonjs/logic/pnpm/test"], "fileExtensions": [".yaml"] }, { "sourcePath": "src/logic/test", - "destinationFolders": ["lib-commonjs/logic/test"], + "destinationFolders": ["lib-intermediate-commonjs/logic/test"], "includeGlobs": ["**/.mergequeueignore"] } ] diff --git a/libraries/rush-lib/config/jest.config.json b/libraries/rush-lib/config/jest.config.json index ad4d21b097..38fb384805 100644 --- a/libraries/rush-lib/config/jest.config.json +++ b/libraries/rush-lib/config/jest.config.json @@ -1,19 +1,19 @@ { "extends": "local-node-rig/profiles/default/config/jest.config.json", - "roots": ["/lib-commonjs"], + "roots": ["/lib-intermediate-commonjs"], - "testMatch": ["/lib-commonjs/**/*.test.js"], + "testMatch": ["/lib-intermediate-commonjs/**/*.test.js"], "collectCoverageFrom": [ - "lib-commonjs/**/*.js", - "!lib-commonjs/**/*.d.ts", - "!lib-commonjs/**/*.test.js", - "!lib-commonjs/**/test/**", - "!lib-commonjs/**/__tests__/**", - "!lib-commonjs/**/__fixtures__/**", - "!lib-commonjs/**/__mocks__/**" + "lib-intermediate-commonjs/**/*.js", + "!lib-intermediate-commonjs/**/*.d.ts", + "!lib-intermediate-commonjs/**/*.test.js", + "!lib-intermediate-commonjs/**/test/**", + "!lib-intermediate-commonjs/**/__tests__/**", + "!lib-intermediate-commonjs/**/__fixtures__/**", + "!lib-intermediate-commonjs/**/__mocks__/**" ], - "globalTeardown": "/lib-commonjs/utilities/test/global-teardown.js" + "globalTeardown": "/lib-intermediate-commonjs/utilities/test/global-teardown.js" } diff --git a/libraries/rush-lib/config/rush-project.json b/libraries/rush-lib/config/rush-project.json new file mode 100644 index 0000000000..4e4a32b3f8 --- /dev/null +++ b/libraries/rush-lib/config/rush-project.json @@ -0,0 +1,10 @@ +{ + "extends": "local-node-rig/profiles/default/config/rush-project.json", + + "operationSettings": [ + { + "operationName": "_phase:build", + "outputFolderNames": ["lib-intermediate-commonjs", "lib-intermediate-esm"] + } + ] +} diff --git a/libraries/rush-lib/config/typescript.json b/libraries/rush-lib/config/typescript.json index 587de5fc0f..403432e06f 100644 --- a/libraries/rush-lib/config/typescript.json +++ b/libraries/rush-lib/config/typescript.json @@ -3,10 +3,11 @@ "extends": "local-node-rig/profiles/default/config/typescript.json", + "$additionalModuleKindsToEmit.inheritanceType": "replace", "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-intermediate-esm" } ] } diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index 5fb859511b..dc11fa35f4 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -14,10 +14,21 @@ "homepage": "https://rushjs.io", "main": "./lib/index.js", "types": "./dist/rush-lib.d.ts", + "exports": { + ".": { + "require": "./lib-commonjs/index.js", + "types": "./dist/rush-lib.d.ts" + }, + "./lib/*": { + "require": "./lib-commonjs/*.js", + "types": "./lib-dts/*.d.ts" + }, + "./package.json": "./package.json" + }, "typesVersions": { "*": { - "lib-esnext/*": [ - "lib/*" + "lib/*": [ + "lib-dts/*" ] } }, @@ -96,9 +107,13 @@ "@rushstack/rush-http-build-cache-plugin": "workspace:*" }, "sideEffects": [ - "lib-esnext/start-pnpm.js", - "lib-esnext/start.js", - "lib-esnext/startx.js", - "lib-esnext/utilities/SetRushLibPath.js" + "lib-esm/start-pnpm.js", + "lib-esm/start.js", + "lib-esm/startx.js", + "lib-esm/utilities/SetRushLibPath.js", + "lib-commonjs/start-pnpm.js", + "lib-commonjs/start.js", + "lib-commonjs/startx.js", + "lib-commonjs/utilities/SetRushLibPath.js" ] } diff --git a/libraries/rush-lib/scripts/copyEmptyModules.js b/libraries/rush-lib/scripts/copyEmptyModules.js index 9d0c50f943..51a1247cfe 100644 --- a/libraries/rush-lib/scripts/copyEmptyModules.js +++ b/libraries/rush-lib/scripts/copyEmptyModules.js @@ -22,7 +22,7 @@ module.exports = { // creates a problem when a `.d.ts` file references a module that doesn't have runtime code (i.e. - // a `.d.ts` file that only contains types). // - // This script looks through the `lib-esnext` folder for `.js` files that were produced by the TypeScript + // This script looks through the `lib-intermediate-esm` folder for `.js` files that were produced by the TypeScript // compiler from `.ts` files that contain no runtime code and generates stub `.js` files for them in the // `lib` folder and copies the corresponding `.d.ts` files to the `lib`. This ensures that the `.d.ts` // files that end up in the `lib` folder don't have any unresolved imports. This is tested by the @@ -43,9 +43,8 @@ module.exports = { return resultLines.join('\n'); } - const jsInFolderPath = `${buildFolderPath}/lib-esnext`; - const dtsInFolderPath = `${buildFolderPath}/lib-commonjs`; - const outFolderPath = `${buildFolderPath}/lib`; + const jsInFolderPath = `${buildFolderPath}/lib-intermediate-esm`; + const outCjsFolderPath = `${buildFolderPath}/lib-commonjs`; const emptyModuleBuffer = Buffer.from('module.exports = {};', 'utf8'); const folderPathQueue = new AsyncQueue([undefined]); @@ -65,20 +64,11 @@ module.exports = { const jsFileText = await FileSystem.readFileAsync(jsInPath); const strippedJsFileText = stripCommentsFromJsFile(jsFileText); if (strippedJsFileText === 'export {};') { - const outJsPath = `${outFolderPath}/${relativeItemPath}`; + const outJsPath = `${outCjsFolderPath}/${relativeItemPath}`; terminal.writeVerboseLine(`Writing stub to ${outJsPath}`); await FileSystem.writeFileAsync(outJsPath, emptyModuleBuffer, { ensureFolderExists: true }); - - const relativeDtsPath = - relativeItemPath.slice(0, -JS_FILE_EXTENSION.length) + DTS_FILE_EXTENSION; - const inDtsPath = `${dtsInFolderPath}/${relativeDtsPath}`; - const outDtsPath = `${outFolderPath}/${relativeDtsPath}`; - terminal.writeVerboseLine(`Copying ${inDtsPath} to ${outDtsPath}`); - // We know this is a file, don't need the redundant checks in FileSystem.copyFileAsync - const buffer = await FileSystem.readFileToBufferAsync(inDtsPath); - await FileSystem.writeFileAsync(outDtsPath, buffer, { ensureFolderExists: true }); } } } diff --git a/libraries/rush-lib/tsconfig.json b/libraries/rush-lib/tsconfig.json index 7adbedc6d6..ab86a280c9 100644 --- a/libraries/rush-lib/tsconfig.json +++ b/libraries/rush-lib/tsconfig.json @@ -4,6 +4,7 @@ "types": ["heft-jest", "node", "webpack-env"], "skipLibCheck": true, "resolveJsonModule": true, - "outDir": "lib-commonjs" + "outDir": "lib-intermediate-commonjs", + "declarationDir": "lib-dts" } } diff --git a/libraries/rush-lib/webpack.config.js b/libraries/rush-lib/webpack.config.js index 69dab7281f..085d7f1739 100644 --- a/libraries/rush-lib/webpack.config.js +++ b/libraries/rush-lib/webpack.config.js @@ -4,7 +4,7 @@ const webpack = require('webpack'); const { PackageJsonLookup } = require('@rushstack/node-core-library'); const { PreserveDynamicRequireWebpackPlugin } = require('@rushstack/webpack-preserve-dynamic-require-plugin'); const { DeepImportsPlugin } = require('@rushstack/webpack-deep-imports-plugin'); -const PathConstants = require('./lib-commonjs/utilities/PathConstants'); +const PathConstants = require('./lib-intermediate-commonjs/utilities/PathConstants'); const SCRIPT_ENTRY_OPTIONS = { filename: `${PathConstants.scriptsFolderName}/[name]` @@ -75,10 +75,10 @@ module.exports = () => { const configurations = [ generateConfiguration( { - 'rush-lib': `${__dirname}/lib-esnext/index.js`, - start: `${__dirname}/lib-esnext/start.js`, - startx: `${__dirname}/lib-esnext/startx.js`, - 'start-pnpm': `${__dirname}/lib-esnext/start-pnpm.js` + 'rush-lib': `${__dirname}/lib-intermediate-esm/index.js`, + start: `${__dirname}/lib-intermediate-esm/start.js`, + startx: `${__dirname}/lib-intermediate-esm/startx.js`, + 'start-pnpm': `${__dirname}/lib-intermediate-esm/start-pnpm.js` }, [ new DeepImportsPlugin({ @@ -86,10 +86,10 @@ module.exports = () => { // it needs to specify a template for the manifest filename. // Otherwise webpack will throw an error about multiple writes to the same manifest file. path: `${__dirname}/temp/build/webpack-dll/[name].json`, - inFolderName: 'lib-esnext', - outFolderName: 'lib', + inFolderName: 'lib-intermediate-esm', + outFolderName: 'lib-commonjs', pathsToIgnore: ['utilities/prompts/SearchListPrompt.js'], - dTsFilesInputFolderName: 'lib-commonjs' + dTsFilesInputFolderName: 'lib-dts' }) ], { @@ -106,27 +106,27 @@ module.exports = () => { ), generateConfiguration({ [PathConstants.pnpmfileShimFilename]: { - import: `${__dirname}/lib-esnext/logic/pnpm/PnpmfileShim.js`, + import: `${__dirname}/lib-intermediate-esm/logic/pnpm/PnpmfileShim.js`, ...SCRIPT_ENTRY_OPTIONS }, [PathConstants.subspacePnpmfileShimFilename]: { - import: `${__dirname}/lib-esnext/logic/pnpm/SubspaceGlobalPnpmfileShim.js`, + import: `${__dirname}/lib-intermediate-esm/logic/pnpm/SubspaceGlobalPnpmfileShim.js`, ...SCRIPT_ENTRY_OPTIONS }, [PathConstants.installRunScriptFilename]: { - import: `${__dirname}/lib-esnext/scripts/install-run.js`, + import: `${__dirname}/lib-intermediate-esm/scripts/install-run.js`, ...SCRIPT_ENTRY_OPTIONS }, [PathConstants.installRunRushScriptFilename]: { - import: `${__dirname}/lib-esnext/scripts/install-run-rush.js`, + import: `${__dirname}/lib-intermediate-esm/scripts/install-run-rush.js`, ...SCRIPT_ENTRY_OPTIONS }, [PathConstants.installRunRushxScriptFilename]: { - import: `${__dirname}/lib-esnext/scripts/install-run-rushx.js`, + import: `${__dirname}/lib-intermediate-esm/scripts/install-run-rushx.js`, ...SCRIPT_ENTRY_OPTIONS }, [PathConstants.installRunRushPnpmScriptFilename]: { - import: `${__dirname}/lib-esnext/scripts/install-run-rush-pnpm.js`, + import: `${__dirname}/lib-intermediate-esm/scripts/install-run-rush-pnpm.js`, ...SCRIPT_ENTRY_OPTIONS } }) diff --git a/libraries/rush-sdk/.gitignore b/libraries/rush-sdk/.gitignore new file mode 100644 index 0000000000..4717fcdca2 --- /dev/null +++ b/libraries/rush-sdk/.gitignore @@ -0,0 +1 @@ +lib-intermediate-*/ \ No newline at end of file diff --git a/libraries/rush-sdk/.npmignore b/libraries/rush-sdk/.npmignore index 6d66e80b78..b0201f80fd 100644 --- a/libraries/rush-sdk/.npmignore +++ b/libraries/rush-sdk/.npmignore @@ -30,5 +30,6 @@ # --------------------------------------------------------------------------- # DO NOT MODIFY ABOVE THIS LINE! Add any project-specific overrides below. # --------------------------------------------------------------------------- -/lib-commonjs/** -/lib-esnext/** + +# Exclude intermediate build outputs (not shipped) +/lib-intermediate-*/** \ No newline at end of file diff --git a/libraries/rush-sdk/config/api-extractor.json b/libraries/rush-sdk/config/api-extractor.json index 6ac06d0c07..545b27074b 100644 --- a/libraries/rush-sdk/config/api-extractor.json +++ b/libraries/rush-sdk/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib-commonjs/loader.d.ts", + "mainEntryPointFilePath": "/lib-intermediate-dts/loader.d.ts", "apiReport": { "enabled": true, diff --git a/libraries/rush-sdk/config/heft.json b/libraries/rush-sdk/config/heft.json index 328e456a11..21b0acb80a 100644 --- a/libraries/rush-sdk/config/heft.json +++ b/libraries/rush-sdk/config/heft.json @@ -9,7 +9,16 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["lib-shim", "lib-esnext"] }], + "cleanFiles": [ + { + "includeGlobs": [ + "lib-shim", + "lib-intermediate-commonjs", + "lib-intermediate-esm", + "lib-intermediate-dts" + ] + } + ], "tasksByName": { "copy-rush-lib-types": { @@ -45,7 +54,7 @@ "pluginPackage": "@rushstack/heft", "pluginName": "run-script-plugin", "options": { - "scriptPath": "./lib-commonjs/generate-stubs.js" + "scriptPath": "./lib-intermediate-commonjs/generate-stubs.js" } } } diff --git a/libraries/rush-sdk/config/jest.config.json b/libraries/rush-sdk/config/jest.config.json index 81cf6b7779..a50e6db90d 100644 --- a/libraries/rush-sdk/config/jest.config.json +++ b/libraries/rush-sdk/config/jest.config.json @@ -1,9 +1,9 @@ { "extends": "local-node-rig/profiles/default/config/jest.config.json", - "roots": ["/lib-commonjs"], + "roots": ["/lib-intermediate-commonjs"], - "testMatch": ["/lib-commonjs/**/*.test.js"], + "testMatch": ["/lib-intermediate-commonjs/**/*.test.js"], "collectCoverageFrom": [ "lib-shim/**/*.js", diff --git a/libraries/rush-sdk/config/rush-project.json b/libraries/rush-sdk/config/rush-project.json index aa8aa5984c..4e1fc0eb2a 100644 --- a/libraries/rush-sdk/config/rush-project.json +++ b/libraries/rush-sdk/config/rush-project.json @@ -4,7 +4,12 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib-shim"] + "outputFolderNames": [ + "lib-shim", + "lib-intermediate-commonjs", + "lib-intermediate-esm", + "lib-intermediate-dts" + ] } ] } diff --git a/libraries/rush-sdk/config/typescript.json b/libraries/rush-sdk/config/typescript.json index 587de5fc0f..403432e06f 100644 --- a/libraries/rush-sdk/config/typescript.json +++ b/libraries/rush-sdk/config/typescript.json @@ -3,10 +3,11 @@ "extends": "local-node-rig/profiles/default/config/typescript.json", + "$additionalModuleKindsToEmit.inheritanceType": "replace", "additionalModuleKindsToEmit": [ { "moduleKind": "esnext", - "outFolderName": "lib-esnext" + "outFolderName": "lib-intermediate-esm" } ] } diff --git a/libraries/rush-sdk/package.json b/libraries/rush-sdk/package.json index cf685a5993..c640a8a6e7 100644 --- a/libraries/rush-sdk/package.json +++ b/libraries/rush-sdk/package.json @@ -20,8 +20,8 @@ "default": "./lib-shim/loader.js" }, "./lib/*": { - "types": "./lib/*.d.ts", - "default": "./lib/*.js" + "types": "./lib-commonjs/*.d.ts", + "default": "./lib-dts/*.js" }, "./package.json": "./package.json" }, @@ -29,6 +29,9 @@ "*": { "loader": [ "./dist/loader.d.ts" + ], + "lib/*": [ + "lib-dts/*" ] } }, diff --git a/libraries/rush-sdk/src/generate-stubs.ts b/libraries/rush-sdk/src/generate-stubs.ts index 6baeaa2943..d43b5502fe 100644 --- a/libraries/rush-sdk/src/generate-stubs.ts +++ b/libraries/rush-sdk/src/generate-stubs.ts @@ -8,7 +8,8 @@ import { Async, FileSystem, type FolderItem, Import, JsonFile, Path } from '@rus interface IGenerateOptions { parentSourcePath: string; - parentTargetPath: string; + parentCjsTargetPath: string; + parentDtsTargetPath: string; parentSrcImportPathWithSlash: string; libShimIndexPath: string; } @@ -22,21 +23,29 @@ interface IFileTask { } async function* collectFileTasksAsync(options: IGenerateOptions): AsyncGenerator { - const { parentSourcePath, parentTargetPath, parentSrcImportPathWithSlash, libShimIndexPath } = options; + const { + parentSourcePath, + parentCjsTargetPath, + parentDtsTargetPath, + parentSrcImportPathWithSlash, + libShimIndexPath + } = options; const folderItems: FolderItem[] = await FileSystem.readFolderItemsAsync(options.parentSourcePath); for (const folderItem of folderItems) { const itemName: string = folderItem.name; const sourcePath: string = `${parentSourcePath}/${itemName}`; - const targetPath: string = `${parentTargetPath}/${itemName}`; + const cjsTargetPath: string = `${parentCjsTargetPath}/${itemName}`; + const dtsTargetPath: string = `${parentDtsTargetPath}/${itemName}`; if (folderItem.isDirectory()) { // Ensure destination folder exists - await FileSystem.ensureFolderAsync(targetPath); + await FileSystem.ensureFolderAsync(cjsTargetPath); // Recursively yield tasks from subdirectory yield* collectFileTasksAsync({ parentSourcePath: sourcePath, - parentTargetPath: targetPath, + parentCjsTargetPath: cjsTargetPath, + parentDtsTargetPath: dtsTargetPath, parentSrcImportPathWithSlash: parentSrcImportPathWithSlash + itemName + '/', libShimIndexPath }); @@ -44,17 +53,17 @@ async function* collectFileTasksAsync(options: IGenerateOptions): AsyncGenerator yield { type: 'dts', sourcePath, - targetPath + targetPath: dtsTargetPath }; } else if (folderItem.name.endsWith('.js')) { const srcImportPath: string = parentSrcImportPathWithSlash + path.parse(folderItem.name).name; - const shimPath: string = path.relative(parentTargetPath, libShimIndexPath); + const shimPath: string = path.relative(parentCjsTargetPath, libShimIndexPath); const shimPathLiteral: string = JSON.stringify(Path.convertToSlashes(shimPath)); yield { type: 'js', sourcePath, - targetPath, + targetPath: cjsTargetPath, srcImportPath, shimPathLiteral }; @@ -116,16 +125,20 @@ export async function runAsync(options: IRunScriptOptions): Promise { useNodeJSResolver: true }); - const stubsTargetPath: string = `${buildFolderPath}/lib`; - terminal.writeLine('generate-stubs: Generating stub files under: ' + stubsTargetPath); + const cjsStubsTargetPath: string = `${buildFolderPath}/lib-commonjs`; + const dtsStubsTargetPath: string = `${buildFolderPath}/lib-dts`; + terminal.writeLine( + `generate-stubs: Generating stub files under ${cjsStubsTargetPath} and ${dtsStubsTargetPath}` + ); // Ensure the target folder exists - await FileSystem.ensureFolderAsync(stubsTargetPath); + await FileSystem.ensureFolderAsync(cjsStubsTargetPath); // Collect and process file tasks in parallel with controlled concurrency const tasks: AsyncGenerator = collectFileTasksAsync({ - parentSourcePath: `${rushLibFolder}/lib`, - parentTargetPath: stubsTargetPath, + parentSourcePath: `${rushLibFolder}/lib-commonjs`, + parentCjsTargetPath: cjsStubsTargetPath, + parentDtsTargetPath: dtsStubsTargetPath, parentSrcImportPathWithSlash: '', libShimIndexPath: `${buildFolderPath}/lib-shim/index.js` }); diff --git a/libraries/rush-sdk/src/index.ts b/libraries/rush-sdk/src/index.ts index beaa80bb95..6e1dbaa58b 100644 --- a/libraries/rush-sdk/src/index.ts +++ b/libraries/rush-sdk/src/index.ts @@ -12,7 +12,7 @@ import { Executable } from '@rushstack/node-core-library'; import { Terminal, ConsoleTerminalProvider } from '@rushstack/terminal'; -import { RushGlobalFolder } from '@microsoft/rush-lib/lib-esnext/api/RushGlobalFolder'; +import { RushGlobalFolder } from '@microsoft/rush-lib/lib/api/RushGlobalFolder'; import { RUSH_LIB_NAME, diff --git a/libraries/rush-sdk/tsconfig.json b/libraries/rush-sdk/tsconfig.json index 83f4fb550b..6612b05ca1 100644 --- a/libraries/rush-sdk/tsconfig.json +++ b/libraries/rush-sdk/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json", "compilerOptions": { - "outDir": "lib-commonjs", + "outDir": "lib-intermediate-commonjs", + "declarationDir": "lib-intermediate-dts", "types": [ "node", "heft-jest", diff --git a/libraries/rush-sdk/webpack.config.js b/libraries/rush-sdk/webpack.config.js index df7ae5c392..55f70d4183 100644 --- a/libraries/rush-sdk/webpack.config.js +++ b/libraries/rush-sdk/webpack.config.js @@ -16,7 +16,7 @@ module.exports = ({ webpack: { BannerPlugin } }) => { packageName: '@microsoft/rush-lib', useNodeJSResolver: true }); - const { moduleExports: exportSpecifiers } = require(`${rushLibFolder}/lib/index.exports.json`); + const { moduleExports: exportSpecifiers } = require(`${rushLibFolder}/lib-commonjs/index.exports.json`); // Assign named exports after the bundle to ensure they're properly exposed for ESM imports const footerCodeForLibShim = exportSpecifiers .map((name) => `exports.${name} = module.exports.${name};`) @@ -31,8 +31,8 @@ module.exports = ({ webpack: { BannerPlugin } }) => { devtool: 'source-map', entry: { // Using CommonJS due to access of module.parent - index: `${__dirname}/lib-commonjs/index.js`, - loader: `${__dirname}/lib-commonjs/loader.js` + index: `${__dirname}/lib-intermediate-commonjs/index.js`, + loader: `${__dirname}/lib-intermediate-commonjs/loader.js` }, output: { path: `${__dirname}/lib-shim`, From 07c57524cc03384e102122c05236503c5034b833 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 10:53:02 -0800 Subject: [PATCH 16/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- apps/lockfile-explorer/config/heft.json | 2 +- .../heft-storybook-v6-react-tutorial/.storybook/main.js | 2 +- .../heft-storybook-v9-react-tutorial/.storybook/main.js | 2 +- .../heft-webpack-basic-tutorial/webpack.config.js | 2 +- build-tests-subspace/rush-sdk-test/config/heft.json | 2 +- build-tests/api-documenter-scenarios/config/heft.json | 2 +- build-tests/api-documenter-scenarios/src/runScenarios.ts | 2 +- build-tests/api-extractor-scenarios/config/heft.json | 4 ++-- build-tests/eslint-bulk-suppressions-test-flat/build.js | 2 +- build-tests/eslint-bulk-suppressions-test-legacy/build.js | 2 +- build-tests/eslint-bulk-suppressions-test/build.js | 2 +- .../webpack.config.js | 2 +- build-tests/heft-example-lifecycle-plugin/heft-plugin.json | 2 +- build-tests/heft-example-lifecycle-plugin/package.json | 4 ++-- build-tests/heft-example-plugin-01/heft-plugin.json | 2 +- build-tests/heft-example-plugin-01/package.json | 4 ++-- build-tests/heft-example-plugin-02/heft-plugin.json | 2 +- build-tests/heft-example-plugin-02/package.json | 4 ++-- build-tests/heft-node-everything-test/config/heft.json | 2 +- build-tests/heft-parameter-plugin/heft-plugin.json | 2 +- build-tests/heft-rspack-everything-test/rspack.config.mjs | 4 ++-- build-tests/heft-sass-test/config/heft.json | 2 +- build-tests/heft-sass-test/config/sass.json | 4 ++-- build-tests/heft-sass-test/webpack.config.js | 2 +- build-tests/heft-webpack4-everything-test/webpack.config.js | 4 ++-- build-tests/heft-webpack5-everything-test/webpack.config.js | 4 ++-- build-tests/run-scenarios-helpers/src/index.ts | 2 +- .../src/runRush.ts | 5 ++--- .../set-webpack-public-path-plugin-test/webpack.config.js | 2 +- build-tests/webpack-local-version-test/webpack.config.js | 2 +- eslint/eslint-patch/package.json | 4 ++-- libraries/package-extractor/webpack.config.js | 2 +- vscode-extensions/rush-vscode-command-webview/package.json | 1 + 33 files changed, 43 insertions(+), 43 deletions(-) diff --git a/apps/lockfile-explorer/config/heft.json b/apps/lockfile-explorer/config/heft.json index ca7a830559..d2f77885dc 100644 --- a/apps/lockfile-explorer/config/heft.json +++ b/apps/lockfile-explorer/config/heft.json @@ -45,7 +45,7 @@ "options": { "copyOperations": [ { - "sourcePath": "node_modules/@rushstack/lockfile-explorer-web/lib/packlets/lfx-shared", + "sourcePath": "node_modules/@rushstack/lockfile-explorer-web/lib-dts/packlets/lfx-shared", "destinationFolders": ["build/lfx-shared"], "includeGlobs": ["*.d.ts"] }, diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/.storybook/main.js b/build-tests-samples/heft-storybook-v6-react-tutorial/.storybook/main.js index d4d78a6436..14d42461c9 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/.storybook/main.js +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/.storybook/main.js @@ -1,4 +1,4 @@ module.exports = { - stories: ['../lib/**/*.stories.js'], + stories: ['../lib-esm/**/*.stories.js'], addons: ['@storybook/addon-links', '@storybook/addon-essentials'] }; diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/.storybook/main.js b/build-tests-samples/heft-storybook-v9-react-tutorial/.storybook/main.js index 0969e449d6..2dd156ba39 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/.storybook/main.js +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/.storybook/main.js @@ -1,7 +1,7 @@ const { Import } = require('@rushstack/node-core-library'); module.exports = { - stories: ['../lib/**/*.stories.js'], + stories: ['../lib-esm/**/*.stories.js'], framework: Import.resolvePackage({ packageName: '@storybook/react-webpack5', baseFolderPath: __dirname diff --git a/build-tests-samples/heft-webpack-basic-tutorial/webpack.config.js b/build-tests-samples/heft-webpack-basic-tutorial/webpack.config.js index 683afc0cc9..8df73cadf1 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/webpack.config.js +++ b/build-tests-samples/heft-webpack-basic-tutorial/webpack.config.js @@ -28,7 +28,7 @@ function createWebpackConfig({ production }) { ] }, entry: { - app: path.join(__dirname, 'lib', 'index.js'), + app: path.join(__dirname, 'lib-esm', 'index.js'), // Put these libraries in a separate vendor bundle vendor: ['react', 'react-dom'] diff --git a/build-tests-subspace/rush-sdk-test/config/heft.json b/build-tests-subspace/rush-sdk-test/config/heft.json index f72878eb95..9160e07413 100644 --- a/build-tests-subspace/rush-sdk-test/config/heft.json +++ b/build-tests-subspace/rush-sdk-test/config/heft.json @@ -12,7 +12,7 @@ "pluginPackage": "@rushstack/heft", "pluginName": "run-script-plugin", "options": { - "scriptPath": "./lib/run-start.js" + "scriptPath": "./lib-commonjs/run-start.js" } } } diff --git a/build-tests/api-documenter-scenarios/config/heft.json b/build-tests/api-documenter-scenarios/config/heft.json index 8a028a3304..6aac1a2c85 100644 --- a/build-tests/api-documenter-scenarios/config/heft.json +++ b/build-tests/api-documenter-scenarios/config/heft.json @@ -12,7 +12,7 @@ "pluginPackage": "@rushstack/heft", "pluginName": "run-script-plugin", "options": { - "scriptPath": "./lib/runScenarios.js" + "scriptPath": "./lib-commonjs/runScenarios.js" } } } diff --git a/build-tests/api-documenter-scenarios/src/runScenarios.ts b/build-tests/api-documenter-scenarios/src/runScenarios.ts index ee0e89b847..6dc753d886 100644 --- a/build-tests/api-documenter-scenarios/src/runScenarios.ts +++ b/build-tests/api-documenter-scenarios/src/runScenarios.ts @@ -45,7 +45,7 @@ export async function runAsync(runScriptOptions: IRunScriptOptions): Promise { - const entryPoint: string = `${buildFolderPath}/lib/${scenarioFolderName}/index.d.ts`; + const entryPoint: string = `${buildFolderPath}/lib-dts/${scenarioFolderName}/index.d.ts`; entryPoints.push(entryPoint); const overridesPath: string = `${buildFolderPath}/src/${scenarioFolderName}/config/api-extractor-overrides.json`; diff --git a/build-tests/rush-redis-cobuild-plugin-integration-test/src/runRush.ts b/build-tests/rush-redis-cobuild-plugin-integration-test/src/runRush.ts index 8dd32b0fe8..953fa946c1 100644 --- a/build-tests/rush-redis-cobuild-plugin-integration-test/src/runRush.ts +++ b/build-tests/rush-redis-cobuild-plugin-integration-test/src/runRush.ts @@ -1,9 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -// Import from lib-commonjs for easy debugging -import { RushCommandLineParser } from '@microsoft/rush-lib/lib-commonjs/cli/RushCommandLineParser'; -import * as rushLib from '@microsoft/rush-lib/lib-commonjs'; +import { RushCommandLineParser } from '@microsoft/rush-lib/lib/cli/RushCommandLineParser'; +import * as rushLib from '@microsoft/rush-lib'; // Setup redis cobuild plugin const builtInPluginConfigurations: rushLib._IBuiltInPluginConfiguration[] = []; diff --git a/build-tests/set-webpack-public-path-plugin-test/webpack.config.js b/build-tests/set-webpack-public-path-plugin-test/webpack.config.js index b04d9ecd5c..1fa002a56a 100644 --- a/build-tests/set-webpack-public-path-plugin-test/webpack.config.js +++ b/build-tests/set-webpack-public-path-plugin-test/webpack.config.js @@ -10,7 +10,7 @@ function generateConfiguration(mode, outputFolderName) { mode: mode, target: ['web', 'es5'], entry: { - 'test-bundle': `${__dirname}/lib/index.js` + 'test-bundle': `${__dirname}/lib-esm/index.js` }, output: { path: `${__dirname}/${outputFolderName}`, diff --git a/build-tests/webpack-local-version-test/webpack.config.js b/build-tests/webpack-local-version-test/webpack.config.js index ef670ec1c8..7a72077f94 100644 --- a/build-tests/webpack-local-version-test/webpack.config.js +++ b/build-tests/webpack-local-version-test/webpack.config.js @@ -25,7 +25,7 @@ module.exports = ({ webpack }) => { return { mode: 'development', entry: { - 'test-bundle': `${__dirname}/lib/index.js` + 'test-bundle': `${__dirname}/lib-esm/index.js` } }; }; diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index cc3073ac9c..812ad8e81c 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -18,8 +18,8 @@ "require": "./lib-commonjs/custom-config-package-names.js" }, "./eslint-bulk-suppressions": { - "import": "./lib-esm/eslint-bulk-suppressions.js", - "require": "./lib-commonjs/eslint-bulk-suppressions.js" + "import": "./lib-esm/eslint-bulk-suppressions/index.js", + "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { "import": "./lib-esm/*.js", diff --git a/libraries/package-extractor/webpack.config.js b/libraries/package-extractor/webpack.config.js index 4fc75fa8fd..d0a4857356 100644 --- a/libraries/package-extractor/webpack.config.js +++ b/libraries/package-extractor/webpack.config.js @@ -11,7 +11,7 @@ module.exports = () => { devtool: 'source-map', entry: { [CREATE_LINKS_SCRIPT_FILENAME]: { - import: `${__dirname}/lib-esnext/scripts/createLinks/start.js`, + import: `${__dirname}/lib-esm/scripts/createLinks/start.js`, filename: `[name]` } }, diff --git a/vscode-extensions/rush-vscode-command-webview/package.json b/vscode-extensions/rush-vscode-command-webview/package.json index 30bd573dec..9dfd3abb6a 100644 --- a/vscode-extensions/rush-vscode-command-webview/package.json +++ b/vscode-extensions/rush-vscode-command-webview/package.json @@ -10,6 +10,7 @@ }, "license": "MIT", "main": "./lib-esm/index.js", + "types": "./lib-dts/index.d.ts", "scripts": { "_phase:build": "heft build --clean", "_phase:test": "", From 8dec83dd277a4e9e56191c7e2ec4d88571058201 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 10:56:51 -0800 Subject: [PATCH 17/43] Rush change. --- .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../rush/normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../heft/normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ 71 files changed, 781 insertions(+) create mode 100644 common/changes/@microsoft/api-documenter/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/api-extractor-model/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/api-extractor/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/load-themed-styles/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/loader-load-themed-styles/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@microsoft/webpack5-load-themed-styles-loader/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/cpu-profile-summarizer/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/credential-cache/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/debug-certificate-manager/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/eslint-bulk/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/eslint-patch/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/eslint-plugin-packlets/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/eslint-plugin-security/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/eslint-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/hashed-folder-copy-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-api-extractor-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-config-file/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-dev-cert-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-jest-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-json-schema-typings-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-lint-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-localization-typings-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-rspack-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-sass-load-themed-styles-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-sass-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-serverless-stack-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-storybook-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-typescript-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-vscode-extension-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-webpack4-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-webpack5-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/loader-raw-script/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/localization-utilities/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/lockfile-explorer/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/lookup-by-path/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/mcp-server/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/module-minifier/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/node-core-library/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/npm-check-fork/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/operation-graph/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/package-deps-hash/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/package-extractor/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/playwright-browser-tunnel/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/problem-matcher/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rig-package/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rundown/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rush-mcp-docs-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v10/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v8/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/rush-pnpm-kit-v9/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/set-webpack-public-path-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/stream-collator/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/terminal/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/trace-import/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/tree-pattern/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/ts-command-line/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/typings-generator/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack-embedded-dependencies-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack-plugin-utilities/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack-workspace-resolve-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack4-localization-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack4-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack5-localization-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/webpack5-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/worker-pool/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/zipsync/normalize-build-output_2026-02-17-18-56.json diff --git a/common/changes/@microsoft/api-documenter/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/api-documenter/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..a63df450b9 --- /dev/null +++ b/common/changes/@microsoft/api-documenter/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/api-extractor-model/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..3805dad3bf --- /dev/null +++ b/common/changes/@microsoft/api-extractor-model/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/api-extractor/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..bda63897ae --- /dev/null +++ b/common/changes/@microsoft/api-extractor/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/load-themed-styles/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..5d0a3aac90 --- /dev/null +++ b/common/changes/@microsoft/load-themed-styles/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/loader-load-themed-styles/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..8fa0576e50 --- /dev/null +++ b/common/changes/@microsoft/loader-load-themed-styles/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..686572f469 --- /dev/null +++ b/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/webpack5-load-themed-styles-loader/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..72e154de97 --- /dev/null +++ b/common/changes/@microsoft/webpack5-load-themed-styles-loader/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/cpu-profile-summarizer/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..f86aa8df81 --- /dev/null +++ b/common/changes/@rushstack/cpu-profile-summarizer/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/credential-cache/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..1a289e59fe --- /dev/null +++ b/common/changes/@rushstack/credential-cache/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/debug-certificate-manager/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..b54e457c33 --- /dev/null +++ b/common/changes/@rushstack/debug-certificate-manager/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-bulk/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..94951271d9 --- /dev/null +++ b/common/changes/@rushstack/eslint-bulk/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-patch/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..680408a38e --- /dev/null +++ b/common/changes/@rushstack/eslint-patch/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-plugin-packlets/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..8fe60edcf0 --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin-packlets/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-plugin-security/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ecfca174f7 --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin-security/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..211ed1a5e5 --- /dev/null +++ b/common/changes/@rushstack/eslint-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/hashed-folder-copy-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..496441fe17 --- /dev/null +++ b/common/changes/@rushstack/hashed-folder-copy-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-api-extractor-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..26d53ebd19 --- /dev/null +++ b/common/changes/@rushstack/heft-api-extractor-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-config-file/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..a3ddd77ae5 --- /dev/null +++ b/common/changes/@rushstack/heft-config-file/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-dev-cert-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..d148aa6364 --- /dev/null +++ b/common/changes/@rushstack/heft-dev-cert-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..b601d63781 --- /dev/null +++ b/common/changes/@rushstack/heft-isolated-typescript-transpile-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-jest-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..3119747267 --- /dev/null +++ b/common/changes/@rushstack/heft-jest-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-json-schema-typings-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..d59b0e555e --- /dev/null +++ b/common/changes/@rushstack/heft-json-schema-typings-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-lint-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..6beab2558e --- /dev/null +++ b/common/changes/@rushstack/heft-lint-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-localization-typings-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..21bfc05f81 --- /dev/null +++ b/common/changes/@rushstack/heft-localization-typings-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-rspack-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..48d5c7186e --- /dev/null +++ b/common/changes/@rushstack/heft-rspack-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..e60a9bb957 --- /dev/null +++ b/common/changes/@rushstack/heft-sass-load-themed-styles-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-sass-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..95dcd955b7 --- /dev/null +++ b/common/changes/@rushstack/heft-sass-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-serverless-stack-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..67e01f7bc7 --- /dev/null +++ b/common/changes/@rushstack/heft-serverless-stack-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-storybook-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..aabe996c28 --- /dev/null +++ b/common/changes/@rushstack/heft-storybook-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-typescript-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..c498fdc2c6 --- /dev/null +++ b/common/changes/@rushstack/heft-typescript-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-vscode-extension-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..4edfb969c3 --- /dev/null +++ b/common/changes/@rushstack/heft-vscode-extension-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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-web-rig/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..9af194eb47 --- /dev/null +++ b/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "packageName": "@rushstack/heft-web-rig" + } + ], + "packageName": "@rushstack/heft-web-rig", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/common/changes/@rushstack/heft-webpack4-plugin/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-webpack4-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..29732a160e --- /dev/null +++ b/common/changes/@rushstack/heft-webpack4-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-webpack5-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..30f4b42508 --- /dev/null +++ b/common/changes/@rushstack/heft-webpack5-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..c8a7a3f1ec --- /dev/null +++ b/common/changes/@rushstack/heft/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/loader-raw-script/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..e36284f9aa --- /dev/null +++ b/common/changes/@rushstack/loader-raw-script/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/localization-utilities/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..589e79c7da --- /dev/null +++ b/common/changes/@rushstack/localization-utilities/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/lockfile-explorer/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..29f2362a24 --- /dev/null +++ b/common/changes/@rushstack/lockfile-explorer/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/lookup-by-path/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..bc2caf59cd --- /dev/null +++ b/common/changes/@rushstack/lookup-by-path/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/mcp-server/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..0568b49893 --- /dev/null +++ b/common/changes/@rushstack/mcp-server/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/module-minifier/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..f601edf12b --- /dev/null +++ b/common/changes/@rushstack/module-minifier/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/node-core-library/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..e40edad2b9 --- /dev/null +++ b/common/changes/@rushstack/node-core-library/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/npm-check-fork/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..27dce54b5c --- /dev/null +++ b/common/changes/@rushstack/npm-check-fork/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/operation-graph/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ed8817c65c --- /dev/null +++ b/common/changes/@rushstack/operation-graph/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/package-deps-hash/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..d4a4db906d --- /dev/null +++ b/common/changes/@rushstack/package-deps-hash/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/package-extractor/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..a48111e08a --- /dev/null +++ b/common/changes/@rushstack/package-extractor/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/playwright-browser-tunnel/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ed9d3051a3 --- /dev/null +++ b/common/changes/@rushstack/playwright-browser-tunnel/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/problem-matcher/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..9bf0538a93 --- /dev/null +++ b/common/changes/@rushstack/problem-matcher/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rig-package/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..eadc3e18fd --- /dev/null +++ b/common/changes/@rushstack/rig-package/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rundown/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..abe21c614c --- /dev/null +++ b/common/changes/@rushstack/rundown/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rush-mcp-docs-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..6f945b5c34 --- /dev/null +++ b/common/changes/@rushstack/rush-mcp-docs-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rush-pnpm-kit-v10/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ef8c9f65fa --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v10/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rush-pnpm-kit-v8/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..2f1ae105fd --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v8/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/rush-pnpm-kit-v9/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..96f6cc6ff8 --- /dev/null +++ b/common/changes/@rushstack/rush-pnpm-kit-v9/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/set-webpack-public-path-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..3d54ffa9c1 --- /dev/null +++ b/common/changes/@rushstack/set-webpack-public-path-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/stream-collator/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..5aa474c986 --- /dev/null +++ b/common/changes/@rushstack/stream-collator/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/terminal/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..094c649f96 --- /dev/null +++ b/common/changes/@rushstack/terminal/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/trace-import/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..cd9282f71d --- /dev/null +++ b/common/changes/@rushstack/trace-import/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/tree-pattern/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ce147b4f18 --- /dev/null +++ b/common/changes/@rushstack/tree-pattern/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/ts-command-line/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..1040e479f3 --- /dev/null +++ b/common/changes/@rushstack/ts-command-line/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/typings-generator/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ed4e6e00ff --- /dev/null +++ b/common/changes/@rushstack/typings-generator/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..938285e640 --- /dev/null +++ b/common/changes/@rushstack/webpack-embedded-dependencies-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack-plugin-utilities/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..668c236b30 --- /dev/null +++ b/common/changes/@rushstack/webpack-plugin-utilities/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..9fe8d030ef --- /dev/null +++ b/common/changes/@rushstack/webpack-preserve-dynamic-require-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack-workspace-resolve-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..e53deae0e0 --- /dev/null +++ b/common/changes/@rushstack/webpack-workspace-resolve-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack4-localization-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..0c84d0c4f2 --- /dev/null +++ b/common/changes/@rushstack/webpack4-localization-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack4-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..15aa12e453 --- /dev/null +++ b/common/changes/@rushstack/webpack4-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack5-localization-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..e1f99e4c64 --- /dev/null +++ b/common/changes/@rushstack/webpack5-localization-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/webpack5-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..36ff29bb42 --- /dev/null +++ b/common/changes/@rushstack/webpack5-module-minifier-plugin/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/worker-pool/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..6d0655119e --- /dev/null +++ b/common/changes/@rushstack/worker-pool/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "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/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/zipsync/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..ebe1391dda --- /dev/null +++ b/common/changes/@rushstack/zipsync/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "type": "minor", + "packageName": "@rushstack/zipsync" + } + ], + "packageName": "@rushstack/zipsync", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file From 1b8cb314297a7f651d683fe6889cc01ab0fa3e46 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 11:16:14 -0800 Subject: [PATCH 18/43] fixup! Clean up output folders in tests. --- .../api-extractor-lib1-test/tsconfig.json | 3 ++- build-tests/eslint-7-11-test/tsconfig.json | 24 +------------------ build-tests/eslint-7-7-test/tsconfig.json | 24 +------------------ build-tests/eslint-7-test/tsconfig.json | 24 +------------------ build-tests/eslint-8-test/tsconfig.json | 24 +------------------ .../config/typescript.json | 5 ++++ .../tsconfig.json | 2 +- .../config/typescript.json | 5 ++++ .../tsconfig.json | 2 +- .../config/typescript.json | 5 ++++ .../tsconfig.json | 2 +- .../config/api-extractor.json | 2 +- .../tsconfig.json | 1 + .../config/api-extractor.json | 2 +- .../heft-typescript-v2-test/tsconfig.json | 1 + .../config/api-extractor.json | 2 +- .../heft-typescript-v3-test/tsconfig.json | 1 + .../config/api-extractor.json | 2 +- .../heft-typescript-v4-test/tsconfig.json | 1 + .../localization-plugin-test-01/tsconfig.json | 1 - .../webpack.config.js | 4 ++-- .../config/typescript.json | 2 ++ .../localization-plugin-test-02/tsconfig.json | 1 - .../webpack.config.js | 6 ++--- .../config/typescript.json | 4 ++++ .../localization-plugin-test-03/tsconfig.json | 2 ++ .../webpack.config.js | 2 +- 27 files changed, 46 insertions(+), 108 deletions(-) create mode 100644 build-tests/eslint-bulk-suppressions-test-flat/config/typescript.json create mode 100644 build-tests/eslint-bulk-suppressions-test-legacy/config/typescript.json create mode 100644 build-tests/eslint-bulk-suppressions-test/config/typescript.json create mode 100644 build-tests/localization-plugin-test-03/config/typescript.json diff --git a/build-tests/api-extractor-lib1-test/tsconfig.json b/build-tests/api-extractor-lib1-test/tsconfig.json index 47f16e7926..b7e4568513 100644 --- a/build-tests/api-extractor-lib1-test/tsconfig.json +++ b/build-tests/api-extractor-lib1-test/tsconfig.json @@ -9,7 +9,8 @@ "experimentalDecorators": true, "strictNullChecks": true, "lib": ["es5", "scripthost", "es2015.collection", "es2015.promise", "es2015.iterable"], - "outDir": "lib-commonjs" + "outDir": "lib-commonjs", + "declarationDir": "lib-dts" }, "include": ["src/**/*.ts"] } diff --git a/build-tests/eslint-7-11-test/tsconfig.json b/build-tests/eslint-7-11-test/tsconfig.json index f0f30450e2..dac21d0408 100644 --- a/build-tests/eslint-7-11-test/tsconfig.json +++ b/build-tests/eslint-7-11-test/tsconfig.json @@ -1,25 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - - "compilerOptions": { - "outDir": "lib-esm", - "rootDir": "src", - "declarationDir": "lib-dts", - - "forceConsistentCasingInFileNames": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true, - "inlineSources": true, - "experimentalDecorators": true, - "strictNullChecks": true, - "noUnusedLocals": true, - - "module": "esnext", - "moduleResolution": "node", - "target": "es5", - "lib": ["es5"] - }, - - "include": ["src/**/*.ts", "src/**/*.tsx"] + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } diff --git a/build-tests/eslint-7-7-test/tsconfig.json b/build-tests/eslint-7-7-test/tsconfig.json index 9dee0ce958..dac21d0408 100644 --- a/build-tests/eslint-7-7-test/tsconfig.json +++ b/build-tests/eslint-7-7-test/tsconfig.json @@ -1,25 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - - "compilerOptions": { - "outDir": "lib-esm", - "declarationDir": "lib-dts", - "rootDir": "src", - - "forceConsistentCasingInFileNames": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true, - "inlineSources": true, - "experimentalDecorators": true, - "strictNullChecks": true, - "noUnusedLocals": true, - - "module": "esnext", - "moduleResolution": "node", - "target": "es5", - "lib": ["es5"] - }, - - "include": ["src/**/*.ts", "src/**/*.tsx"] + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } diff --git a/build-tests/eslint-7-test/tsconfig.json b/build-tests/eslint-7-test/tsconfig.json index 9dee0ce958..dac21d0408 100644 --- a/build-tests/eslint-7-test/tsconfig.json +++ b/build-tests/eslint-7-test/tsconfig.json @@ -1,25 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - - "compilerOptions": { - "outDir": "lib-esm", - "declarationDir": "lib-dts", - "rootDir": "src", - - "forceConsistentCasingInFileNames": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true, - "inlineSources": true, - "experimentalDecorators": true, - "strictNullChecks": true, - "noUnusedLocals": true, - - "module": "esnext", - "moduleResolution": "node", - "target": "es5", - "lib": ["es5"] - }, - - "include": ["src/**/*.ts", "src/**/*.tsx"] + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } diff --git a/build-tests/eslint-8-test/tsconfig.json b/build-tests/eslint-8-test/tsconfig.json index 9dee0ce958..dac21d0408 100644 --- a/build-tests/eslint-8-test/tsconfig.json +++ b/build-tests/eslint-8-test/tsconfig.json @@ -1,25 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - - "compilerOptions": { - "outDir": "lib-esm", - "declarationDir": "lib-dts", - "rootDir": "src", - - "forceConsistentCasingInFileNames": true, - "declaration": true, - "sourceMap": true, - "declarationMap": true, - "inlineSources": true, - "experimentalDecorators": true, - "strictNullChecks": true, - "noUnusedLocals": true, - - "module": "esnext", - "moduleResolution": "node", - "target": "es5", - "lib": ["es5"] - }, - - "include": ["src/**/*.ts", "src/**/*.tsx"] + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } diff --git a/build-tests/eslint-bulk-suppressions-test-flat/config/typescript.json b/build-tests/eslint-bulk-suppressions-test-flat/config/typescript.json new file mode 100644 index 0000000000..77ac46fab2 --- /dev/null +++ b/build-tests/eslint-bulk-suppressions-test-flat/config/typescript.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", + + "additionalModuleKindsToEmit": [] +} diff --git a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json index a5503632f5..cce25e95fc 100644 --- a/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-flat/tsconfig.json @@ -4,7 +4,7 @@ "compilerOptions": { "outDir": "lib-esm", "declarationDir": "lib-dts", - "rootDir": "src", + "rootDirs": ["client", "server"], "forceConsistentCasingInFileNames": true, "declaration": true, diff --git a/build-tests/eslint-bulk-suppressions-test-legacy/config/typescript.json b/build-tests/eslint-bulk-suppressions-test-legacy/config/typescript.json new file mode 100644 index 0000000000..77ac46fab2 --- /dev/null +++ b/build-tests/eslint-bulk-suppressions-test-legacy/config/typescript.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", + + "additionalModuleKindsToEmit": [] +} diff --git a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json index 912cf8f084..118ccfd899 100644 --- a/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test-legacy/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "lib-esm", "declarationDir": "lib-dts", - "rootDir": "src", + "rootDirs": ["client", "server"], "forceConsistentCasingInFileNames": true, "declaration": true, diff --git a/build-tests/eslint-bulk-suppressions-test/config/typescript.json b/build-tests/eslint-bulk-suppressions-test/config/typescript.json new file mode 100644 index 0000000000..77ac46fab2 --- /dev/null +++ b/build-tests/eslint-bulk-suppressions-test/config/typescript.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", + + "additionalModuleKindsToEmit": [] +} diff --git a/build-tests/eslint-bulk-suppressions-test/tsconfig.json b/build-tests/eslint-bulk-suppressions-test/tsconfig.json index a5503632f5..cce25e95fc 100644 --- a/build-tests/eslint-bulk-suppressions-test/tsconfig.json +++ b/build-tests/eslint-bulk-suppressions-test/tsconfig.json @@ -4,7 +4,7 @@ "compilerOptions": { "outDir": "lib-esm", "declarationDir": "lib-dts", - "rootDir": "src", + "rootDirs": ["client", "server"], "forceConsistentCasingInFileNames": true, "declaration": true, diff --git a/build-tests/heft-node-everything-esm-module-test/config/api-extractor.json b/build-tests/heft-node-everything-esm-module-test/config/api-extractor.json index b3969a325c..890e2190b4 100644 --- a/build-tests/heft-node-everything-esm-module-test/config/api-extractor.json +++ b/build-tests/heft-node-everything-esm-module-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/heft-node-everything-esm-module-test/tsconfig.json b/build-tests/heft-node-everything-esm-module-test/tsconfig.json index b2ec41e114..d08637a6a2 100644 --- a/build-tests/heft-node-everything-esm-module-test/tsconfig.json +++ b/build-tests/heft-node-everything-esm-module-test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-typescript-v2-test/config/api-extractor.json b/build-tests/heft-typescript-v2-test/config/api-extractor.json index e451cf705d..d12edb988a 100644 --- a/build-tests/heft-typescript-v2-test/config/api-extractor.json +++ b/build-tests/heft-typescript-v2-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/heft-typescript-v2-test/tsconfig.json b/build-tests/heft-typescript-v2-test/tsconfig.json index 9d6a675868..819c8cda10 100644 --- a/build-tests/heft-typescript-v2-test/tsconfig.json +++ b/build-tests/heft-typescript-v2-test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-typescript-v3-test/config/api-extractor.json b/build-tests/heft-typescript-v3-test/config/api-extractor.json index e451cf705d..2466f538c4 100644 --- a/build-tests/heft-typescript-v3-test/config/api-extractor.json +++ b/build-tests/heft-typescript-v3-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-commonjs/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/heft-typescript-v3-test/tsconfig.json b/build-tests/heft-typescript-v3-test/tsconfig.json index a141c3e954..9bb1bff372 100644 --- a/build-tests/heft-typescript-v3-test/tsconfig.json +++ b/build-tests/heft-typescript-v3-test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-typescript-v4-test/config/api-extractor.json b/build-tests/heft-typescript-v4-test/config/api-extractor.json index e451cf705d..d12edb988a 100644 --- a/build-tests/heft-typescript-v4-test/config/api-extractor.json +++ b/build-tests/heft-typescript-v4-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/heft-typescript-v4-test/tsconfig.json b/build-tests/heft-typescript-v4-test/tsconfig.json index a141c3e954..9bb1bff372 100644 --- a/build-tests/heft-typescript-v4-test/tsconfig.json +++ b/build-tests/heft-typescript-v4-test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/localization-plugin-test-01/tsconfig.json b/build-tests/localization-plugin-test-01/tsconfig.json index 2bb989b8ef..27340e2d2e 100644 --- a/build-tests/localization-plugin-test-01/tsconfig.json +++ b/build-tests/localization-plugin-test-01/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json", "compilerOptions": { - "module": "esnext", "moduleResolution": "node", "rootDirs": ["src", "temp/loc-json-ts"] } diff --git a/build-tests/localization-plugin-test-01/webpack.config.js b/build-tests/localization-plugin-test-01/webpack.config.js index e3fb41279f..09db14220a 100644 --- a/build-tests/localization-plugin-test-01/webpack.config.js +++ b/build-tests/localization-plugin-test-01/webpack.config.js @@ -10,8 +10,8 @@ function generateConfiguration(mode, outputFolderName, webpack) { return { mode, entry: { - 'localization-test-A': `${__dirname}/lib/indexA.js`, - 'localization-test-B': `${__dirname}/lib/indexB.js` + 'localization-test-A': `${__dirname}/lib-esm/indexA.js`, + 'localization-test-B': `${__dirname}/lib-esm/indexB.js` }, output: { path: `${__dirname}/${outputFolderName}`, diff --git a/build-tests/localization-plugin-test-02/config/typescript.json b/build-tests/localization-plugin-test-02/config/typescript.json index 95ea4894e6..a97ea7a3a7 100644 --- a/build-tests/localization-plugin-test-02/config/typescript.json +++ b/build-tests/localization-plugin-test-02/config/typescript.json @@ -4,6 +4,8 @@ { "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/typescript.schema.json", + "extends": "local-node-rig/profiles/default/config/typescript.json", + "staticAssetsToCopy": { "fileExtensions": [".resx", ".json", ".resjson"] } diff --git a/build-tests/localization-plugin-test-02/tsconfig.json b/build-tests/localization-plugin-test-02/tsconfig.json index 2bb989b8ef..27340e2d2e 100644 --- a/build-tests/localization-plugin-test-02/tsconfig.json +++ b/build-tests/localization-plugin-test-02/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json", "compilerOptions": { - "module": "esnext", "moduleResolution": "node", "rootDirs": ["src", "temp/loc-json-ts"] } diff --git a/build-tests/localization-plugin-test-02/webpack.config.js b/build-tests/localization-plugin-test-02/webpack.config.js index 8e424812e6..dc3c7a6cab 100644 --- a/build-tests/localization-plugin-test-02/webpack.config.js +++ b/build-tests/localization-plugin-test-02/webpack.config.js @@ -10,9 +10,9 @@ function generateConfiguration(mode, outputFolderName, webpack) { return { mode: mode, entry: { - 'localization-test-A': `${__dirname}/lib/indexA.js`, - 'localization-test-B': `${__dirname}/lib/indexB.js`, - 'localization-test-C': `${__dirname}/lib/indexC.js` + 'localization-test-A': `${__dirname}/lib-esm/indexA.js`, + 'localization-test-B': `${__dirname}/lib-esm/indexB.js`, + 'localization-test-C': `${__dirname}/lib-esm/indexC.js` }, output: { path: `${__dirname}/${outputFolderName}`, diff --git a/build-tests/localization-plugin-test-03/config/typescript.json b/build-tests/localization-plugin-test-03/config/typescript.json new file mode 100644 index 0000000000..95215feff8 --- /dev/null +++ b/build-tests/localization-plugin-test-03/config/typescript.json @@ -0,0 +1,4 @@ +{ + // This project uses ts-loader + "additionalModuleKindsToEmit": [] +} diff --git a/build-tests/localization-plugin-test-03/tsconfig.json b/build-tests/localization-plugin-test-03/tsconfig.json index 5fafb6d980..898e6469af 100644 --- a/build-tests/localization-plugin-test-03/tsconfig.json +++ b/build-tests/localization-plugin-test-03/tsconfig.json @@ -2,6 +2,8 @@ "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json", "compilerOptions": { "module": "esnext", + "outDir": "lib-esm", + "declarationDir": "lib-dts", "moduleResolution": "node", "incremental": false, "rootDirs": ["src", "temp/loc-json-ts"] diff --git a/build-tests/localization-plugin-test-03/webpack.config.js b/build-tests/localization-plugin-test-03/webpack.config.js index 56d3cf532e..c0d97daef7 100644 --- a/build-tests/localization-plugin-test-03/webpack.config.js +++ b/build-tests/localization-plugin-test-03/webpack.config.js @@ -118,7 +118,7 @@ function generateConfiguration(mode, outputFolderName, webpack) { }, typingsOptions: { generatedTsFolder: `${__dirname}/temp/loc-json-ts`, - secondaryGeneratedTsFolders: ['lib'], + secondaryGeneratedTsFolders: ['lib-commonjs'], sourceRoot: `${__dirname}/src`, exportAsDefault: true }, From 45c2dfebae061ebe2f646be611b5e3a9524de5f0 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 11:44:13 -0800 Subject: [PATCH 19/43] fixup! Clean up output folders in tests. --- build-tests-subspace/rush-lib-test/src/start.ts | 2 +- .../etc/bundledPackages/api-extractor-scenarios.api.json | 2 +- build-tests/heft-typescript-v3-test/config/api-extractor.json | 2 +- .../rush-lib-declaration-paths-test/scripts/createSrc.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-tests-subspace/rush-lib-test/src/start.ts b/build-tests-subspace/rush-lib-test/src/start.ts index 086a84b52d..a389623e6e 100644 --- a/build-tests-subspace/rush-lib-test/src/start.ts +++ b/build-tests-subspace/rush-lib-test/src/start.ts @@ -8,7 +8,7 @@ console.log('rush-lib-test loading Rush configuration...'); // Important: Since we're calling an internal API, we need to use the unbundled .d.ts files // instead of the normal .d.ts rollup // eslint-disable-next-line import/order -import { RushConfiguration } from '@microsoft/rush-lib/lib/'; +import { RushConfiguration } from '@microsoft/rush-lib/lib/index'; const config: RushConfiguration = RushConfiguration.loadFromDefaultLocation(); console.log(config.commonFolder); diff --git a/build-tests/api-extractor-scenarios/etc/bundledPackages/api-extractor-scenarios.api.json b/build-tests/api-extractor-scenarios/etc/bundledPackages/api-extractor-scenarios.api.json index 89ee704420..752716990b 100644 --- a/build-tests/api-extractor-scenarios/etc/bundledPackages/api-extractor-scenarios.api.json +++ b/build-tests/api-extractor-scenarios/etc/bundledPackages/api-extractor-scenarios.api.json @@ -304,7 +304,7 @@ "text": " " } ], - "fileUrlPath": "../api-extractor-lib1-test/lib/index.d.ts", + "fileUrlPath": "../api-extractor-lib1-test/lib-dts/index.d.ts", "releaseTag": "Public", "isAbstract": false, "name": "Lib1Class", diff --git a/build-tests/heft-typescript-v3-test/config/api-extractor.json b/build-tests/heft-typescript-v3-test/config/api-extractor.json index 2466f538c4..d12edb988a 100644 --- a/build-tests/heft-typescript-v3-test/config/api-extractor.json +++ b/build-tests/heft-typescript-v3-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib-commonjs/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js b/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js index 85005b72b2..931ccb9870 100644 --- a/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js +++ b/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js @@ -31,7 +31,7 @@ module.exports = { '// See LICENSE in the project root for license information.', '' ]; - for await (const dtsPath of collectDtsPaths(`${rushLibPath}/lib`, '@microsoft/rush-lib/lib')) { + for await (const dtsPath of collectDtsPaths(`${rushLibPath}/lib-dts`, '@microsoft/rush-lib/lib-dts')) { indexFileLines.push(`import '${dtsPath}';`); } From 7997e61372460b0ce539db52d87fcd42ecb5a095 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 11:44:48 -0800 Subject: [PATCH 20/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- .../profiles/default/config/jest.config.json | 1 + rigs/local-node-rig/profiles/default/config/jest.config.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json b/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json index e45b045989..f14c1acd34 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json +++ b/rigs/decoupled-local-node-rig/profiles/default/config/jest.config.json @@ -1,6 +1,7 @@ { "extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", + "roots": ["/lib-commonjs"], "testMatch": ["/lib-commonjs/**/*.test.js"], // Enable code coverage for Jest diff --git a/rigs/local-node-rig/profiles/default/config/jest.config.json b/rigs/local-node-rig/profiles/default/config/jest.config.json index e45b045989..1250d45a5a 100644 --- a/rigs/local-node-rig/profiles/default/config/jest.config.json +++ b/rigs/local-node-rig/profiles/default/config/jest.config.json @@ -1,6 +1,7 @@ { "extends": "@rushstack/heft-node-rig/profiles/default/config/jest.config.json", + "roots": ["/lib-commonjs"], "testMatch": ["/lib-commonjs/**/*.test.js"], // Enable code coverage for Jest @@ -33,5 +34,5 @@ ] ], - "resolver": "@rushstack/heft-jest-plugin/lib/exports/jest-node-modules-symlink-resolver.js" + "resolver": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-node-modules-symlink-resolver.js" } From 9443cc5b385b57f78b384a9407a4cac25d4da218 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 11:45:06 -0800 Subject: [PATCH 21/43] fixup! Update rush-lib and rush-sdk to the new convention. --- libraries/rush-sdk/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/rush-sdk/package.json b/libraries/rush-sdk/package.json index c640a8a6e7..44303aca5a 100644 --- a/libraries/rush-sdk/package.json +++ b/libraries/rush-sdk/package.json @@ -20,8 +20,8 @@ "default": "./lib-shim/loader.js" }, "./lib/*": { - "types": "./lib-commonjs/*.d.ts", - "default": "./lib-dts/*.js" + "types": "./lib-dts/*.d.ts", + "default": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, From f4fdcf1f6c87a2315c751b7b2dec0d9da8cea711 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 12:30:12 -0800 Subject: [PATCH 22/43] fixup! Fix a few issues linting and cleaning in local projects. --- rigs/heft-web-rig/profiles/app/config/heft.json | 6 +----- rigs/heft-web-rig/profiles/library/config/heft.json | 6 +----- rigs/local-web-rig/profiles/app/config/heft.json | 3 +++ rigs/local-web-rig/profiles/library/config/heft.json | 4 ++++ 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/rigs/heft-web-rig/profiles/app/config/heft.json b/rigs/heft-web-rig/profiles/app/config/heft.json index 2e357ca82c..8e80c60611 100644 --- a/rigs/heft-web-rig/profiles/app/config/heft.json +++ b/rigs/heft-web-rig/profiles/app/config/heft.json @@ -56,10 +56,7 @@ "lint": { "taskDependencies": ["typescript"], "taskPlugin": { - "pluginPackage": "@rushstack/heft-lint-plugin", - "options": { - "sarifLogPath": "temp/build/lint/lint.sarif" - } + "pluginPackage": "@rushstack/heft-lint-plugin" } }, "api-extractor": { @@ -79,7 +76,6 @@ "test": { "phaseDependencies": ["build"], - "cleanFiles": [{ "includeGlobs": ["coverage"] }], "tasksByName": { "jest": { "taskPlugin": { diff --git a/rigs/heft-web-rig/profiles/library/config/heft.json b/rigs/heft-web-rig/profiles/library/config/heft.json index 2e357ca82c..8e80c60611 100644 --- a/rigs/heft-web-rig/profiles/library/config/heft.json +++ b/rigs/heft-web-rig/profiles/library/config/heft.json @@ -56,10 +56,7 @@ "lint": { "taskDependencies": ["typescript"], "taskPlugin": { - "pluginPackage": "@rushstack/heft-lint-plugin", - "options": { - "sarifLogPath": "temp/build/lint/lint.sarif" - } + "pluginPackage": "@rushstack/heft-lint-plugin" } }, "api-extractor": { @@ -79,7 +76,6 @@ "test": { "phaseDependencies": ["build"], - "cleanFiles": [{ "includeGlobs": ["coverage"] }], "tasksByName": { "jest": { "taskPlugin": { diff --git a/rigs/local-web-rig/profiles/app/config/heft.json b/rigs/local-web-rig/profiles/app/config/heft.json index c9728c87ad..1710b0400e 100644 --- a/rigs/local-web-rig/profiles/app/config/heft.json +++ b/rigs/local-web-rig/profiles/app/config/heft.json @@ -16,6 +16,9 @@ } } } + }, + "test": { + "cleanFiles": [{ "includeGlobs": ["coverage"] }] } } } diff --git a/rigs/local-web-rig/profiles/library/config/heft.json b/rigs/local-web-rig/profiles/library/config/heft.json index 4b0251d340..541a146a9c 100644 --- a/rigs/local-web-rig/profiles/library/config/heft.json +++ b/rigs/local-web-rig/profiles/library/config/heft.json @@ -16,6 +16,10 @@ } } } + }, + + "test": { + "cleanFiles": [{ "includeGlobs": ["coverage"] }] } } } From 2075b8dfc5cae29e07f2eba837a7fa957031cd47 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 12:31:15 -0800 Subject: [PATCH 23/43] fixup! Rush change. --- .../rush/normalize-build-output_2026-02-17-18-56.json | 2 +- .../heft-web-rig/normalize-build-output_2026-02-17-18-56.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json b/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json index 686572f469..b45e3eeed1 100644 --- a/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json +++ b/common/changes/@microsoft/rush/normalize-build-output_2026-02-17-18-56.json @@ -1,7 +1,7 @@ { "changes": [ { - "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", + "comment": "Normalize package layout. CommonJS is now under `lib-commonjs` and DTS is now under `lib-dts`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", "type": "none", "packageName": "@microsoft/rush" } diff --git a/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json index 9af194eb47..557f0364f0 100644 --- a/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json +++ b/common/changes/@rushstack/heft-web-rig/normalize-build-output_2026-02-17-18-56.json @@ -1,8 +1,8 @@ { "changes": [ { - "comment": "Normalize package layout. CommonJS is now under `lib-commonjs`, DTS is now under `lib-dts`, and ESM is now under `lib-esm`. Imports to `lib` still work as before, handled by the `\"exports\"` field in `package.json`.", - "type": "minor", + "comment": "", + "type": "none", "packageName": "@rushstack/heft-web-rig" } ], From 051fb912b732a8efb55c68c1c234385a01fe2194 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 13:31:01 -0800 Subject: [PATCH 24/43] fixup! Fix a few issues linting and cleaning in local projects. --- rigs/local-web-rig/profiles/app/config/heft.json | 1 + 1 file changed, 1 insertion(+) diff --git a/rigs/local-web-rig/profiles/app/config/heft.json b/rigs/local-web-rig/profiles/app/config/heft.json index 1710b0400e..1888d38a36 100644 --- a/rigs/local-web-rig/profiles/app/config/heft.json +++ b/rigs/local-web-rig/profiles/app/config/heft.json @@ -17,6 +17,7 @@ } } }, + "test": { "cleanFiles": [{ "includeGlobs": ["coverage"] }] } From 0dfc71c719a125eb4b5994f201f7202dc9a7a0dc Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 13:33:05 -0800 Subject: [PATCH 25/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- apps/zipsync/src/cli/test/start.test.ts | 5 ++++- .../heft-jest-plugin/src/test/JestPlugin.test.ts | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/zipsync/src/cli/test/start.test.ts b/apps/zipsync/src/cli/test/start.test.ts index f57f26a3ce..d9d9a09084 100644 --- a/apps/zipsync/src/cli/test/start.test.ts +++ b/apps/zipsync/src/cli/test/start.test.ts @@ -7,7 +7,10 @@ import { execSync } from 'node:child_process'; describe('CLI Tool Tests', () => { it('should display help for "zipsync --help"', () => { const packageFolder: string = path.resolve(__dirname, '../../..'); - const startOutput = execSync('node lib/start.js --help', { encoding: 'utf-8', cwd: packageFolder }); + const startOutput = execSync('node lib-commonjs/start.js --help', { + encoding: 'utf-8', + cwd: packageFolder + }); const normalized = startOutput.replace( /zipsync \d+\.\d+\.\d+(?:-[0-9A-Za-z-.]+)? - https:\/\/rushstack\.io/, 'zipsync {version} - https://rushstack.io' diff --git a/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts b/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts index 1ef210d665..304ebad992 100644 --- a/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts +++ b/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts @@ -75,9 +75,9 @@ describe('JestConfigLoader', () => { }); it('resolves extended config modules', async () => { - // Because we require the built modules, we need to set our rootDir to be in the 'lib' folder, since transpilation + // Because we require the built modules, we need to set our rootDir to be in the 'lib-commonjs' folder, since transpilation // means that we don't run on the built test assets directly - const rootDir: string = path.resolve(__dirname, '..', '..', 'lib', 'test', 'project1'); + const rootDir: string = path.resolve(__dirname, '..', '..', 'lib-commonjs', 'test', 'project1'); const loader: ProjectConfigurationFile = JestPlugin._getJestConfigurationLoader( rootDir, 'config/jest.config.json' @@ -162,9 +162,9 @@ describe('JestConfigLoader', () => { }); it('resolves extended package modules', async () => { - // Because we require the built modules, we need to set our rootDir to be in the 'lib' folder, since transpilation + // Because we require the built modules, we need to set our rootDir to be in the 'lib-commonjs' folder, since transpilation // means that we don't run on the built test assets directly - const rootDir: string = path.resolve(__dirname, '..', '..', 'lib', 'test', 'project2'); + const rootDir: string = path.resolve(__dirname, '..', '..', 'lib-commonjs', 'test', 'project2'); const loader: ProjectConfigurationFile = JestPlugin._getJestConfigurationLoader( rootDir, 'config/jest.config.json' @@ -189,9 +189,9 @@ describe('JestConfigLoader', () => { }); it('replaces jest-environment-jsdom with the patched version', async () => { - // Because we require the built modules, we need to set our rootDir to be in the 'lib' folder, since transpilation + // Because we require the built modules, we need to set our rootDir to be in the 'lib-commonjs' folder, since transpilation // means that we don't run on the built test assets directly - const rootDir: string = path.resolve(__dirname, '..', '..', 'lib', 'test', 'project3'); + const rootDir: string = path.resolve(__dirname, '..', '..', 'lib-commonjs', 'test', 'project3'); const loader: ProjectConfigurationFile = JestPlugin._getJestConfigurationLoader( rootDir, 'config/jest.config.json' From fbfdec312420212d0a919854b477075d0cb14321 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 13:34:02 -0800 Subject: [PATCH 26/43] fixup! Clean up output folders in tests. --- .../heft-node-basic-tutorial/config/jest.config.json | 3 +++ .../heft-node-jest-tutorial/config/jest.config.json | 3 +++ .../api-extractor-test-05/dist/tsdoc-metadata.json | 2 +- build-tests/heft-jest-preset-test/config/jest.config.json | 8 ++++---- .../heft-jest-preset-test/config/rush-project.json | 2 +- build-tests/heft-jest-preset-test/tsconfig.json | 2 +- .../heft-jest-reporters-test/config/jest.config.json | 2 +- .../heft-jest-reporters-test/config/rush-project.json | 2 +- build-tests/heft-jest-reporters-test/tsconfig.json | 2 +- .../heft-node-everything-test/config/api-extractor.json | 2 +- build-tests/heft-node-everything-test/tsconfig.json | 1 + .../heft-rspack-everything-test/config/jest.config.json | 5 ++++- .../heft-webpack5-everything-test/config/jest.config.json | 5 ++++- 13 files changed, 26 insertions(+), 13 deletions(-) diff --git a/build-tests-samples/heft-node-basic-tutorial/config/jest.config.json b/build-tests-samples/heft-node-basic-tutorial/config/jest.config.json index 8ae16adcbd..1a044a0839 100644 --- a/build-tests-samples/heft-node-basic-tutorial/config/jest.config.json +++ b/build-tests-samples/heft-node-basic-tutorial/config/jest.config.json @@ -1,6 +1,9 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", + "roots": ["/lib-commonjs"], + "testMatch": ["/lib-commonjs/**/*.test.js"], + // These additional properties exist for caching purposes in the rushstack repo // Enable code coverage for Jest diff --git a/build-tests-samples/heft-node-jest-tutorial/config/jest.config.json b/build-tests-samples/heft-node-jest-tutorial/config/jest.config.json index 09a743c117..888a4ea4f6 100644 --- a/build-tests-samples/heft-node-jest-tutorial/config/jest.config.json +++ b/build-tests-samples/heft-node-jest-tutorial/config/jest.config.json @@ -1,6 +1,9 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", + "roots": ["/lib-commonjs"], + "testMatch": ["/lib-commonjs/**/*.test.js"], + "coverageThreshold": { "global": { "branches": 50, diff --git a/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json b/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json index c017748cd6..1c07d607ee 100644 --- a/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json +++ b/build-tests/api-extractor-test-05/dist/tsdoc-metadata.json @@ -5,7 +5,7 @@ "toolPackages": [ { "packageName": "@microsoft/api-extractor", - "packageVersion": "7.55.5" + "packageVersion": "7.56.3" } ] } diff --git a/build-tests/heft-jest-preset-test/config/jest.config.json b/build-tests/heft-jest-preset-test/config/jest.config.json index f74f91d464..c333c603e9 100644 --- a/build-tests/heft-jest-preset-test/config/jest.config.json +++ b/build-tests/heft-jest-preset-test/config/jest.config.json @@ -55,9 +55,9 @@ // jest-string-mock-transform returns the filename, where Webpack would return a URL // When using the heft-jest-plugin, these will be replaced with the resolved module location "transform": { - "\\.(css|sass|scss)$": "../node_modules/@rushstack/heft-jest-plugin/lib/exports/jest-identity-mock-transform.js", + "\\.(css|sass|scss)$": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-identity-mock-transform.js", - "\\.(aac|eot|gif|jpeg|jpg|m4a|mp3|mp4|oga|otf|png|svg|ttf|wav|webm|webp|woff|woff2)$": "../node_modules/@rushstack/heft-jest-plugin/lib/exports/jest-string-mock-transform.js" + "\\.(aac|eot|gif|jpeg|jpg|m4a|mp3|mp4|oga|otf|png|svg|ttf|wav|webm|webp|woff|woff2)$": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-string-mock-transform.js" }, // The modulePathIgnorePatterns below accepts these sorts of paths: @@ -70,8 +70,8 @@ "moduleFileExtensions": ["cjs", "js", "json", "node"], // When using the heft-jest-plugin, these will be replaced with the resolved module location - "setupFiles": ["../node_modules/@rushstack/heft-jest-plugin/lib/exports/jest-global-setup.js"], + "setupFiles": ["@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-global-setup.js"], // When using the heft-jest-plugin, these will be replaced with the resolved module location - "resolver": "../node_modules/@rushstack/heft-jest-plugin/lib/exports/jest-improved-resolver.js" + "resolver": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-improved-resolver.js" } diff --git a/build-tests/heft-jest-preset-test/config/rush-project.json b/build-tests/heft-jest-preset-test/config/rush-project.json index a87b21eb4a..030d8d0ff0 100644 --- a/build-tests/heft-jest-preset-test/config/rush-project.json +++ b/build-tests/heft-jest-preset-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib-esm", "dist"] + "outputFolderNames": ["lib", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-jest-preset-test/tsconfig.json b/build-tests/heft-jest-preset-test/tsconfig.json index 4178fcb7a1..2df47fa586 100644 --- a/build-tests/heft-jest-preset-test/tsconfig.json +++ b/build-tests/heft-jest-preset-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-esm", + "outDir": "lib", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-jest-reporters-test/config/jest.config.json b/build-tests/heft-jest-reporters-test/config/jest.config.json index 294f12cc0b..26a5e741a7 100644 --- a/build-tests/heft-jest-reporters-test/config/jest.config.json +++ b/build-tests/heft-jest-reporters-test/config/jest.config.json @@ -1,7 +1,7 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", "coverageDirectory": "/coverage", - "reporters": ["default", "../lib/test/customJestReporter.cjs"], + "reporters": ["default", "../lib-commonjs/test/customJestReporter.cjs"], "testMatch": ["/lib/**/*.test.cjs"], "collectCoverageFrom": [ "lib/**/*.cjs", diff --git a/build-tests/heft-jest-reporters-test/config/rush-project.json b/build-tests/heft-jest-reporters-test/config/rush-project.json index a87b21eb4a..030d8d0ff0 100644 --- a/build-tests/heft-jest-reporters-test/config/rush-project.json +++ b/build-tests/heft-jest-reporters-test/config/rush-project.json @@ -4,7 +4,7 @@ "operationSettings": [ { "operationName": "_phase:build", - "outputFolderNames": ["lib-esm", "dist"] + "outputFolderNames": ["lib", "dist"] }, { "operationName": "_phase:test", diff --git a/build-tests/heft-jest-reporters-test/tsconfig.json b/build-tests/heft-jest-reporters-test/tsconfig.json index 57465fc850..b84c9d89cb 100644 --- a/build-tests/heft-jest-reporters-test/tsconfig.json +++ b/build-tests/heft-jest-reporters-test/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { - "outDir": "lib-esm", + "outDir": "lib", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-node-everything-test/config/api-extractor.json b/build-tests/heft-node-everything-test/config/api-extractor.json index e451cf705d..d12edb988a 100644 --- a/build-tests/heft-node-everything-test/config/api-extractor.json +++ b/build-tests/heft-node-everything-test/config/api-extractor.json @@ -1,7 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "/lib/index.d.ts", + "mainEntryPointFilePath": "/lib-dts/index.d.ts", "apiReport": { "enabled": true, "reportFolder": "/etc" diff --git a/build-tests/heft-node-everything-test/tsconfig.json b/build-tests/heft-node-everything-test/tsconfig.json index b2ec41e114..d08637a6a2 100644 --- a/build-tests/heft-node-everything-test/tsconfig.json +++ b/build-tests/heft-node-everything-test/tsconfig.json @@ -3,6 +3,7 @@ "compilerOptions": { "outDir": "lib-commonjs", + "declarationDir": "lib-dts", "rootDir": "src", "forceConsistentCasingInFileNames": true, diff --git a/build-tests/heft-rspack-everything-test/config/jest.config.json b/build-tests/heft-rspack-everything-test/config/jest.config.json index f22bb14d6d..210c642e7a 100644 --- a/build-tests/heft-rspack-everything-test/config/jest.config.json +++ b/build-tests/heft-rspack-everything-test/config/jest.config.json @@ -1,6 +1,9 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-web.config.json", + "roots": ["/lib-commonjs"], + "testMatch": ["/lib-commonjs/**/*.test.js"], + // Enable code coverage for Jest "collectCoverage": true, "coverageDirectory": "/coverage", @@ -8,5 +11,5 @@ // Use v8 coverage provider to avoid Babel "coverageProvider": "v8", - "resolver": "@rushstack/heft-jest-plugin/lib/exports/jest-node-modules-symlink-resolver" + "resolver": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-node-modules-symlink-resolver" } diff --git a/build-tests/heft-webpack5-everything-test/config/jest.config.json b/build-tests/heft-webpack5-everything-test/config/jest.config.json index f22bb14d6d..210c642e7a 100644 --- a/build-tests/heft-webpack5-everything-test/config/jest.config.json +++ b/build-tests/heft-webpack5-everything-test/config/jest.config.json @@ -1,6 +1,9 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-web.config.json", + "roots": ["/lib-commonjs"], + "testMatch": ["/lib-commonjs/**/*.test.js"], + // Enable code coverage for Jest "collectCoverage": true, "coverageDirectory": "/coverage", @@ -8,5 +11,5 @@ // Use v8 coverage provider to avoid Babel "coverageProvider": "v8", - "resolver": "@rushstack/heft-jest-plugin/lib/exports/jest-node-modules-symlink-resolver" + "resolver": "@rushstack/heft-jest-plugin/lib-commonjs/exports/jest-node-modules-symlink-resolver" } From 8a10b9e860ac343a9815e9f9136918bcfe9d824e Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 13:37:09 -0800 Subject: [PATCH 27/43] fixup! Clean up output folders in tests. --- .../config/jest.config.json | 13 +++++++++++++ .../config/jest.config.json | 16 ++++++++-------- .../config/jest.config.json | 13 +++++++++++++ 3 files changed, 34 insertions(+), 8 deletions(-) diff --git a/build-tests-samples/heft-serverless-stack-tutorial/config/jest.config.json b/build-tests-samples/heft-serverless-stack-tutorial/config/jest.config.json index 8ae16adcbd..bfc5ce0d9b 100644 --- a/build-tests-samples/heft-serverless-stack-tutorial/config/jest.config.json +++ b/build-tests-samples/heft-serverless-stack-tutorial/config/jest.config.json @@ -1,6 +1,19 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", + "roots": ["/lib-commonjs"], + + "testMatch": ["/lib-commonjs/**/*.test.js"], + "collectCoverageFrom": [ + "lib-commonjs/**/*.js", + "!lib-commonjs/**/*.d.ts", + "!lib-commonjs/**/*.test.js", + "!lib-commonjs/**/test/**", + "!lib-commonjs/**/__tests__/**", + "!lib-commonjs/**/__fixtures__/**", + "!lib-commonjs/**/__mocks__/**" + ], + // These additional properties exist for caching purposes in the rushstack repo // Enable code coverage for Jest diff --git a/build-tests/heft-jest-reporters-test/config/jest.config.json b/build-tests/heft-jest-reporters-test/config/jest.config.json index 26a5e741a7..491648c6fd 100644 --- a/build-tests/heft-jest-reporters-test/config/jest.config.json +++ b/build-tests/heft-jest-reporters-test/config/jest.config.json @@ -2,14 +2,14 @@ "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", "coverageDirectory": "/coverage", "reporters": ["default", "../lib-commonjs/test/customJestReporter.cjs"], - "testMatch": ["/lib/**/*.test.cjs"], + "testMatch": ["/lib-commonjs/**/*.test.cjs"], "collectCoverageFrom": [ - "lib/**/*.cjs", - "!lib/**/*.d.ts", - "!lib/**/*.test.cjs", - "!lib/**/test/**", - "!lib/**/__tests__/**", - "!lib/**/__fixtures__/**", - "!lib/**/__mocks__/**" + "lib-commonjs/**/*.cjs", + "!lib-commonjs/**/*.d.ts", + "!lib-commonjs/**/*.test.cjs", + "!lib-commonjs/**/test/**", + "!lib-commonjs/**/__tests__/**", + "!lib-commonjs/**/__fixtures__/**", + "!lib-commonjs/**/__mocks__/**" ] } diff --git a/build-tests/heft-parameter-plugin-test/config/jest.config.json b/build-tests/heft-parameter-plugin-test/config/jest.config.json index c0687c6d48..8ece84202f 100644 --- a/build-tests/heft-parameter-plugin-test/config/jest.config.json +++ b/build-tests/heft-parameter-plugin-test/config/jest.config.json @@ -1,6 +1,19 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", + "roots": ["/lib-commonjs"], + + "testMatch": ["/lib-commonjs/**/*.test.js"], + "collectCoverageFrom": [ + "lib-commonjs/**/*.js", + "!lib-commonjs/**/*.d.ts", + "!lib-commonjs/**/*.test.js", + "!lib-commonjs/**/test/**", + "!lib-commonjs/**/__tests__/**", + "!lib-commonjs/**/__fixtures__/**", + "!lib-commonjs/**/__mocks__/**" + ], + // Enable code coverage for Jest "collectCoverage": true, "coverageDirectory": "/coverage", From 9afa1dc1f6b2569e8f3eefe6949b2fe6f891f820 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 15:04:55 -0800 Subject: [PATCH 28/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- apps/api-extractor/config/heft.json | 2 +- apps/lockfile-explorer/package.json | 2 +- .../src/graph/test/PnpmfileRunner.test.ts | 4 +- apps/lockfile-explorer/src/test/help.test.ts | 8 +-- .../src/test/ConfigurationFile.test.ts | 12 ++-- .../ConfigurationFile.test.ts.snap | 64 +++++++++---------- .../test/__snapshots__/Import.test.ts.snap | 12 ++-- .../src/test/getPackageDeps.test.ts | 4 +- .../src/test/getRepoDeps.test.ts | 4 +- libraries/rush-lib/package.json | 2 +- .../rush-lib/scripts/copyEmptyModules.js | 10 +++ libraries/rush-sdk/webpack.config.js | 10 +++ .../config/heft.json | 2 +- .../src/test/LoadThemedStylesLoader.test.ts | 6 +- .../LoadThemedStylesLoader.test.ts.snap | 4 +- 15 files changed, 85 insertions(+), 61 deletions(-) diff --git a/apps/api-extractor/config/heft.json b/apps/api-extractor/config/heft.json index a36ac2cf4c..f3b430106d 100644 --- a/apps/api-extractor/config/heft.json +++ b/apps/api-extractor/config/heft.json @@ -23,7 +23,7 @@ "copyOperations": [ { "sourcePath": "src", - "destinationFolders": ["lib"], + "destinationFolders": ["lib-commonjs"], "includeGlobs": ["**/test/test-data/**/*"] } ] diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 75331370c5..0d8e73d0ce 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -33,7 +33,7 @@ "scripts": { "build": "heft build --clean", "start": "heft start", - "serve": "node ./lib/start-explorer.js --debug", + "serve": "node ./lib-commonjs/start-explorer.js --debug", "test": "heft test", "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" diff --git a/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts b/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts index 4e87d88cc0..b56becb620 100644 --- a/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts +++ b/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts @@ -14,12 +14,12 @@ jest.setTimeout(isDebuggerAttached ? 1e9 : 10000); describe(PnpmfileRunner.name, () => { it('transforms a package.json file', async () => { const dirname: string = Path.convertToSlashes(__dirname); - const libIndex: number = dirname.lastIndexOf('/lib/'); + const libIndex: number = dirname.lastIndexOf('/lib-commonjs/'); if (libIndex < 0) { throw new Error('Unexpected file path'); } const srcDirname: string = - dirname.substring(0, libIndex) + '/src/' + dirname.substring(libIndex + '/lib/'.length); + dirname.substring(0, libIndex) + '/src/' + dirname.substring(libIndex + '/lib-commonjs/'.length); const pnpmfilePath: string = srcDirname + '/fixtures/PnpmfileRunner/.pnpmfile.cjs'; const logMessages: string[] = []; diff --git a/apps/lockfile-explorer/src/test/help.test.ts b/apps/lockfile-explorer/src/test/help.test.ts index bbfd935f88..3e4f52a041 100644 --- a/apps/lockfile-explorer/src/test/help.test.ts +++ b/apps/lockfile-explorer/src/test/help.test.ts @@ -5,22 +5,22 @@ import { execSync } from 'node:child_process'; describe('CLI Tool Tests', () => { it('should display help for "lockfile-explorer --help"', () => { - const startOutput = execSync('node lib/start-explorer.js --help').toString(); + const startOutput = execSync('node lib-commonjs/start-explorer.js --help').toString(); expect(startOutput).toMatchSnapshot(); }); it('should display help for "lockfile-lint --help"', () => { - const lintOutput = execSync('node lib/start-lint.js --help').toString(); + const lintOutput = execSync('node lib-commonjs/start-lint.js --help').toString(); expect(lintOutput).toMatchSnapshot(); }); it('should display help for "lockfile-lint init --help"', () => { - const lintOutput = execSync('node lib/start-lint.js init --help').toString(); + const lintOutput = execSync('node lib-commonjs/start-lint.js init --help').toString(); expect(lintOutput).toMatchSnapshot(); }); it('should display help for "lockfile-lint check --help"', () => { - const lintOutput = execSync('node lib/start-lint.js check --help').toString(); + const lintOutput = execSync('node lib-commonjs/start-lint.js check --help').toString(); expect(lintOutput).toMatchSnapshot(); }); }); diff --git a/libraries/heft-config-file/src/test/ConfigurationFile.test.ts b/libraries/heft-config-file/src/test/ConfigurationFile.test.ts index 1d4b4b33f5..56bbcca3d7 100644 --- a/libraries/heft-config-file/src/test/ConfigurationFile.test.ts +++ b/libraries/heft-config-file/src/test/ConfigurationFile.test.ts @@ -830,7 +830,7 @@ describe('ConfigurationFile', () => { 'node_modules', '@rushstack', 'node-core-library', - 'lib', + 'lib-commonjs', 'index.js' ) ) @@ -911,7 +911,7 @@ describe('ConfigurationFile', () => { 'node_modules', '@rushstack', 'node-core-library', - 'lib', + 'lib-commonjs', 'index.js' ) ) @@ -994,7 +994,7 @@ describe('ConfigurationFile', () => { 'node_modules', '@rushstack', 'node-core-library', - 'lib', + 'lib-commonjs', 'index.js' ) ) @@ -1075,7 +1075,7 @@ describe('ConfigurationFile', () => { 'node_modules', '@rushstack', 'node-core-library', - 'lib', + 'lib-commonjs', 'index.js' ) ) @@ -1762,7 +1762,7 @@ describe('ConfigurationFile', () => { // a newline on Windows, and a curly brace on other platforms, even though the location is // accurate in both cases. Use a regex to match either. expect(() => configFileLoader.loadConfigurationFileForProject(terminal, __dirname)).toThrowError( - /In configuration file "\/lib\/test\/errorCases\/invalidJson\/config.json": SyntaxError: Unexpected token '(}|\\n)' at 2:19/ + /In configuration file "\/lib-commonjs\/test\/errorCases\/invalidJson\/config.json": SyntaxError: Unexpected token '(}|\\n)' at 2:19/ ); jest.restoreAllMocks(); @@ -1792,7 +1792,7 @@ describe('ConfigurationFile', () => { await expect( configFileLoader.loadConfigurationFileForProjectAsync(terminal, __dirname) ).rejects.toThrowError( - /In configuration file "\/lib\/test\/errorCases\/invalidJson\/config.json": SyntaxError: Unexpected token '(}|\\n)' at 2:19/ + /In configuration file "\/lib-commonjs\/test\/errorCases\/invalidJson\/config.json": SyntaxError: Unexpected token '(}|\\n)' at 2:19/ ); jest.restoreAllMocks(); diff --git a/libraries/heft-config-file/src/test/__snapshots__/ConfigurationFile.test.ts.snap b/libraries/heft-config-file/src/test/__snapshots__/ConfigurationFile.test.ts.snap index 5c90062d35..8189466f89 100644 --- a/libraries/heft-config-file/src/test/__snapshots__/ConfigurationFile.test.ts.snap +++ b/libraries/heft-config-file/src/test/__snapshots__/ConfigurationFile.test.ts.snap @@ -126,7 +126,7 @@ exports[`ConfigurationFile a complex file with inheritance type annotations thro exports[`ConfigurationFile error cases Throws an error for a file that doesn't match its schema 1`] = ` "Resolved configuration object does not match schema: Error: JSON validation failed: -/lib/test/errorCases/invalidType/config.json +/lib-commonjs/test/errorCases/invalidType/config.json Error: #/filePaths must be array" @@ -136,7 +136,7 @@ exports[`ConfigurationFile error cases Throws an error for a file that doesn't m exports[`ConfigurationFile error cases Throws an error for a file that doesn't match its schema async 1`] = ` "Resolved configuration object does not match schema: Error: JSON validation failed: -/lib/test/errorCases/invalidType/config.json +/lib-commonjs/test/errorCases/invalidType/config.json Error: #/filePaths must be array" @@ -146,7 +146,7 @@ exports[`ConfigurationFile error cases Throws an error for a file that doesn't m exports[`ConfigurationFile error cases Throws an error when a combined config file doesn't match the schema 1`] = ` "Resolved configuration object does not match schema: Error: JSON validation failed: -/lib/test/errorCases/invalidCombinedFile/config1.json +/lib-commonjs/test/errorCases/invalidCombinedFile/config1.json Error: # must NOT have additional properties: folderPaths @@ -160,7 +160,7 @@ exports[`ConfigurationFile error cases Throws an error when a combined config fi exports[`ConfigurationFile error cases Throws an error when a combined config file doesn't match the schema async 1`] = ` "Resolved configuration object does not match schema: Error: JSON validation failed: -/lib/test/errorCases/invalidCombinedFile/config1.json +/lib-commonjs/test/errorCases/invalidCombinedFile/config1.json Error: # must NOT have additional properties: folderPaths @@ -172,35 +172,35 @@ Error: # exports[`ConfigurationFile error cases Throws an error when a combined config file doesn't match the schema async 2`] = `Array []`; -exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist 1`] = `"File does not exist: /lib/test/errorCases/folderThatDoesntExist/config.json"`; +exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist 1`] = `"File does not exist: /lib-commonjs/test/errorCases/folderThatDoesntExist/config.json"`; exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/folderThatDoesntExist/config.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/folderThatDoesntExist/config.json\\" not found.[n]", ] `; -exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist async 1`] = `"File does not exist: /lib/test/errorCases/folderThatDoesntExist/config.json"`; +exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist async 1`] = `"File does not exist: /lib-commonjs/test/errorCases/folderThatDoesntExist/config.json"`; exports[`ConfigurationFile error cases Throws an error when a requested file doesn't exist async 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/folderThatDoesntExist/config.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/folderThatDoesntExist/config.json\\" not found.[n]", ] `; -exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved 1`] = `"In file \\"/lib/test/errorCases/extendsNotExist/config.json\\", file referenced in \\"extends\\" property (\\"./config2.json\\") cannot be resolved."`; +exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved 1`] = `"In file \\"/lib-commonjs/test/errorCases/extendsNotExist/config.json\\", file referenced in \\"extends\\" property (\\"./config2.json\\") cannot be resolved."`; exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/extendsNotExist/config2.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/extendsNotExist/config2.json\\" not found.[n]", ] `; -exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved async 1`] = `"In file \\"/lib/test/errorCases/extendsNotExist/config.json\\", file referenced in \\"extends\\" property (\\"./config2.json\\") cannot be resolved."`; +exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved async 1`] = `"In file \\"/lib-commonjs/test/errorCases/extendsNotExist/config.json\\", file referenced in \\"extends\\" property (\\"./config2.json\\") cannot be resolved."`; exports[`ConfigurationFile error cases Throws an error when an "extends" property points to a file that cannot be resolved async 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/extendsNotExist/config2.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/extendsNotExist/config2.json\\" not found.[n]", ] `; @@ -208,82 +208,82 @@ exports[`ConfigurationFile error cases Throws an error when the file isn't valid exports[`ConfigurationFile error cases Throws an error when the file isn't valid JSON async 1`] = `Array []`; -exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties 1`] = `"A loop has been detected in the \\"extends\\" properties of configuration file at \\"/lib/test/errorCases/circularReference/config1.json\\"."`; +exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties 1`] = `"A loop has been detected in the \\"extends\\" properties of configuration file at \\"/lib-commonjs/test/errorCases/circularReference/config1.json\\"."`; exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties 2`] = `Array []`; -exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties async 1`] = `"A loop has been detected in the \\"extends\\" properties of configuration file at \\"/lib/test/errorCases/circularReference/config1.json\\"."`; +exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties async 1`] = `"A loop has been detected in the \\"extends\\" properties of configuration file at \\"/lib-commonjs/test/errorCases/circularReference/config1.json\\"."`; exports[`ConfigurationFile error cases Throws an error when there is a circular reference in "extends" properties async 2`] = `Array []`; exports[`ConfigurationFile error cases returns undefined when the file doesn't exist for tryLoadConfigurationFileForProject 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/invalidType/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/invalidType/notExist.json\\" not found.[n]", ] `; exports[`ConfigurationFile error cases returns undefined when the file doesn't exist for tryLoadConfigurationFileForProjectAsync 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/invalidType/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/invalidType/notExist.json\\" not found.[n]", ] `; -exports[`ConfigurationFile error cases throws an error when the file doesn't exist 1`] = `"File does not exist: /lib/test/errorCases/invalidType/notExist.json"`; +exports[`ConfigurationFile error cases throws an error when the file doesn't exist 1`] = `"File does not exist: /lib-commonjs/test/errorCases/invalidType/notExist.json"`; exports[`ConfigurationFile error cases throws an error when the file doesn't exist 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/invalidType/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/invalidType/notExist.json\\" not found.[n]", ] `; -exports[`ConfigurationFile error cases throws an error when the file doesn't exist async 1`] = `"File does not exist: /lib/test/errorCases/invalidType/notExist.json"`; +exports[`ConfigurationFile error cases throws an error when the file doesn't exist async 1`] = `"File does not exist: /lib-commonjs/test/errorCases/invalidType/notExist.json"`; exports[`ConfigurationFile error cases throws an error when the file doesn't exist async 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/errorCases/invalidType/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/errorCases/invalidType/notExist.json\\" not found.[n]", ] `; exports[`ConfigurationFile loading a rig correctly loads a config file inside a rig 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", ] `; exports[`ConfigurationFile loading a rig correctly loads a config file inside a rig async 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", ] `; exports[`ConfigurationFile loading a rig correctly loads a config file inside a rig via tryLoadConfigurationFileForProject 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", ] `; exports[`ConfigurationFile loading a rig correctly loads a config file inside a rig via tryLoadConfigurationFileForProjectAsync 1`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/simplestConfigFile.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", ] `; -exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file 1`] = `"File does not exist: /lib/test/project-referencing-rig/config/notExist.json"`; +exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file 1`] = `"File does not exist: /lib-commonjs/test/project-referencing-rig/config/notExist.json"`; exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/notExist.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default/config/notExist.json\\" not found.[n]", - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/notExist.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default/config/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/notExist.json\\" not found.[n]", ] `; -exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file async 1`] = `"File does not exist: /lib/test/project-referencing-rig/config/notExist.json"`; +exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file async 1`] = `"File does not exist: /lib-commonjs/test/project-referencing-rig/config/notExist.json"`; exports[`ConfigurationFile loading a rig throws an error when a config file doesn't exist in a project referencing a rig, which also doesn't have the file async 2`] = ` Array [ - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/notExist.json\\" does not exist. Attempting to load via rig (\\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/node_modules/test-rig/profiles/default/config/notExist.json\\" not found.[n]", - "[ debug] Configuration file \\"/lib/test/project-referencing-rig/config/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/notExist.json\\" does not exist. Attempting to load via rig (\\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default\\").[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/node_modules/test-rig/profiles/default/config/notExist.json\\" not found.[n]", + "[ debug] Configuration file \\"/lib-commonjs/test/project-referencing-rig/config/notExist.json\\" not found.[n]", ] `; diff --git a/libraries/node-core-library/src/test/__snapshots__/Import.test.ts.snap b/libraries/node-core-library/src/test/__snapshots__/Import.test.ts.snap index 1928c092d2..0ff81af1df 100644 --- a/libraries/node-core-library/src/test/__snapshots__/Import.test.ts.snap +++ b/libraries/node-core-library/src/test/__snapshots__/Import.test.ts.snap @@ -1,16 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Import resolveModule allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 1`] = `"Cannot find module \\"@rushstack/node-core-library\\" from \\"/lib/test\\": Error: Cannot find module '@rushstack/node-core-library' from ''"`; +exports[`Import resolveModule allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 1`] = `"Cannot find module \\"@rushstack/node-core-library\\" from \\"/lib-commonjs/test\\": Error: Cannot find module '@rushstack/node-core-library' from ''"`; -exports[`Import resolveModule allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 2`] = `"Cannot find module \\"@rushstack/node-core-library/lib/Constants.js\\" from \\"/lib/test\\": Error: Cannot find module '@rushstack/node-core-library/lib/Constants.js' from ''"`; +exports[`Import resolveModule allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 2`] = `"Cannot find module \\"@rushstack/node-core-library/lib/Constants.js\\" from \\"/lib-commonjs/test\\": Error: Cannot find module '@rushstack/node-core-library/lib/Constants.js' from ''"`; -exports[`Import resolveModule includeSystemModules throws on an attempt to resolve a non-existing path inside a system module with includeSystemModules turned on 1`] = `"Cannot find module \\"fs/foo/bar\\" from \\"/lib/test\\": Error: Cannot find module 'fs/foo/bar' from ''"`; +exports[`Import resolveModule includeSystemModules throws on an attempt to resolve a non-existing path inside a system module with includeSystemModules turned on 1`] = `"Cannot find module \\"fs/foo/bar\\" from \\"/lib-commonjs/test\\": Error: Cannot find module 'fs/foo/bar' from ''"`; -exports[`Import resolveModule includeSystemModules throws on an attempt to resolve a system module without includeSystemModules turned on 1`] = `"Cannot find module \\"fs\\" from \\"/lib/test\\"."`; +exports[`Import resolveModule includeSystemModules throws on an attempt to resolve a system module without includeSystemModules turned on 1`] = `"Cannot find module \\"fs\\" from \\"/lib-commonjs/test\\"."`; exports[`Import resolvePackage allowSelfReference fails to resolve a path inside this package with allowSelfReference turned on 1`] = `"The package name \\"@rushstack/node-core-library/lib/Constants.js\\" contains an invalid character: \\"/\\""`; -exports[`Import resolvePackage allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 1`] = `"Cannot find package \\"@rushstack/node-core-library\\" from \\"/lib/test\\": Error: Cannot find module '@rushstack/node-core-library/package.json' from ''."`; +exports[`Import resolvePackage allowSelfReference throws on an attempt to reference this package without allowSelfReference turned on 1`] = `"Cannot find package \\"@rushstack/node-core-library\\" from \\"/lib-commonjs/test\\": Error: Cannot find module '@rushstack/node-core-library/package.json' from ''."`; exports[`Import resolvePackage fails to resolve a path inside a dependency 1`] = `"The package name \\"@rushstack/heft/lib/start.js\\" contains an invalid character: \\"/\\""`; @@ -18,4 +18,4 @@ exports[`Import resolvePackage fails to resolve a path inside a dependency of a exports[`Import resolvePackage includeSystemModules throws on an attempt to resolve a non-existing path inside a system module with includeSystemModules turned on 1`] = `"The package name \\"fs/foo/bar\\" contains an invalid character: \\"/\\""`; -exports[`Import resolvePackage includeSystemModules throws on an attempt to resolve a system module without includeSystemModules turned on 1`] = `"Cannot find package \\"fs\\" from \\"/lib/test\\": Error: Cannot find module 'fs/package.json' from ''."`; +exports[`Import resolvePackage includeSystemModules throws on an attempt to resolve a system module without includeSystemModules turned on 1`] = `"Cannot find package \\"fs\\" from \\"/lib-commonjs/test\\": Error: Cannot find module 'fs/package.json' from ''."`; diff --git a/libraries/package-deps-hash/src/test/getPackageDeps.test.ts b/libraries/package-deps-hash/src/test/getPackageDeps.test.ts index adae400ab4..0c57ea6f3c 100644 --- a/libraries/package-deps-hash/src/test/getPackageDeps.test.ts +++ b/libraries/package-deps-hash/src/test/getPackageDeps.test.ts @@ -8,7 +8,9 @@ import { getPackageDeps, parseGitLsTree, parseGitFilename } from '../getPackageD import { FileSystem, FileConstants } from '@rushstack/node-core-library'; -const SOURCE_PATH: string = path.join(__dirname).replace(path.join('lib', 'test'), path.join('src', 'test')); +const SOURCE_PATH: string = path + .join(__dirname) + .replace(path.join('lib-commonjs', 'test'), path.join('src', 'test')); const TEST_PROJECT_PATH: string = path.join(SOURCE_PATH, 'testProject'); const NESTED_TEST_PROJECT_PATH: string = path.join(SOURCE_PATH, 'nestedTestProject'); diff --git a/libraries/package-deps-hash/src/test/getRepoDeps.test.ts b/libraries/package-deps-hash/src/test/getRepoDeps.test.ts index b65928e5cd..6e01af1fd6 100644 --- a/libraries/package-deps-hash/src/test/getRepoDeps.test.ts +++ b/libraries/package-deps-hash/src/test/getRepoDeps.test.ts @@ -14,7 +14,9 @@ import { import { FileSystem } from '@rushstack/node-core-library'; -const SOURCE_PATH: string = path.join(__dirname).replace(path.join('lib', 'test'), path.join('src', 'test')); +const SOURCE_PATH: string = path + .join(__dirname) + .replace(path.join('lib-commonjs', 'test'), path.join('src', 'test')); const TEST_PREFIX: string = `libraries/package-deps-hash/src/test/`; const TEST_PROJECT_PATH: string = path.join(SOURCE_PATH, 'testProject'); diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index dc11fa35f4..56146f6a11 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -12,7 +12,7 @@ }, "engineStrict": true, "homepage": "https://rushjs.io", - "main": "./lib/index.js", + "main": "./lib-commonjs/index.js", "types": "./dist/rush-lib.d.ts", "exports": { ".": { diff --git a/libraries/rush-lib/scripts/copyEmptyModules.js b/libraries/rush-lib/scripts/copyEmptyModules.js index 51a1247cfe..061a03d699 100644 --- a/libraries/rush-lib/scripts/copyEmptyModules.js +++ b/libraries/rush-lib/scripts/copyEmptyModules.js @@ -44,6 +44,7 @@ module.exports = { } const jsInFolderPath = `${buildFolderPath}/lib-intermediate-esm`; + const dtsInFolderPath = `${buildFolderPath}/lib-dts`; const outCjsFolderPath = `${buildFolderPath}/lib-commonjs`; const emptyModuleBuffer = Buffer.from('module.exports = {};', 'utf8'); const folderPathQueue = new AsyncQueue([undefined]); @@ -69,6 +70,15 @@ module.exports = { await FileSystem.writeFileAsync(outJsPath, emptyModuleBuffer, { ensureFolderExists: true }); + + const relativeDtsPath = + relativeItemPath.slice(0, -JS_FILE_EXTENSION.length) + DTS_FILE_EXTENSION; + const inDtsPath = `${dtsInFolderPath}/${relativeDtsPath}`; + const outDtsPath = `${outCjsFolderPath}/${relativeDtsPath}`; + terminal.writeVerboseLine(`Copying ${inDtsPath} to ${outDtsPath}`); + // We know this is a file, don't need the redundant checks in FileSystem.copyFileAsync + const buffer = await FileSystem.readFileToBufferAsync(inDtsPath); + await FileSystem.writeFileAsync(outDtsPath, buffer, { ensureFolderExists: true }); } } } diff --git a/libraries/rush-sdk/webpack.config.js b/libraries/rush-sdk/webpack.config.js index 55f70d4183..9f5d2189cc 100644 --- a/libraries/rush-sdk/webpack.config.js +++ b/libraries/rush-sdk/webpack.config.js @@ -25,6 +25,11 @@ module.exports = ({ webpack: { BannerPlugin } }) => { // Explicitly exclude @microsoft/rush-lib externalDependencyNames.delete('@microsoft/rush-lib'); + // Resolve rush-lib deep imports to the intermediate ESM source rather than the + // DeepImportsPlugin stubs (which load from the dist/ webpack bundle). This avoids + // embedding a nested webpack runtime that expects a separate commons.js chunk. + const rushLibLibAlias = `${rushLibFolder}/lib-intermediate-esm`; + return { context: __dirname, mode: 'development', // So the output isn't minified @@ -63,6 +68,11 @@ module.exports = ({ webpack: { BannerPlugin } }) => { }), new PreserveDynamicRequireWebpackPlugin() ], + resolve: { + alias: { + '@microsoft/rush-lib/lib': rushLibLibAlias + } + }, externals: [ ({ request }, callback) => { let packageName; diff --git a/webpack/hashed-folder-copy-plugin/config/heft.json b/webpack/hashed-folder-copy-plugin/config/heft.json index 8e62ffe948..34e1f80b42 100644 --- a/webpack/hashed-folder-copy-plugin/config/heft.json +++ b/webpack/hashed-folder-copy-plugin/config/heft.json @@ -41,7 +41,7 @@ { "sourcePath": "./src/test/scenarios/", "includeGlobs": ["**/*"], - "destinationFolders": ["lib/test/scenarios"] + "destinationFolders": ["lib-commonjs/test/scenarios"] } ] } diff --git a/webpack/webpack5-load-themed-styles-loader/src/test/LoadThemedStylesLoader.test.ts b/webpack/webpack5-load-themed-styles-loader/src/test/LoadThemedStylesLoader.test.ts index 13fc998b7d..06b09544e3 100644 --- a/webpack/webpack5-load-themed-styles-loader/src/test/LoadThemedStylesLoader.test.ts +++ b/webpack/webpack5-load-themed-styles-loader/src/test/LoadThemedStylesLoader.test.ts @@ -40,7 +40,7 @@ describe('webpack5-load-themed-style-loader', () => { it('it allows for and inserts override of load-themed-styles path', async () => { // It would error when I attempt to use the .ts mock in src/test/testData // beacuse I'm not setting up default support for webpack to load .ts files. - const expectedPath: string = '../../../lib/test/testData/LoadThemedStylesMock'; + const expectedPath: string = '../../../lib-commonjs/test/testData/LoadThemedStylesMock'; const stats = await getCompiler('./MockStyle1.css', { loadThemedStylesPath: expectedPath }); if (!stats) { throw new Error(`Expected stats`); @@ -92,7 +92,7 @@ describe('webpack5-load-themed-style-loader', () => { // We mock the path of the loader because the full resolved path can change between machines // IE: Different folder topology, etc. So we just used the mocked module and set it // to loadThemedStylesPath option from the loader. - const expectedPath: string = '../../../lib/test/testData/LoadThemedStylesMock'; + const expectedPath: string = '../../../lib-commonjs/test/testData/LoadThemedStylesMock'; const stats = await getCompiler('./MockStyle1.css', { loadThemedStylesPath: expectedPath, esModule: true @@ -106,7 +106,7 @@ describe('webpack5-load-themed-style-loader', () => { }); it('generates desired loader output snapshot', async () => { - const expectedPath: string = '../../../lib/test/testData/LoadThemedStylesMock'; + const expectedPath: string = '../../../lib-commonjs/test/testData/LoadThemedStylesMock'; const stats = await getCompiler('./MockStyle1.css', { loadThemedStylesPath: expectedPath }); if (!stats) { throw new Error(`Expected stats`); diff --git a/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap b/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap index 6a9bb7fc79..7bfacfd74c 100644 --- a/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap +++ b/webpack/webpack5-load-themed-styles-loader/src/test/__snapshots__/LoadThemedStylesLoader.test.ts.snap @@ -2,7 +2,7 @@ exports[`webpack5-load-themed-style-loader generates desired loader output snapshot: LoaderContent 1`] = ` "var content = require(\\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.105.2/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"); -var loader = require(\\"../../../lib/test/testData/LoadThemedStylesMock\\"); +var loader = require(\\"../../../lib-commonjs/test/testData/LoadThemedStylesMock\\"); if(typeof content === \\"string\\") content = [[module.id, content]]; @@ -14,7 +14,7 @@ if(content.locals) module.exports = content.locals;" exports[`webpack5-load-themed-style-loader generates desired output for esModule option set to "true" as a snapshot: LoaderContent ESModule 1`] = ` "import content from \\"!!../../../../../common/temp/default/node_modules/.pnpm/css-loader@6.6.0_webpack@5.105.2/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./MockStyle1.css\\"; -import { loadStyles } from \\"../../../lib/test/testData/LoadThemedStylesMock\\"; +import { loadStyles } from \\"../../../lib-commonjs/test/testData/LoadThemedStylesMock\\"; if(typeof content === \\"string\\") content = [[module.id, content]]; From 75a9b70a2594f3744961768dc89de2427689ca05 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 15:16:03 -0800 Subject: [PATCH 29/43] fixup! Clean up output folders in tests. --- .../api-extractor-scenarios.api.json | 4 ++-- .../heft-jest-reporters-test/config/heft.json | 2 +- .../config/jest.config.json | 18 +++++++++--------- .../rspack.dev.config.mjs | 4 ++-- .../__snapshots__/SourceMapTest.test.ts.snap | 6 +++--- .../heft-sass-test/src/test/lib.test.ts | 2 +- build-tests/run-scenarios-helpers/src/index.ts | 3 ++- .../scripts/createSrc.js | 2 +- 8 files changed, 21 insertions(+), 20 deletions(-) diff --git a/build-tests/api-extractor-scenarios/etc/excerptTokens/api-extractor-scenarios.api.json b/build-tests/api-extractor-scenarios/etc/excerptTokens/api-extractor-scenarios.api.json index 7a086bfd59..8a3cdb3b66 100644 --- a/build-tests/api-extractor-scenarios/etc/excerptTokens/api-extractor-scenarios.api.json +++ b/build-tests/api-extractor-scenarios/etc/excerptTokens/api-extractor-scenarios.api.json @@ -202,7 +202,7 @@ "text": "number" } ], - "fileUrlPath": "lib/excerptTokens/index.d.ts", + "fileUrlPath": "lib-dts/excerptTokens/index.d.ts", "isReadonly": false, "releaseTag": "Public", "name": "MY_CONSTANT", @@ -221,7 +221,7 @@ "text": "export class MyClass " } ], - "fileUrlPath": "lib/excerptTokens/index.d.ts", + "fileUrlPath": "lib-dts/excerptTokens/index.d.ts", "releaseTag": "Public", "isAbstract": false, "name": "MyClass", diff --git a/build-tests/heft-jest-reporters-test/config/heft.json b/build-tests/heft-jest-reporters-test/config/heft.json index 0394daa977..304ccc96c0 100644 --- a/build-tests/heft-jest-reporters-test/config/heft.json +++ b/build-tests/heft-jest-reporters-test/config/heft.json @@ -4,7 +4,7 @@ // TODO: Add comments "phasesByName": { "build": { - "cleanFiles": [{ "includeGlobs": ["dist", "lib", "lib-commonjs"] }], + "cleanFiles": [{ "includeGlobs": ["dist", "lib"] }], "tasksByName": { "typescript": { diff --git a/build-tests/heft-jest-reporters-test/config/jest.config.json b/build-tests/heft-jest-reporters-test/config/jest.config.json index 491648c6fd..294f12cc0b 100644 --- a/build-tests/heft-jest-reporters-test/config/jest.config.json +++ b/build-tests/heft-jest-reporters-test/config/jest.config.json @@ -1,15 +1,15 @@ { "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json", "coverageDirectory": "/coverage", - "reporters": ["default", "../lib-commonjs/test/customJestReporter.cjs"], - "testMatch": ["/lib-commonjs/**/*.test.cjs"], + "reporters": ["default", "../lib/test/customJestReporter.cjs"], + "testMatch": ["/lib/**/*.test.cjs"], "collectCoverageFrom": [ - "lib-commonjs/**/*.cjs", - "!lib-commonjs/**/*.d.ts", - "!lib-commonjs/**/*.test.cjs", - "!lib-commonjs/**/test/**", - "!lib-commonjs/**/__tests__/**", - "!lib-commonjs/**/__fixtures__/**", - "!lib-commonjs/**/__mocks__/**" + "lib/**/*.cjs", + "!lib/**/*.d.ts", + "!lib/**/*.test.cjs", + "!lib/**/test/**", + "!lib/**/__tests__/**", + "!lib/**/__fixtures__/**", + "!lib/**/__mocks__/**" ] } diff --git a/build-tests/heft-rspack-everything-test/rspack.dev.config.mjs b/build-tests/heft-rspack-everything-test/rspack.dev.config.mjs index 3e0315a615..3698171975 100644 --- a/build-tests/heft-rspack-everything-test/rspack.dev.config.mjs +++ b/build-tests/heft-rspack-everything-test/rspack.dev.config.mjs @@ -25,8 +25,8 @@ const config = { extensions: ['.js', '.json'] }, entry: { - 'heft-test-A': resolve(__dirname, 'lib', 'indexA.js'), - 'heft-test-B': resolve(__dirname, 'lib', 'indexB.js') + 'heft-test-A': resolve(__dirname, 'lib-commonjs', 'indexA.js'), + 'heft-test-B': resolve(__dirname, 'lib-commonjs', 'indexB.js') }, output: { path: resolve(__dirname, 'dist'), diff --git a/build-tests/heft-rspack-everything-test/src/test/__snapshots__/SourceMapTest.test.ts.snap b/build-tests/heft-rspack-everything-test/src/test/__snapshots__/SourceMapTest.test.ts.snap index 23c890d36c..9f5515e37f 100644 --- a/build-tests/heft-rspack-everything-test/src/test/__snapshots__/SourceMapTest.test.ts.snap +++ b/build-tests/heft-rspack-everything-test/src/test/__snapshots__/SourceMapTest.test.ts.snap @@ -2,7 +2,7 @@ exports[`Source Maps Chunk has a source that matches the sourceFileRegex 1`] = ` Array [ - "webpack://heft-rspack-everything-test/./lib/chunks/ChunkClass.js", + "webpack://heft-rspack-everything-test/./lib-esm/chunks/ChunkClass.js", ] `; @@ -18,7 +18,7 @@ Array [ "webpack://heft-rspack-everything-test/webpack/runtime/rspack_version", "webpack://heft-rspack-everything-test/webpack/runtime/auto_public_path", "webpack://heft-rspack-everything-test/webpack/runtime/rspack_unique_id", - "webpack://heft-rspack-everything-test/./lib/indexA.js", + "webpack://heft-rspack-everything-test/./lib-esm/indexA.js", ] `; @@ -26,6 +26,6 @@ exports[`Source Maps Test-B has a source that matches the sourceFileRegex 1`] = Array [ "webpack://heft-rspack-everything-test/webpack/runtime/rspack_version", "webpack://heft-rspack-everything-test/webpack/runtime/rspack_unique_id", - "webpack://heft-rspack-everything-test/./lib/indexB.js", + "webpack://heft-rspack-everything-test/./lib-esm/indexB.js", ] `; diff --git a/build-tests/heft-sass-test/src/test/lib.test.ts b/build-tests/heft-sass-test/src/test/lib.test.ts index 1fb4a9746e..55a3215465 100644 --- a/build-tests/heft-sass-test/src/test/lib.test.ts +++ b/build-tests/heft-sass-test/src/test/lib.test.ts @@ -5,7 +5,7 @@ import * as path from 'node:path'; import { validateSnapshots, getScssFiles } from './validateSnapshots'; describe('SASS ESM Shims', () => { - const libFolder: string = path.join(__dirname, '../../lib'); + const libFolder: string = path.join(__dirname, '../../lib-esm'); getScssFiles().forEach((fileName: string) => { it(fileName, () => { validateSnapshots(libFolder, fileName); diff --git a/build-tests/run-scenarios-helpers/src/index.ts b/build-tests/run-scenarios-helpers/src/index.ts index ce0681a756..5c7791d5ee 100644 --- a/build-tests/run-scenarios-helpers/src/index.ts +++ b/build-tests/run-scenarios-helpers/src/index.ts @@ -33,7 +33,8 @@ export async function runScenariosAsync( const scenariosWithCustomCompilerOptions: string[] = []; const scenarioFolderNames: string[] = []; - const folderItems: FolderItem[] = await FileSystem.readFolderItemsAsync(libFolderPath); + const libDtsFolderPath: string = `${buildFolderPath}/lib-dts`; + const folderItems: FolderItem[] = await FileSystem.readFolderItemsAsync(libDtsFolderPath); for (const folderItem of folderItems) { if (folderItem.isDirectory()) { scenarioFolderNames.push(folderItem.name); diff --git a/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js b/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js index 931ccb9870..d61fb703b1 100644 --- a/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js +++ b/build-tests/rush-lib-declaration-paths-test/scripts/createSrc.js @@ -31,7 +31,7 @@ module.exports = { '// See LICENSE in the project root for license information.', '' ]; - for await (const dtsPath of collectDtsPaths(`${rushLibPath}/lib-dts`, '@microsoft/rush-lib/lib-dts')) { + for await (const dtsPath of collectDtsPaths(`${rushLibPath}/lib-commonjs`, '@microsoft/rush-lib/lib')) { indexFileLines.push(`import '${dtsPath}';`); } From 01e580d6798c9ec780c67b5b8c9a097c0692c519 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 15:32:24 -0800 Subject: [PATCH 30/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- libraries/rush-lib/webpack.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libraries/rush-lib/webpack.config.js b/libraries/rush-lib/webpack.config.js index 085d7f1739..6952beba9d 100644 --- a/libraries/rush-lib/webpack.config.js +++ b/libraries/rush-lib/webpack.config.js @@ -42,6 +42,18 @@ module.exports = () => { }), ...extraPlugins ], + module: { + rules: [ + { + // These files have side effects (e.g. setting process.env variables) that must not + // be tree-shaken, even though they are only imported for their side effects. + // The package.json "sideEffects" field references the shipped folder names (lib-commonjs, + // lib-esm), but webpack reads from the intermediate build folders (lib-intermediate-esm). + test: /[\\/](SetRushLibPath|start|startx|start-pnpm)\.js$/, + sideEffects: true + } + ] + }, externals: [ ({ request }, callback) => { let packageName; From 0afdfd2e7336ceab66941c5fd4d880bb9c7095d7 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 16:10:37 -0800 Subject: [PATCH 31/43] Add sideEffects to package.json for all published packages Set "sideEffects" field in package.json across all published packages to enable webpack tree-shaking optimizations: - Pure libraries: "sideEffects": false - Executable apps with start entrypoints: sideEffects array listing lib-commonjs/ and lib-esm/ start files - eslint-patch: sideEffects array listing side-effectful entry points - webpack4-module-minifier-plugin: updated stale sideEffects path --- apps/api-documenter/package.json | 6 +++++- apps/api-extractor/package.json | 6 +++++- apps/cpu-profile-summarizer/package.json | 6 +++++- apps/heft/package.json | 8 +++++++- apps/lockfile-explorer-web/package.json | 3 ++- apps/lockfile-explorer/package.json | 8 +++++++- apps/playwright-browser-tunnel/package.json | 3 ++- apps/rundown/package.json | 6 +++++- apps/rush-mcp-server/package.json | 6 +++++- apps/rush/package.json | 6 +++++- apps/trace-import/package.json | 6 +++++- apps/zipsync/package.json | 6 +++++- eslint/eslint-bulk/package.json | 6 +++++- eslint/eslint-config/package.json | 3 ++- eslint/eslint-patch/package.json | 10 +++++++++- eslint/eslint-plugin-packlets/package.json | 3 ++- eslint/eslint-plugin-security/package.json | 3 ++- eslint/eslint-plugin/package.json | 3 ++- heft-plugins/heft-api-extractor-plugin/package.json | 3 ++- heft-plugins/heft-dev-cert-plugin/package.json | 3 ++- .../package.json | 3 ++- heft-plugins/heft-jest-plugin/package.json | 3 ++- .../heft-json-schema-typings-plugin/package.json | 3 ++- heft-plugins/heft-lint-plugin/package.json | 3 ++- .../heft-localization-typings-plugin/package.json | 3 ++- heft-plugins/heft-rspack-plugin/package.json | 3 ++- .../heft-sass-load-themed-styles-plugin/package.json | 3 ++- heft-plugins/heft-sass-plugin/package.json | 3 ++- heft-plugins/heft-serverless-stack-plugin/package.json | 3 ++- heft-plugins/heft-storybook-plugin/package.json | 3 ++- heft-plugins/heft-typescript-plugin/package.json | 3 ++- heft-plugins/heft-webpack4-plugin/package.json | 3 ++- heft-plugins/heft-webpack5-plugin/package.json | 3 ++- libraries/api-extractor-model/package.json | 3 ++- libraries/credential-cache/package.json | 3 ++- libraries/debug-certificate-manager/package.json | 3 ++- libraries/heft-config-file/package.json | 3 ++- libraries/load-themed-styles/package.json | 3 ++- libraries/localization-utilities/package.json | 3 ++- libraries/lookup-by-path/package.json | 3 ++- libraries/module-minifier/package.json | 3 ++- libraries/node-core-library/package.json | 3 ++- libraries/npm-check-fork/package.json | 3 ++- libraries/operation-graph/package.json | 3 ++- libraries/package-deps-hash/package.json | 3 ++- libraries/package-extractor/package.json | 3 ++- libraries/problem-matcher/package.json | 3 ++- libraries/rig-package/package.json | 3 ++- libraries/rush-pnpm-kit-v10/package.json | 3 ++- libraries/rush-pnpm-kit-v8/package.json | 3 ++- libraries/rush-pnpm-kit-v9/package.json | 3 ++- libraries/rush-sdk/package.json | 3 ++- libraries/rush-themed-ui/package.json | 3 ++- libraries/stream-collator/package.json | 3 ++- libraries/terminal/package.json | 3 ++- libraries/tree-pattern/package.json | 3 ++- libraries/ts-command-line/package.json | 3 ++- libraries/typings-generator/package.json | 3 ++- libraries/worker-pool/package.json | 3 ++- rigs/heft-node-rig/package.json | 3 ++- rigs/heft-vscode-extension-rig/package.json | 3 ++- rigs/heft-web-rig/package.json | 3 ++- .../rush-amazon-s3-build-cache-plugin/package.json | 3 ++- .../rush-azure-storage-build-cache-plugin/package.json | 3 ++- rush-plugins/rush-bridge-cache-plugin/package.json | 3 ++- rush-plugins/rush-buildxl-graph-plugin/package.json | 3 ++- rush-plugins/rush-http-build-cache-plugin/package.json | 3 ++- rush-plugins/rush-mcp-docs-plugin/package.json | 3 ++- rush-plugins/rush-redis-cobuild-plugin/package.json | 3 ++- rush-plugins/rush-resolver-cache-plugin/package.json | 3 ++- rush-plugins/rush-serve-plugin/package.json | 3 ++- .../package.json | 3 ++- .../package.json | 3 ++- .../rush-vscode-command-webview/package.json | 3 ++- vscode-extensions/rush-vscode-extension/package.json | 3 ++- webpack/hashed-folder-copy-plugin/package.json | 3 ++- webpack/loader-load-themed-styles/package.json | 3 ++- webpack/loader-raw-script/package.json | 3 ++- webpack/set-webpack-public-path-plugin/package.json | 3 ++- .../webpack-embedded-dependencies-plugin/package.json | 3 ++- webpack/webpack-plugin-utilities/package.json | 3 ++- webpack/webpack4-localization-plugin/package.json | 3 ++- webpack/webpack4-module-minifier-plugin/package.json | 3 ++- .../webpack5-load-themed-styles-loader/package.json | 3 ++- webpack/webpack5-localization-plugin/package.json | 3 ++- 85 files changed, 214 insertions(+), 85 deletions(-) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 4c2b1ef477..6539eddce0 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -55,5 +55,9 @@ "@types/resolve": "1.20.2", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 1c3531221e..d161865146 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -81,5 +81,9 @@ "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0", "local-eslint-config": "workspace:*" - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index 1441764511..95dab85a67 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -40,5 +40,9 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/heft/package.json b/apps/heft/package.json index 6b5be9fd38..9ac95e1c26 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -74,5 +74,11 @@ "@types/watchpack": "2.4.0", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-commonjs/startWithVersionSelector.js", + "lib-esm/start.js", + "lib-esm/startWithVersionSelector.js" + ] } diff --git a/apps/lockfile-explorer-web/package.json b/apps/lockfile-explorer-web/package.json index 7eeabe34cc..bb22f5bd43 100644 --- a/apps/lockfile-explorer-web/package.json +++ b/apps/lockfile-explorer-web/package.json @@ -28,5 +28,6 @@ "eslint": "~9.37.0", "local-web-rig": "workspace:*", "typescript": "5.8.2" - } + }, + "sideEffects": false } diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 0d8e73d0ce..eb1b2716b9 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -88,5 +88,11 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start-explorer.js", + "lib-commonjs/start-lint.js", + "lib-esm/start-explorer.js", + "lib-esm/start-lint.js" + ] } diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index fe7c95fc01..9a40c97888 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -62,5 +62,6 @@ }, "peerDependencies": { "playwright-core": "~1.56.1" - } + }, + "sideEffects": false } diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 8a9de83104..0608b0b329 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -44,5 +44,9 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index b98ca6751d..b447c1f1d3 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -64,5 +64,9 @@ "local-node-rig": "workspace:*", "typescript": "~5.8.2", "@types/node": "20.17.19" - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/rush/package.json b/apps/rush/package.json index 44a3a691f0..cb92c15e83 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -65,5 +65,9 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index 94d9adb23d..13dd7601f5 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -46,5 +46,9 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index cbb763dace..d8092b6930 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -50,5 +50,9 @@ "lib-dts/*" ] } - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 73ac6ba5ab..16eea2885f 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -50,5 +50,9 @@ "@types/node": "20.17.19", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": [ + "lib-commonjs/start.js", + "lib-esm/start.js" + ] } diff --git a/eslint/eslint-config/package.json b/eslint/eslint-config/package.json index 1b07e3584e..f848c30878 100644 --- a/eslint/eslint-config/package.json +++ b/eslint/eslint-config/package.json @@ -42,5 +42,6 @@ "devDependencies": { "eslint": "~9.37.0", "typescript": "~5.8.2" - } + }, + "sideEffects": false } diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index 812ad8e81c..50116d2d09 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -71,5 +71,13 @@ "eslint-9": "npm:eslint@~9.25.1", "eslint": "~9.37.0", "typescript": "~5.8.2" - } + }, + "sideEffects": [ + "lib-esm/modern-module-resolution.js", + "lib-esm/custom-config-package-names.js", + "lib-esm/eslint-bulk-suppressions/index.js", + "lib-commonjs/modern-module-resolution.js", + "lib-commonjs/custom-config-package-names.js", + "lib-commonjs/eslint-bulk-suppressions/index.js" + ] } diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index 62914e06d1..b8384b26ef 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -56,5 +56,6 @@ "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0", "typescript": "~5.8.2" - } + }, + "sideEffects": false } diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index cd5ff5fd71..8f56283520 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -57,5 +57,6 @@ "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0", "typescript": "~5.8.2" - } + }, + "sideEffects": false } diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index 7e60268428..30bf1c0bb1 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -61,5 +61,6 @@ "eslint": "~9.37.0", "typescript": "~5.8.2", "@typescript-eslint/types": "~8.46.0" - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index 3122835dfc..4f1549f1f3 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -43,5 +43,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index a0f0aa84ac..e06501d475 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -41,5 +41,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 02fbbe91fb..634b64508a 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -54,5 +54,6 @@ "@swc/core": "1.7.10", "@types/tapable": "1.0.6", "tapable": "1.1.3" - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 002fe01ca3..fa7c69ba2d 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -66,5 +66,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index fca8c991bf..ac277097e7 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -42,5 +42,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 310d454286..52681db211 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -51,5 +51,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index 54432424be..3c5a7219cc 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -40,5 +40,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 9cab8ae481..64766f4395 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -57,5 +57,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "@rspack/core": "~1.6.0-beta.0" - } + }, + "sideEffects": false } 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 c57ad331c2..5c3398c024 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -41,5 +41,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 41a7684f3e..6d25bab259 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -54,5 +54,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 34e63b4d07..8938ddf22c 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -41,5 +41,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index fac7e67c12..50693fffa0 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -44,5 +44,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index a10ab404af..969d10b665 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -54,5 +54,6 @@ "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0", "typescript": "~5.8.2" - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index cc5072de26..1909a6c7e9 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -64,5 +64,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "webpack": "~4.47.0" - } + }, + "sideEffects": false } diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index 6b7ee08469..ea77cd5d40 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -57,5 +57,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 8fdf2fb9ed..ca98d6935c 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -46,5 +46,6 @@ "@rushstack/heft": "1.1.7", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": false } diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index 0a23818df4..b193233f87 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -43,5 +43,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index 5bd45206a8..9e1f184ca1 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -45,5 +45,6 @@ "@types/node-forge": "1.0.4", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index d7cee21f81..6ba24f4088 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -53,5 +53,6 @@ "@types/ungap__structured-clone": "~1.2.0", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": false } diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index 760c2e3089..d1e7be551c 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -41,5 +41,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-web-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index 5bd24440f5..7e851d1227 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -48,5 +48,6 @@ "@types/xmldoc": "1.1.4", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index e6b980d5b4..b3ff3f5e93 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -55,5 +55,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index df004b8fbe..02d3a16824 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -56,5 +56,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index 09d37713e7..dacb580052 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -63,5 +63,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index e9afe97923..77f7397c76 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -50,5 +50,6 @@ "@types/semver": "7.5.0", "local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": false } diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index 9e6a7f9675..97325b3218 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -52,5 +52,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 15630e7149..e84762b9d9 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -43,5 +43,6 @@ }, "dependencies": { "@rushstack/node-core-library": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 9bcb530100..95db0f6192 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -58,5 +58,6 @@ "eslint": "~9.37.0", "webpack": "~5.105.2", "@types/semver": "7.5.0" - } + }, + "sideEffects": false } diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index 47eafad306..d7ea60deaf 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -48,5 +48,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index 8559b2bf76..fb9bc1b88d 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -47,5 +47,6 @@ "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0", "resolve": "~1.22.1" - } + }, + "sideEffects": false } diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index d734fe6085..518d157281 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -40,5 +40,6 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index a41f9eff6c..a86a8ea39d 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -40,5 +40,6 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index 10315646fa..1817b38e90 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -40,5 +40,6 @@ "devDependencies": { "@rushstack/heft": "workspace:*", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/rush-sdk/package.json b/libraries/rush-sdk/package.json index 44303aca5a..f02c38ab50 100644 --- a/libraries/rush-sdk/package.json +++ b/libraries/rush-sdk/package.json @@ -62,5 +62,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/libraries/rush-themed-ui/package.json b/libraries/rush-themed-ui/package.json index 2fe7d94f8e..295898f899 100644 --- a/libraries/rush-themed-ui/package.json +++ b/libraries/rush-themed-ui/package.json @@ -27,5 +27,6 @@ "@types/react-dom": "19.2.3", "eslint": "~9.37.0", "local-web-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 65d91f2b8c..e2f816b067 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -44,5 +44,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index 600efb6b90..ee5dc1d862 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -54,5 +54,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index b5bc2c9a32..defb00c396 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -40,5 +40,6 @@ "@rushstack/heft": "1.1.7", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": false } diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index 4201566c1b..c29d745d07 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -47,5 +47,6 @@ "@rushstack/node-core-library": "workspace:*", "decoupled-local-node-rig": "workspace:*", "eslint": "~9.37.0" - } + }, + "sideEffects": false } diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index c6a35f9a2c..54fa02c8fa 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -59,5 +59,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index d860a71771..e67ca8a34b 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -48,5 +48,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } diff --git a/rigs/heft-node-rig/package.json b/rigs/heft-node-rig/package.json index f670aa03b0..52127f3fdf 100644 --- a/rigs/heft-node-rig/package.json +++ b/rigs/heft-node-rig/package.json @@ -29,5 +29,6 @@ }, "devDependencies": { "@rushstack/heft": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rigs/heft-vscode-extension-rig/package.json b/rigs/heft-vscode-extension-rig/package.json index e760b6a706..cc04480344 100644 --- a/rigs/heft-vscode-extension-rig/package.json +++ b/rigs/heft-vscode-extension-rig/package.json @@ -28,5 +28,6 @@ }, "devDependencies": { "@rushstack/heft": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rigs/heft-web-rig/package.json b/rigs/heft-web-rig/package.json index 988d6d5e39..3ed08dcd01 100644 --- a/rigs/heft-web-rig/package.json +++ b/rigs/heft-web-rig/package.json @@ -47,5 +47,6 @@ }, "devDependencies": { "@rushstack/heft": "workspace:*" - } + }, + "sideEffects": false } 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 b06ce8789c..5dd309ea82 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -51,5 +51,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } 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 53e45dcecc..ba11456ead 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -51,5 +51,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 4cc69c80d1..579419ce2f 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -47,5 +47,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index c2608b834d..4f9b88d978 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -49,5 +49,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 8cdcc94091..0175482d65 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -51,5 +51,6 @@ "@rushstack/terminal": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index 09963444e3..c5d7795efc 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -46,5 +46,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "local-eslint-config": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index 91076c27f3..9ee554395e 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -50,5 +50,6 @@ "@rushstack/terminal": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index e91fb13c0b..8a7c805f2f 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -51,5 +51,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 6c3afb52ef..2c95bf1757 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -67,5 +67,6 @@ "lib-dts/*" ] } - } + }, + "sideEffects": false } diff --git a/vscode-extensions/debug-certificate-manager-vscode-extension/package.json b/vscode-extensions/debug-certificate-manager-vscode-extension/package.json index 1c1f7d3d08..271aa6a85c 100644 --- a/vscode-extensions/debug-certificate-manager-vscode-extension/package.json +++ b/vscode-extensions/debug-certificate-manager-vscode-extension/package.json @@ -122,5 +122,6 @@ "@types/node": "20.17.19", "@types/vscode": "1.103.0", "@types/webpack-env": "1.18.8" - } + }, + "sideEffects": false } diff --git a/vscode-extensions/playwright-local-browser-server-vscode-extension/package.json b/vscode-extensions/playwright-local-browser-server-vscode-extension/package.json index 1cff56f68e..99c5c4c97b 100644 --- a/vscode-extensions/playwright-local-browser-server-vscode-extension/package.json +++ b/vscode-extensions/playwright-local-browser-server-vscode-extension/package.json @@ -109,5 +109,6 @@ "@types/node": "20.17.19", "@types/vscode": "1.103.0", "@types/webpack-env": "1.18.8" - } + }, + "sideEffects": false } diff --git a/vscode-extensions/rush-vscode-command-webview/package.json b/vscode-extensions/rush-vscode-command-webview/package.json index 9dfd3abb6a..7d36d6cdad 100644 --- a/vscode-extensions/rush-vscode-command-webview/package.json +++ b/vscode-extensions/rush-vscode-command-webview/package.json @@ -42,5 +42,6 @@ "local-web-rig": "workspace:*", "webpack": "~5.105.2", "webpack-bundle-analyzer": "~4.5.0" - } + }, + "sideEffects": false } diff --git a/vscode-extensions/rush-vscode-extension/package.json b/vscode-extensions/rush-vscode-extension/package.json index 82ac18b350..cc524ace78 100644 --- a/vscode-extensions/rush-vscode-extension/package.json +++ b/vscode-extensions/rush-vscode-extension/package.json @@ -314,5 +314,6 @@ }, "engines": { "vscode": "^1.103.0" - } + }, + "sideEffects": false } diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index 2d59f5982c..361e2ae526 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -59,5 +59,6 @@ "local-node-rig": "workspace:*", "memfs": "4.12.0", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index e5b46de7d8..92366def75 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -55,5 +55,6 @@ "@types/webpack": "4.41.32", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index 68bdb6b9bc..ca555aa397 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -43,5 +43,6 @@ "@rushstack/heft": "workspace:*", "eslint": "~9.37.0", "local-node-rig": "workspace:*" - } + }, + "sideEffects": false } diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index d65c0c4db5..4c56689cad 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -55,5 +55,6 @@ "local-node-rig": "workspace:*", "memfs": "4.12.0", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index 72928cacb1..dbbcb31402 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -55,5 +55,6 @@ "local-node-rig": "workspace:*", "webpack": "~5.105.2", "memfs": "4.12.0" - } + }, + "sideEffects": false } diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 37312e26cc..ed0ab371d8 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -57,5 +57,6 @@ "local-node-rig": "workspace:*", "@types/tapable": "1.0.6", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index e3950fdb43..fc027784e4 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -69,5 +69,6 @@ "eslint": "~9.37.0", "local-node-rig": "workspace:*", "webpack": "~4.47.0" - } + }, + "sideEffects": false } diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index 4fe2736096..fb0b6d9294 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -74,6 +74,7 @@ "webpack": "~4.47.0" }, "sideEffects": [ - "./lib/OverrideWebpackIdentifierAllocation" + "lib-esm/OverrideWebpackIdentifierAllocation.js", + "lib-commonjs/OverrideWebpackIdentifierAllocation.js" ] } diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 89eee52873..2e2ecabe47 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -54,5 +54,6 @@ "local-node-rig": "workspace:*", "memfs": "4.12.0", "webpack": "~5.105.2" - } + }, + "sideEffects": false } diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 739e5864bc..46e2e3d852 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -57,5 +57,6 @@ "@types/node": { "optional": true } - } + }, + "sideEffects": false } From de834583e887bc01c4e52b9f381981fe52ad5431 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 16:21:07 -0800 Subject: [PATCH 32/43] Add exports for heft-plugin.json, rush-plugin-manifest.json, and schema files - Expose ./heft-plugin.json in all heft plugin packages (17 projects) - Expose ./rush-plugin-manifest.json in all rush plugin packages (8 projects) - Expose ./lib/*.schema.json in all packages with schema files (28 projects) - Schema export placed before ./lib/* for correct Node.js pattern matching --- apps/api-documenter/package.json | 1 + apps/api-extractor/package.json | 1 + apps/heft/package.json | 2 ++ apps/lockfile-explorer/package.json | 1 + apps/rush-mcp-server/package.json | 1 + heft-plugins/heft-api-extractor-plugin/package.json | 2 ++ heft-plugins/heft-dev-cert-plugin/package.json | 1 + .../heft-isolated-typescript-transpile-plugin/package.json | 2 ++ heft-plugins/heft-jest-plugin/package.json | 2 ++ heft-plugins/heft-json-schema-typings-plugin/package.json | 2 ++ heft-plugins/heft-lint-plugin/package.json | 2 ++ heft-plugins/heft-localization-typings-plugin/package.json | 2 ++ heft-plugins/heft-rspack-plugin/package.json | 2 ++ heft-plugins/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 | 2 ++ heft-plugins/heft-typescript-plugin/package.json | 2 ++ heft-plugins/heft-webpack4-plugin/package.json | 2 ++ heft-plugins/heft-webpack5-plugin/package.json | 2 ++ libraries/credential-cache/package.json | 1 + libraries/localization-utilities/package.json | 1 + libraries/rig-package/package.json | 1 + libraries/rush-lib/package.json | 1 + rush-plugins/rush-amazon-s3-build-cache-plugin/package.json | 2 ++ rush-plugins/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-redis-cobuild-plugin/package.json | 2 ++ rush-plugins/rush-resolver-cache-plugin/package.json | 1 + rush-plugins/rush-serve-plugin/package.json | 2 ++ 32 files changed, 52 insertions(+) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 6539eddce0..fd4250d56a 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -26,6 +26,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/rollup.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index d161865146..004d06fbae 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -34,6 +34,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/rollup.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", diff --git a/apps/heft/package.json b/apps/heft/package.json index 9ac95e1c26..1244d54c43 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -30,11 +30,13 @@ "require": "./lib-commonjs/index.js", "types": "./dist/heft.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index eb1b2716b9..0fe3d8ed62 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -75,6 +75,7 @@ "update-notifier": "~5.1.0" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "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 b447c1f1d3..96e589928e 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -18,6 +18,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/mcp-server.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "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 4f1549f1f3..6ee52de120 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -30,11 +30,13 @@ "eslint": "~9.37.0" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index e06501d475..cea975e89e 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -33,6 +33,7 @@ "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 634b64508a..bb638d1392 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -18,11 +18,13 @@ "require": "./lib-commonjs/index.js", "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index fa7c69ba2d..46f358a526 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -53,11 +53,13 @@ "jest-watch-select-projects": "2.0.0" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index ac277097e7..dce625e3c5 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -29,11 +29,13 @@ "local-node-rig": "workspace:*" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 52681db211..0521264e5c 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -38,11 +38,13 @@ "tslint": "~5.20.1" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index 3c5a7219cc..10868ef706 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -27,11 +27,13 @@ "@rushstack/localization-utilities": "workspace:*" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 64766f4395..0dcb7ea795 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./dist/heft-rspack-plugin.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { 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 5c3398c024..647c024424 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -33,6 +33,7 @@ "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 6d25bab259..4b52432439 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -24,11 +24,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 8938ddf22c..23c7d4ea8f 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -33,6 +33,7 @@ "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index 50693fffa0..3db5edf90c 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -31,11 +31,13 @@ "@rushstack/heft-rspack-plugin": "workspace:*" }, "exports": { + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index 969d10b665..628b1d596e 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./dist/heft-typescript-plugin.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index 1909a6c7e9..a5f1ee12ff 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index ea77cd5d40..7d4b6ef85d 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./dist/heft-webpack5-plugin.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index b193233f87..d053c71a48 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -11,6 +11,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/credential-cache.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index 7e851d1227..a8f5e620d3 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -11,6 +11,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/localization-utilities.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index fb9bc1b88d..a8ecc62ba6 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -11,6 +11,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/rig-package.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index 56146f6a11..d041101484 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -19,6 +19,7 @@ "require": "./lib-commonjs/index.js", "types": "./dist/rush-lib.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" 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 5dd309ea82..c9b3a1a311 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { 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 ba11456ead..9d028347d3 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 579419ce2f..8bdf9747f9 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -18,11 +18,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 4f9b88d978..52001f5f20 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 0175482d65..04e524f301 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index 9ee554395e..b954152e02 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -17,11 +17,13 @@ "require": "./lib-commonjs/index.js", "types": "./lib-dts/index.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 8a7c805f2f..9dd33a13a7 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -40,6 +40,7 @@ "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 2c95bf1757..0f4680093d 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -48,11 +48,13 @@ "./api": { "types": "./lib-dts/api.types.d.ts" }, + "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js", "types": "./lib-dts/*.d.ts" }, + "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" }, "typesVersions": { From 3b681f560813f750adb1b351e4279360fe2958cf Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 16:28:34 -0800 Subject: [PATCH 33/43] Reorder export conditions: types, import, require, default --- apps/api-documenter/package.json | 8 ++++---- apps/api-extractor/package.json | 8 ++++---- apps/cpu-profile-summarizer/package.json | 4 ++-- apps/heft/package.json | 8 ++++---- apps/lockfile-explorer/package.json | 4 ++-- apps/playwright-browser-tunnel/package.json | 8 ++++---- apps/rundown/package.json | 4 ++-- apps/rush-mcp-server/package.json | 8 ++++---- apps/rush/package.json | 4 ++-- apps/trace-import/package.json | 4 ++-- apps/zipsync/package.json | 8 ++++---- .../package.json | 8 ++++---- .../package.json | 8 ++++---- build-tests-subspace/rush-lib-test/package.json | 4 ++-- build-tests-subspace/rush-sdk-test/package.json | 4 ++-- build-tests-subspace/typescript-newest-test/package.json | 8 ++++---- build-tests/api-documenter-scenarios/package.json | 4 ++-- build-tests/api-documenter-test/package.json | 8 ++++---- build-tests/api-extractor-d-cts-test/package.json | 8 ++++---- build-tests/api-extractor-d-mts-test/package.json | 4 ++-- build-tests/api-extractor-lib1-test/package.json | 8 ++++---- build-tests/api-extractor-lib2-test/package.json | 8 ++++---- build-tests/api-extractor-lib3-test/package.json | 8 ++++---- build-tests/api-extractor-lib4-test/package.json | 8 ++++---- build-tests/api-extractor-lib5-test/package.json | 8 ++++---- build-tests/api-extractor-scenarios/package.json | 8 ++++---- build-tests/api-extractor-test-01/package.json | 8 ++++---- build-tests/api-extractor-test-02/package.json | 8 ++++---- build-tests/api-extractor-test-03/package.json | 8 ++++---- build-tests/api-extractor-test-04/package.json | 8 ++++---- build-tests/api-extractor-test-05/package.json | 8 ++++---- build-tests/eslint-7-11-test/package.json | 8 ++++---- build-tests/eslint-7-7-test/package.json | 8 ++++---- build-tests/eslint-7-test/package.json | 8 ++++---- build-tests/eslint-8-test/package.json | 8 ++++---- build-tests/eslint-9-test/package.json | 8 ++++---- .../heft-json-schema-typings-plugin-test/package.json | 4 ++-- build-tests/localization-plugin-test-01/package.json | 4 ++-- build-tests/localization-plugin-test-02/package.json | 4 ++-- build-tests/localization-plugin-test-03/package.json | 4 ++-- build-tests/run-scenarios-helpers/package.json | 8 ++++---- .../package.json | 4 ++-- build-tests/rush-lib-declaration-paths-test/package.json | 4 ++-- build-tests/rush-mcp-example-plugin/package.json | 8 ++++---- .../rush-package-manager-integration-test/package.json | 6 +++--- .../rush-project-change-analyzer-test/package.json | 4 ++-- .../package.json | 4 ++-- eslint/eslint-bulk/package.json | 4 ++-- eslint/eslint-patch/package.json | 4 ++-- eslint/eslint-plugin-packlets/package.json | 8 ++++---- eslint/eslint-plugin-security/package.json | 8 ++++---- eslint/eslint-plugin/package.json | 8 ++++---- heft-plugins/heft-api-extractor-plugin/package.json | 4 ++-- heft-plugins/heft-dev-cert-plugin/package.json | 4 ++-- .../package.json | 8 ++++---- heft-plugins/heft-jest-plugin/package.json | 4 ++-- heft-plugins/heft-json-schema-typings-plugin/package.json | 4 ++-- heft-plugins/heft-lint-plugin/package.json | 4 ++-- .../heft-localization-typings-plugin/package.json | 4 ++-- heft-plugins/heft-rspack-plugin/package.json | 8 ++++---- .../heft-sass-load-themed-styles-plugin/package.json | 4 ++-- heft-plugins/heft-sass-plugin/package.json | 8 ++++---- heft-plugins/heft-serverless-stack-plugin/package.json | 4 ++-- heft-plugins/heft-storybook-plugin/package.json | 4 ++-- heft-plugins/heft-typescript-plugin/package.json | 8 ++++---- heft-plugins/heft-webpack4-plugin/package.json | 8 ++++---- heft-plugins/heft-webpack5-plugin/package.json | 8 ++++---- libraries/api-extractor-model/package.json | 8 ++++---- libraries/credential-cache/package.json | 8 ++++---- libraries/debug-certificate-manager/package.json | 8 ++++---- libraries/heft-config-file/package.json | 8 ++++---- libraries/load-themed-styles/package.json | 8 ++++---- libraries/localization-utilities/package.json | 8 ++++---- libraries/lookup-by-path/package.json | 8 ++++---- libraries/module-minifier/package.json | 8 ++++---- libraries/node-core-library/package.json | 8 ++++---- libraries/npm-check-fork/package.json | 8 ++++---- libraries/operation-graph/package.json | 8 ++++---- libraries/package-deps-hash/package.json | 8 ++++---- libraries/package-extractor/package.json | 8 ++++---- libraries/problem-matcher/package.json | 8 ++++---- libraries/rig-package/package.json | 8 ++++---- libraries/rush-lib/package.json | 8 ++++---- libraries/rush-pnpm-kit-v10/package.json | 8 ++++---- libraries/rush-pnpm-kit-v8/package.json | 8 ++++---- libraries/rush-pnpm-kit-v9/package.json | 8 ++++---- libraries/rushell/package.json | 8 ++++---- libraries/stream-collator/package.json | 8 ++++---- libraries/terminal/package.json | 8 ++++---- libraries/tree-pattern/package.json | 8 ++++---- libraries/ts-command-line/package.json | 8 ++++---- libraries/typings-generator/package.json | 8 ++++---- libraries/worker-pool/package.json | 8 ++++---- repo-scripts/doc-plugin-rush-stack/package.json | 8 ++++---- repo-scripts/repo-toolbox/package.json | 4 ++-- .../rush-amazon-s3-build-cache-plugin/package.json | 8 ++++---- .../rush-azure-storage-build-cache-plugin/package.json | 8 ++++---- rush-plugins/rush-bridge-cache-plugin/package.json | 8 ++++---- rush-plugins/rush-buildxl-graph-plugin/package.json | 8 ++++---- rush-plugins/rush-http-build-cache-plugin/package.json | 8 ++++---- rush-plugins/rush-litewatch-plugin/package.json | 8 ++++---- rush-plugins/rush-mcp-docs-plugin/package.json | 8 ++++---- rush-plugins/rush-redis-cobuild-plugin/package.json | 8 ++++---- rush-plugins/rush-resolver-cache-plugin/package.json | 8 ++++---- rush-plugins/rush-serve-plugin/package.json | 8 ++++---- webpack/hashed-folder-copy-plugin/package.json | 6 +++--- webpack/loader-load-themed-styles/package.json | 8 ++++---- webpack/loader-raw-script/package.json | 8 ++++---- webpack/preserve-dynamic-require-plugin/package.json | 8 ++++---- webpack/set-webpack-public-path-plugin/package.json | 8 ++++---- webpack/webpack-deep-imports-plugin/package.json | 8 ++++---- webpack/webpack-embedded-dependencies-plugin/package.json | 8 ++++---- webpack/webpack-plugin-utilities/package.json | 8 ++++---- webpack/webpack-workspace-resolve-plugin/package.json | 8 ++++---- webpack/webpack4-localization-plugin/package.json | 8 ++++---- webpack/webpack4-module-minifier-plugin/package.json | 8 ++++---- webpack/webpack5-load-themed-styles-loader/package.json | 8 ++++---- webpack/webpack5-localization-plugin/package.json | 8 ++++---- webpack/webpack5-module-minifier-plugin/package.json | 8 ++++---- 119 files changed, 416 insertions(+), 416 deletions(-) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index fd4250d56a..eb0f545780 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -22,15 +22,15 @@ "types": "./dist/rollup.d.ts", "exports": { ".": { + "types": "./dist/rollup.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rollup.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 004d06fbae..3282d3e263 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -30,15 +30,15 @@ "types": "./dist/rollup.d.ts", "exports": { ".": { + "types": "./dist/rollup.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rollup.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "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 95dab85a67..ceaed40d35 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -28,9 +28,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/heft/package.json b/apps/heft/package.json index 1244d54c43..73dc45725a 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -26,15 +26,15 @@ "types": "./dist/heft.d.ts", "exports": { ".": { + "types": "./dist/heft.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index 0fe3d8ed62..0965d08d17 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -77,9 +77,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 9a40c97888..c26f1c46f3 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -13,14 +13,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/rundown/package.json b/apps/rundown/package.json index 0608b0b329..d980190d38 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -32,9 +32,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 96e589928e..954c6eaa3b 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -14,15 +14,15 @@ "types": "./dist/mcp-server.d.ts", "exports": { ".": { + "types": "./dist/mcp-server.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/mcp-server.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/rush/package.json b/apps/rush/package.json index cb92c15e83..e3189f6247 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -53,9 +53,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index 13dd7601f5..3a20b20c9c 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -34,9 +34,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index d8092b6930..54d1211586 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -33,14 +33,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json b/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json index 01563e9d74..5e3ab523a1 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json +++ b/build-tests-samples/heft-storybook-v6-react-tutorial-storykit/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { - "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { - "require": "./lib-commonjs/*", + "types": "./lib-dts/*", "import": "./lib-esm/*", - "types": "./lib-dts/*" + "require": "./lib-commonjs/*" }, "./package.json": "./package.json" }, diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json b/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json index e3bde66977..96491daca5 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json +++ b/build-tests-samples/heft-storybook-v9-react-tutorial-storykit/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { - "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { - "require": "./lib-commonjs/*", + "types": "./lib-dts/*", "import": "./lib-esm/*", - "types": "./lib-dts/*" + "require": "./lib-commonjs/*" }, "./package.json": "./package.json" }, diff --git a/build-tests-subspace/rush-lib-test/package.json b/build-tests-subspace/rush-lib-test/package.json index c587b67293..13104c9f06 100644 --- a/build-tests-subspace/rush-lib-test/package.json +++ b/build-tests-subspace/rush-lib-test/package.json @@ -35,9 +35,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests-subspace/rush-sdk-test/package.json b/build-tests-subspace/rush-sdk-test/package.json index 1429e91c93..1b1197952c 100644 --- a/build-tests-subspace/rush-sdk-test/package.json +++ b/build-tests-subspace/rush-sdk-test/package.json @@ -35,9 +35,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests-subspace/typescript-newest-test/package.json b/build-tests-subspace/typescript-newest-test/package.json index 237a408daa..42455e7ed1 100644 --- a/build-tests-subspace/typescript-newest-test/package.json +++ b/build-tests-subspace/typescript-newest-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-documenter-scenarios/package.json b/build-tests/api-documenter-scenarios/package.json index deb4c466e8..413243f376 100644 --- a/build-tests/api-documenter-scenarios/package.json +++ b/build-tests/api-documenter-scenarios/package.json @@ -6,9 +6,9 @@ "types": "./dist/internal/some-fake-file.d.ts", "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-documenter-test/package.json b/build-tests/api-documenter-test/package.json index 4f5cad8de5..59890f2be8 100644 --- a/build-tests/api-documenter-test/package.json +++ b/build-tests/api-documenter-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-d-cts-test/package.json b/build-tests/api-extractor-d-cts-test/package.json index e58431d74c..16b197dd28 100644 --- a/build-tests/api-extractor-d-cts-test/package.json +++ b/build-tests/api-extractor-d-cts-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-d-cts-test.d.cts", "exports": { ".": { + "types": "./dist/api-extractor-d-cts-test.d.cts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-d-cts-test.d.cts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-d-mts-test/package.json b/build-tests/api-extractor-d-mts-test/package.json index 5cfda7f1c5..9adb070d91 100644 --- a/build-tests/api-extractor-d-mts-test/package.json +++ b/build-tests/api-extractor-d-mts-test/package.json @@ -7,9 +7,9 @@ "types": "./dist/api-extractor-d-mts-test.d.mts", "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-lib1-test/package.json b/build-tests/api-extractor-lib1-test/package.json index 520139f65e..058fda700b 100644 --- a/build-tests/api-extractor-lib1-test/package.json +++ b/build-tests/api-extractor-lib1-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-lib1-test.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-lib1-test.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-lib1-test.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-lib2-test/package.json b/build-tests/api-extractor-lib2-test/package.json index 2778e1ccc0..1f7dda6b57 100644 --- a/build-tests/api-extractor-lib2-test/package.json +++ b/build-tests/api-extractor-lib2-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-lib2-test.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-lib2-test.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-lib2-test.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-lib3-test/package.json b/build-tests/api-extractor-lib3-test/package.json index b8fbfb1ecc..7bc339f098 100644 --- a/build-tests/api-extractor-lib3-test/package.json +++ b/build-tests/api-extractor-lib3-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-lib3-test.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-lib3-test.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-lib4-test/package.json b/build-tests/api-extractor-lib4-test/package.json index 1f48a38a67..a55fa300d9 100644 --- a/build-tests/api-extractor-lib4-test/package.json +++ b/build-tests/api-extractor-lib4-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-lib3-test.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-lib3-test.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-lib5-test/package.json b/build-tests/api-extractor-lib5-test/package.json index 82049503ce..bf97ee6e50 100644 --- a/build-tests/api-extractor-lib5-test/package.json +++ b/build-tests/api-extractor-lib5-test/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-lib3-test.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-lib3-test.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-lib3-test.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-scenarios/package.json b/build-tests/api-extractor-scenarios/package.json index 7350bcaf1f..a0cd1de646 100644 --- a/build-tests/api-extractor-scenarios/package.json +++ b/build-tests/api-extractor-scenarios/package.json @@ -8,14 +8,14 @@ "types": "./dist/internal/some-fake-file.d.ts", "exports": { ".": { + "types": "./dist/internal/some-fake-file.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/internal/some-fake-file.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-test-01/package.json b/build-tests/api-extractor-test-01/package.json index 7380601a22..ab06a74944 100644 --- a/build-tests/api-extractor-test-01/package.json +++ b/build-tests/api-extractor-test-01/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-test-01.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-test-01.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-test-01.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-test-02/package.json b/build-tests/api-extractor-test-02/package.json index 2c0cae1443..79f1f3683a 100644 --- a/build-tests/api-extractor-test-02/package.json +++ b/build-tests/api-extractor-test-02/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-test-02.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-test-02.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-test-02.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-test-03/package.json b/build-tests/api-extractor-test-03/package.json index 5ecc0c6256..5d5589b7c1 100644 --- a/build-tests/api-extractor-test-03/package.json +++ b/build-tests/api-extractor-test-03/package.json @@ -19,14 +19,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-test-04/package.json b/build-tests/api-extractor-test-04/package.json index 16c6c2907b..130becfe2d 100644 --- a/build-tests/api-extractor-test-04/package.json +++ b/build-tests/api-extractor-test-04/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-test-04.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-test-04.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-test-04.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/api-extractor-test-05/package.json b/build-tests/api-extractor-test-05/package.json index 53068a1dad..430eb5728f 100644 --- a/build-tests/api-extractor-test-05/package.json +++ b/build-tests/api-extractor-test-05/package.json @@ -8,14 +8,14 @@ "types": "./dist/api-extractor-test-05.d.ts", "exports": { ".": { + "types": "./dist/api-extractor-test-05.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/api-extractor-test-05.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/eslint-7-11-test/package.json b/build-tests/eslint-7-11-test/package.json index 310e0fdf23..236aaa2169 100644 --- a/build-tests/eslint-7-11-test/package.json +++ b/build-tests/eslint-7-11-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/eslint-7-7-test/package.json b/build-tests/eslint-7-7-test/package.json index e862947e12..33b4a44737 100644 --- a/build-tests/eslint-7-7-test/package.json +++ b/build-tests/eslint-7-7-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/eslint-7-test/package.json b/build-tests/eslint-7-test/package.json index 857b1d963a..aebf9a26ca 100644 --- a/build-tests/eslint-7-test/package.json +++ b/build-tests/eslint-7-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/eslint-8-test/package.json b/build-tests/eslint-8-test/package.json index c0388d8b92..431233b809 100644 --- a/build-tests/eslint-8-test/package.json +++ b/build-tests/eslint-8-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/eslint-9-test/package.json b/build-tests/eslint-9-test/package.json index 41e81f2e75..22bca4bed5 100644 --- a/build-tests/eslint-9-test/package.json +++ b/build-tests/eslint-9-test/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/heft-json-schema-typings-plugin-test/package.json b/build-tests/heft-json-schema-typings-plugin-test/package.json index a675354790..5b36aa15f1 100644 --- a/build-tests/heft-json-schema-typings-plugin-test/package.json +++ b/build-tests/heft-json-schema-typings-plugin-test/package.json @@ -18,9 +18,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/localization-plugin-test-01/package.json b/build-tests/localization-plugin-test-01/package.json index 4a334ae8a0..0543b91625 100644 --- a/build-tests/localization-plugin-test-01/package.json +++ b/build-tests/localization-plugin-test-01/package.json @@ -24,9 +24,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/localization-plugin-test-02/package.json b/build-tests/localization-plugin-test-02/package.json index c7d764f757..2329ea2816 100644 --- a/build-tests/localization-plugin-test-02/package.json +++ b/build-tests/localization-plugin-test-02/package.json @@ -27,9 +27,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/localization-plugin-test-03/package.json b/build-tests/localization-plugin-test-03/package.json index 9e5b10c8ce..aee6c5bff7 100644 --- a/build-tests/localization-plugin-test-03/package.json +++ b/build-tests/localization-plugin-test-03/package.json @@ -27,9 +27,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/run-scenarios-helpers/package.json b/build-tests/run-scenarios-helpers/package.json index 45a849d6d7..0ecf9ea3ef 100644 --- a/build-tests/run-scenarios-helpers/package.json +++ b/build-tests/run-scenarios-helpers/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json index 5a9f0515e0..8318c77771 100644 --- a/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json +++ b/build-tests/rush-amazon-s3-build-cache-plugin-integration-test/package.json @@ -24,9 +24,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-lib-declaration-paths-test/package.json b/build-tests/rush-lib-declaration-paths-test/package.json index 3839cf994f..d5fe4b307b 100644 --- a/build-tests/rush-lib-declaration-paths-test/package.json +++ b/build-tests/rush-lib-declaration-paths-test/package.json @@ -19,9 +19,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-mcp-example-plugin/package.json b/build-tests/rush-mcp-example-plugin/package.json index deab0f4f43..26b4de3694 100644 --- a/build-tests/rush-mcp-example-plugin/package.json +++ b/build-tests/rush-mcp-example-plugin/package.json @@ -20,14 +20,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-package-manager-integration-test/package.json b/build-tests/rush-package-manager-integration-test/package.json index 3248410786..a812e495c7 100644 --- a/build-tests/rush-package-manager-integration-test/package.json +++ b/build-tests/rush-package-manager-integration-test/package.json @@ -7,7 +7,7 @@ "scripts": { "_phase:build": "heft build --clean", "build": "heft build --clean", - "test": "node lib/runTests.js" + "test": "node lib-commonjs/runTests.js" }, "devDependencies": { "@microsoft/rush": "workspace:*", @@ -19,9 +19,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-project-change-analyzer-test/package.json b/build-tests/rush-project-change-analyzer-test/package.json index ad04a70e30..eed4151ea5 100644 --- a/build-tests/rush-project-change-analyzer-test/package.json +++ b/build-tests/rush-project-change-analyzer-test/package.json @@ -21,9 +21,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/build-tests/rush-redis-cobuild-plugin-integration-test/package.json b/build-tests/rush-redis-cobuild-plugin-integration-test/package.json index df53aa5182..d444fec165 100644 --- a/build-tests/rush-redis-cobuild-plugin-integration-test/package.json +++ b/build-tests/rush-redis-cobuild-plugin-integration-test/package.json @@ -23,9 +23,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 16eea2885f..1b31724457 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -4,9 +4,9 @@ "description": "Roll out new ESLint rules in a large monorepo without cluttering up your code with \"eslint-ignore-next-line\"", "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index 50116d2d09..3b72100ccd 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -22,9 +22,9 @@ "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 b8384b26ef..a37aebc372 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -20,14 +20,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 8f56283520..c03825030e 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -19,14 +19,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index 30bf1c0bb1..19043ef0fb 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -23,14 +23,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 6ee52de120..0e9321d06a 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -32,9 +32,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index cea975e89e..afd7cbc97d 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -29,9 +29,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index bb638d1392..a28ed68154 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -14,15 +14,15 @@ "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", "exports": { ".": { + "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 46f358a526..c1327b5d34 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -55,9 +55,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index dce625e3c5..e64b0ede4d 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -31,9 +31,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 0521264e5c..1d6c0ec757 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -40,9 +40,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index 10868ef706..a8bf297080 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -29,9 +29,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index 0dcb7ea795..d71269bd55 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -13,15 +13,15 @@ "types": "./dist/heft-rspack-plugin.d.ts", "exports": { ".": { + "types": "./dist/heft-rspack-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft-rspack-plugin.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.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 647c024424..2e9bbf1986 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -29,9 +29,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index 4b52432439..d105f8f334 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -20,15 +20,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index 23c7d4ea8f..43e25ae82a 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -29,9 +29,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index 3db5edf90c..db4f9a8c6a 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -33,9 +33,9 @@ "exports": { "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index 628b1d596e..ebe51676da 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -13,15 +13,15 @@ "types": "./dist/heft-typescript-plugin.d.ts", "exports": { ".": { + "types": "./dist/heft-typescript-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft-typescript-plugin.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index a5f1ee12ff..1ff1a1afc4 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index 7d4b6ef85d..cd0ed17dc7 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -13,15 +13,15 @@ "types": "./dist/heft-webpack5-plugin.d.ts", "exports": { ".": { + "types": "./dist/heft-webpack5-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft-webpack5-plugin.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./heft-plugin.json": "./heft-plugin.json", "./package.json": "./package.json" diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index ca98d6935c..dd22a95206 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -13,14 +13,14 @@ "types": "./dist/rollup.d.ts", "exports": { ".": { + "types": "./dist/rollup.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rollup.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index d053c71a48..6bd8700c34 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -7,15 +7,15 @@ "types": "./dist/credential-cache.d.ts", "exports": { ".": { + "types": "./dist/credential-cache.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/credential-cache.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "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 9e1f184ca1..52de5ca21a 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -7,14 +7,14 @@ "types": "./dist/debug-certificate-manager.d.ts", "exports": { ".": { + "types": "./dist/debug-certificate-manager.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/debug-certificate-manager.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 6ba24f4088..6828bd0c25 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -16,14 +16,14 @@ "types": "./dist/heft-config-file.d.ts", "exports": { ".": { + "types": "./dist/heft-config-file.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/heft-config-file.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 d1e7be551c..987780917b 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -19,14 +19,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { - "require": "./lib-commonjs/index.js", + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { - "require": "./lib-commonjs/*", + "types": "./lib-dts/*", "import": "./lib-esm/*", - "types": "./lib-dts/*" + "require": "./lib-commonjs/*" }, "./package.json": "./package.json" }, diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index a8f5e620d3..6a5b44d420 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -7,15 +7,15 @@ "types": "./dist/localization-utilities.d.ts", "exports": { ".": { + "types": "./dist/localization-utilities.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/localization-utilities.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "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 b3ff3f5e93..f1846a838c 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -7,14 +7,14 @@ "types": "./dist/lookup-by-path.d.ts", "exports": { ".": { + "types": "./dist/lookup-by-path.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/lookup-by-path.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index 02d3a16824..96b15da7bc 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -7,14 +7,14 @@ "types": "./dist/module-minifier.d.ts", "exports": { ".": { + "types": "./dist/module-minifier.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/module-minifier.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 dacb580052..9a1de77373 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -7,14 +7,14 @@ "types": "./dist/node-core-library.d.ts", "exports": { ".": { + "types": "./dist/node-core-library.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/node-core-library.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 77f7397c76..39c383d936 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -13,14 +13,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index 97325b3218..10bb6a47c5 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -7,14 +7,14 @@ "types": "./dist/operation-graph.d.ts", "exports": { ".": { + "types": "./dist/operation-graph.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/operation-graph.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 e84762b9d9..ce528114a8 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -7,14 +7,14 @@ "types": "./dist/package-deps-hash.d.ts", "exports": { ".": { + "types": "./dist/package-deps-hash.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/package-deps-hash.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 95db0f6192..8e641415a4 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -7,14 +7,14 @@ "types": "./dist/package-extractor.d.ts", "exports": { ".": { + "types": "./dist/package-extractor.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/package-extractor.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index d7ea60deaf..2984e8b95f 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -7,14 +7,14 @@ "types": "./dist/problem-matcher.d.ts", "exports": { ".": { + "types": "./dist/problem-matcher.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/problem-matcher.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index a8ecc62ba6..28ee41f1e4 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -7,15 +7,15 @@ "types": "./dist/rig-package.d.ts", "exports": { ".": { + "types": "./dist/rig-package.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rig-package.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/rush-lib/package.json b/libraries/rush-lib/package.json index d041101484..f9f162469c 100644 --- a/libraries/rush-lib/package.json +++ b/libraries/rush-lib/package.json @@ -16,13 +16,13 @@ "types": "./dist/rush-lib.d.ts", "exports": { ".": { - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-lib.d.ts" + "types": "./dist/rush-lib.d.ts", + "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "types": "./lib-dts/*.d.ts", + "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 518d157281..e7d58df296 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -8,14 +8,14 @@ "types": "./dist/rush-pnpm-kit-v10.d.ts", "exports": { ".": { + "types": "./dist/rush-pnpm-kit-v10.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-pnpm-kit-v10.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 a86a8ea39d..0477ed4d2a 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -8,14 +8,14 @@ "types": "./dist/rush-pnpm-kit-v8.d.ts", "exports": { ".": { + "types": "./dist/rush-pnpm-kit-v8.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-pnpm-kit-v8.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 1817b38e90..ed35379e2e 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -8,14 +8,14 @@ "types": "./dist/rush-pnpm-kit-v9.d.ts", "exports": { ".": { + "types": "./dist/rush-pnpm-kit-v9.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-pnpm-kit-v9.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/rushell/package.json b/libraries/rushell/package.json index 934f0da643..5702cd7658 100644 --- a/libraries/rushell/package.json +++ b/libraries/rushell/package.json @@ -12,14 +12,14 @@ "types": "./dist/rushell.d.ts", "exports": { ".": { + "types": "./dist/rushell.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rushell.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index e2f816b067..acdecb0076 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -12,14 +12,14 @@ "types": "./dist/stream-collator.d.ts", "exports": { ".": { + "types": "./dist/stream-collator.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/stream-collator.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index ee5dc1d862..d44e2718ef 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -7,14 +7,14 @@ "types": "./dist/terminal.d.ts", "exports": { ".": { + "types": "./dist/terminal.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/terminal.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index defb00c396..95c1326929 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -7,14 +7,14 @@ "types": "./dist/tree-pattern.d.ts", "exports": { ".": { + "types": "./dist/tree-pattern.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/tree-pattern.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 c29d745d07..b510247b43 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -12,14 +12,14 @@ "types": "./dist/ts-command-line.d.ts", "exports": { ".": { + "types": "./dist/ts-command-line.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/ts-command-line.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index 54fa02c8fa..e34b5169e9 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -12,14 +12,14 @@ "types": "./dist/typings-generator.d.ts", "exports": { ".": { + "types": "./dist/typings-generator.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/typings-generator.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index e67ca8a34b..fd65783cf6 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -7,14 +7,14 @@ "types": "./dist/worker-pool.d.ts", "exports": { ".": { + "types": "./dist/worker-pool.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/worker-pool.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/repo-scripts/doc-plugin-rush-stack/package.json b/repo-scripts/doc-plugin-rush-stack/package.json index b9a54a7061..f398bfe0ed 100644 --- a/repo-scripts/doc-plugin-rush-stack/package.json +++ b/repo-scripts/doc-plugin-rush-stack/package.json @@ -8,14 +8,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/repo-scripts/repo-toolbox/package.json b/repo-scripts/repo-toolbox/package.json index 5ef4fec8ed..88bc21ecfb 100644 --- a/repo-scripts/repo-toolbox/package.json +++ b/repo-scripts/repo-toolbox/package.json @@ -23,9 +23,9 @@ }, "exports": { "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 c9b3a1a311..08f0befe73 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.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 9d028347d3..3605afaba4 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 8bdf9747f9..8af3a4e8cc 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -14,15 +14,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 52001f5f20..4a200bce24 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 04e524f301..c6517f241e 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-litewatch-plugin/package.json b/rush-plugins/rush-litewatch-plugin/package.json index 513fcdb999..ede71c66b8 100644 --- a/rush-plugins/rush-litewatch-plugin/package.json +++ b/rush-plugins/rush-litewatch-plugin/package.json @@ -29,14 +29,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index c5d7795efc..eecbb6248f 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -13,14 +13,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 b954152e02..4988c31c33 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -13,15 +13,15 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "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", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 9dd33a13a7..ebcc189388 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -31,14 +31,14 @@ }, "exports": { ".": { + "types": "./dist/rush-resolver-cache-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-resolver-cache-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 0f4680093d..62f6a2175d 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -41,18 +41,18 @@ }, "exports": { ".": { + "types": "./dist/rush-serve-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/rush-serve-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./api": { "types": "./lib-dts/api.types.d.ts" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./rush-plugin-manifest.json": "./rush-plugin-manifest.json", "./package.json": "./package.json" diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index 361e2ae526..ac038f1d49 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -7,17 +7,17 @@ "module": "./lib-esm/index.js", "exports": { ".": { - "import": "./lib-esm/index.js", "types": "./dist/hashed-folder-copy-plugin.d.ts", + "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./ambientTypes": { "types": "./dist/ambientTypes.d.ts" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 92366def75..1ac88fbdcf 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -7,14 +7,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 ca555aa397..4c049f4022 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -7,14 +7,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 16cb2a1308..c67dfc22d6 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 4c56689cad..419b5775c4 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/set-webpack-public-path-plugin.d.ts", "exports": { ".": { + "types": "./dist/set-webpack-public-path-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/set-webpack-public-path-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, diff --git a/webpack/webpack-deep-imports-plugin/package.json b/webpack/webpack-deep-imports-plugin/package.json index bbc0a0d3ec..0e56aafcd7 100644 --- a/webpack/webpack-deep-imports-plugin/package.json +++ b/webpack/webpack-deep-imports-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack-deep-imports-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack-deep-imports-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack-deep-imports-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 dbbcb31402..a85863d939 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack-embedded-dependencies-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 ed0ab371d8..bac22b80ea 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack-plugin-utilities.d.ts", "exports": { ".": { + "types": "./dist/webpack-plugin-utilities.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack-plugin-utilities.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 baa2d7a592..645c8ce555 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack-workspace-resolve-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack-workspace-resolve-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack-workspace-resolve-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 fc027784e4..45d98f628e 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack4-localization-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack4-localization-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack4-localization-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 fb0b6d9294..2aab0450dd 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack4-module-minifier-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack4-module-minifier-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack4-module-minifier-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 2e2ecabe47..0081d4b08f 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -7,14 +7,14 @@ "types": "./lib-dts/index.d.ts", "exports": { ".": { + "types": "./lib-dts/index.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./lib-dts/index.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 46e2e3d852..2156a4784e 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack5-localization-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack5-localization-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack5-localization-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "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 f56eb38d16..ab666641fe 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -7,14 +7,14 @@ "types": "./dist/webpack5-module-minifier-plugin.d.ts", "exports": { ".": { + "types": "./dist/webpack5-module-minifier-plugin.d.ts", "import": "./lib-esm/index.js", - "require": "./lib-commonjs/index.js", - "types": "./dist/webpack5-module-minifier-plugin.d.ts" + "require": "./lib-commonjs/index.js" }, "./lib/*": { + "types": "./lib-dts/*.d.ts", "import": "./lib-esm/*.js", - "require": "./lib-commonjs/*.js", - "types": "./lib-dts/*.d.ts" + "require": "./lib-commonjs/*.js" }, "./package.json": "./package.json" }, From b18ff169c379ba78aff645bb2ef48ab80a40f80a Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 16:33:41 -0800 Subject: [PATCH 34/43] fixup! Rush change. --- .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ .../normalize-build-output_2026-02-17-18-56.json | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 common/changes/@rushstack/eslint-config/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-node-rig/normalize-build-output_2026-02-17-18-56.json create mode 100644 common/changes/@rushstack/heft-vscode-extension-rig/normalize-build-output_2026-02-17-18-56.json diff --git a/common/changes/@rushstack/eslint-config/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/eslint-config/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..eb979d5ff2 --- /dev/null +++ b/common/changes/@rushstack/eslint-config/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Add `sideEffects` field to package.json.", + "type": "patch", + "packageName": "@rushstack/eslint-config" + } + ], + "packageName": "@rushstack/eslint-config", + "email": "iclanton@users.noreply.github.com" +} diff --git a/common/changes/@rushstack/heft-node-rig/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-node-rig/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..3bc1f7490c --- /dev/null +++ b/common/changes/@rushstack/heft-node-rig/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Add `sideEffects` field to package.json.", + "type": "patch", + "packageName": "@rushstack/heft-node-rig" + } + ], + "packageName": "@rushstack/heft-node-rig", + "email": "iclanton@users.noreply.github.com" +} diff --git a/common/changes/@rushstack/heft-vscode-extension-rig/normalize-build-output_2026-02-17-18-56.json b/common/changes/@rushstack/heft-vscode-extension-rig/normalize-build-output_2026-02-17-18-56.json new file mode 100644 index 0000000000..3f5bc04a5e --- /dev/null +++ b/common/changes/@rushstack/heft-vscode-extension-rig/normalize-build-output_2026-02-17-18-56.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "Add `sideEffects` field to package.json.", + "type": "patch", + "packageName": "@rushstack/heft-vscode-extension-rig" + } + ], + "packageName": "@rushstack/heft-vscode-extension-rig", + "email": "iclanton@users.noreply.github.com" +} From 0a9158a42304ceab215c23d714d0abfc1f496c0b Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 17:05:42 -0800 Subject: [PATCH 35/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- .../rush-plugin-manifest.json | 4 ++-- .../rush-plugin-manifest.json | 8 ++++---- .../rush-bridge-cache-plugin/rush-plugin-manifest.json | 4 ++-- .../rush-buildxl-graph-plugin/rush-plugin-manifest.json | 4 ++-- .../rush-plugin-manifest.json | 4 ++-- .../rush-redis-cobuild-plugin/rush-plugin-manifest.json | 4 ++-- .../rush-resolver-cache-plugin/rush-plugin-manifest.json | 2 +- rush-plugins/rush-serve-plugin/rush-plugin-manifest.json | 4 ++-- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/rush-plugin-manifest.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/rush-plugin-manifest.json index 7ee2c76493..bf2fa9de95 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-amazon-s3-build-cache-plugin", "description": "Rush plugin for Amazon S3 cloud build cache", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/amazon-s3-config.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/amazon-s3-config.schema.json" } ] } diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/rush-plugin-manifest.json b/rush-plugins/rush-azure-storage-build-cache-plugin/rush-plugin-manifest.json index 92d33cef83..bfd4ef894a 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/rush-plugin-manifest.json @@ -4,14 +4,14 @@ { "pluginName": "rush-azure-storage-build-cache-plugin", "description": "Rush plugin for Azure storage cloud build cache", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/azure-blob-storage-config.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/azure-blob-storage-config.schema.json" }, { "pluginName": "rush-azure-interactive-auth-plugin", "description": "Rush plugin for interactive authentication to Azure", - "entryPoint": "lib/RushAzureInteractiveAuthPlugin.js", - "optionsSchema": "lib/schemas/azure-interactive-auth.schema.json" + "entryPoint": "./lib-commonjs/RushAzureInteractiveAuthPlugin.js", + "optionsSchema": "./lib-commonjs/schemas/azure-interactive-auth.schema.json" } ] } diff --git a/rush-plugins/rush-bridge-cache-plugin/rush-plugin-manifest.json b/rush-plugins/rush-bridge-cache-plugin/rush-plugin-manifest.json index 481c0fa550..372c204170 100644 --- a/rush-plugins/rush-bridge-cache-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-bridge-cache-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-bridge-cache-plugin", "description": "Rush plugin that provides the ability to directly read or write the build cache from the command line via a custom choice parameter on build commands.", - "entryPoint": "./lib/index.js", - "optionsSchema": "lib/schemas/bridge-cache-config.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/bridge-cache-config.schema.json" } ] } diff --git a/rush-plugins/rush-buildxl-graph-plugin/rush-plugin-manifest.json b/rush-plugins/rush-buildxl-graph-plugin/rush-plugin-manifest.json index a46fec2ce2..eac09fad7a 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-buildxl-graph-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-buildxl-graph-plugin", "description": "Plugin for providing access to Rush build graph.", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/rush-buildxl-graph-plugin.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/rush-buildxl-graph-plugin.schema.json" } ] } diff --git a/rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json b/rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json index 0018d99f4c..08518e643e 100644 --- a/rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-http-build-cache-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-http-build-cache-plugin", "description": "Rush plugin for generic HTTP build cache", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/http-config.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/http-config.schema.json" } ] } diff --git a/rush-plugins/rush-redis-cobuild-plugin/rush-plugin-manifest.json b/rush-plugins/rush-redis-cobuild-plugin/rush-plugin-manifest.json index 64ebf15d96..aedc0ffd0f 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-redis-cobuild-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-redis-cobuild-plugin", "description": "Rush plugin for Redis cobuild lock", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/redis-config.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/redis-config.schema.json" } ] } diff --git a/rush-plugins/rush-resolver-cache-plugin/rush-plugin-manifest.json b/rush-plugins/rush-resolver-cache-plugin/rush-plugin-manifest.json index 8911f04025..916540b96a 100644 --- a/rush-plugins/rush-resolver-cache-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-resolver-cache-plugin/rush-plugin-manifest.json @@ -4,7 +4,7 @@ { "pluginName": "rush-resolver-cache-plugin", "description": "Rush plugin for generating a resolver cache file after successful install.", - "entryPoint": "lib/index.js" + "entryPoint": "./lib-commonjs/index.js" } ] } diff --git a/rush-plugins/rush-serve-plugin/rush-plugin-manifest.json b/rush-plugins/rush-serve-plugin/rush-plugin-manifest.json index d8421eaf3a..f1e04d9cef 100644 --- a/rush-plugins/rush-serve-plugin/rush-plugin-manifest.json +++ b/rush-plugins/rush-serve-plugin/rush-plugin-manifest.json @@ -4,8 +4,8 @@ { "pluginName": "rush-serve-plugin", "description": "Rush plugin for serving built files from localhost", - "entryPoint": "lib/index.js", - "optionsSchema": "lib/schemas/rush-serve-plugin-options.schema.json" + "entryPoint": "./lib-commonjs/index.js", + "optionsSchema": "./lib-commonjs/schemas/rush-serve-plugin-options.schema.json" } ] } From 23beaa609a7b7c9a66a1de795263b6549ac3d06e Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 17:41:50 -0800 Subject: [PATCH 36/43] fixup! Fix compatability with legacy globally-installed versions of Heft. --- apps/heft/config/heft.json | 2 +- apps/heft/src/legacy-compatibility/{start.ts => start.js} | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) rename apps/heft/src/legacy-compatibility/{start.ts => start.js} (96%) diff --git a/apps/heft/config/heft.json b/apps/heft/config/heft.json index debe81e690..76eac0e3d3 100644 --- a/apps/heft/config/heft.json +++ b/apps/heft/config/heft.json @@ -30,7 +30,7 @@ "options": { "copyOperations": [ { - "sourcePath": "lib-commonjs/legacy-compatibility", + "sourcePath": "src/legacy-compatibility", "destinationFolders": ["lib"], "includeGlobs": ["*"] } diff --git a/apps/heft/src/legacy-compatibility/start.ts b/apps/heft/src/legacy-compatibility/start.js similarity index 96% rename from apps/heft/src/legacy-compatibility/start.ts rename to apps/heft/src/legacy-compatibility/start.js index 8cdc33e712..5a4723e7d2 100644 --- a/apps/heft/src/legacy-compatibility/start.ts +++ b/apps/heft/src/legacy-compatibility/start.js @@ -3,4 +3,3 @@ // This file is specifically included for compatibility with older global installations of Heft. require('../lib-commonjs/start.js'); -export {}; From baed318a27ccd581d17a67da888a672723d3d1fb Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 17:43:40 -0800 Subject: [PATCH 37/43] Fix compatability with globally-installed versions of Rush (both legacy and not). --- apps/rush/src/RushCommandSelector.ts | 9 ++++----- apps/rush/src/RushVersionSelector.ts | 15 ++++++++++----- apps/rush/src/start-dev.ts | 2 +- apps/rush/src/start.ts | 3 ++- libraries/rush-lib/config/heft.json | 17 +++++++++++++++++ .../rush-lib/src/legacy-compatibility/index.js | 5 +++++ 6 files changed, 39 insertions(+), 12 deletions(-) create mode 100644 libraries/rush-lib/src/legacy-compatibility/index.js diff --git a/apps/rush/src/RushCommandSelector.ts b/apps/rush/src/RushCommandSelector.ts index 148d07e6d1..3b30557bd9 100644 --- a/apps/rush/src/RushCommandSelector.ts +++ b/apps/rush/src/RushCommandSelector.ts @@ -3,7 +3,7 @@ import * as path from 'node:path'; -import type * as rushLib from '@microsoft/rush-lib'; +import type { ILaunchOptions } from '@microsoft/rush-lib/lib/index'; import { Colorize } from '@rushstack/terminal'; type CommandName = 'rush' | 'rush-pnpm' | 'rushx' | undefined; @@ -27,11 +27,10 @@ export class RushCommandSelector { public static execute( launcherVersion: string, - // eslint-disable-next-line @typescript-eslint/no-explicit-any - selectedRushLib: any, - options: rushLib.ILaunchOptions + selectedRushLib: typeof import('@microsoft/rush-lib'), + options: ILaunchOptions ): void { - const Rush: typeof rushLib.Rush = selectedRushLib.Rush; + const { Rush } = selectedRushLib; if (!Rush) { // This should be impossible unless we somehow loaded an unexpected version diff --git a/apps/rush/src/RushVersionSelector.ts b/apps/rush/src/RushVersionSelector.ts index 1fc8a73b9c..1b87e66e5f 100644 --- a/apps/rush/src/RushVersionSelector.ts +++ b/apps/rush/src/RushVersionSelector.ts @@ -5,7 +5,7 @@ import * as path from 'node:path'; import * as semver from 'semver'; -import { LockFile } from '@rushstack/node-core-library'; +import { LockFile, Import } from '@rushstack/node-core-library'; import { Utilities } from '@microsoft/rush-lib/lib/utilities/Utilities'; import { _FlagFile, _RushGlobalFolder, type ILaunchOptions } from '@microsoft/rush-lib'; @@ -44,7 +44,7 @@ export class RushVersionSelector { console.log(`Trying to acquire lock for ${resourceName}`); - const lock: LockFile = await LockFile.acquire(expectedRushPath, resourceName); + const lock: LockFile = await LockFile.acquireAsync(expectedRushPath, resourceName); installIsValid = await installMarker.isValidAsync(); if (installIsValid) { console.log('Another process performed the installation.'); @@ -85,10 +85,15 @@ export class RushVersionSelector { RushCommandSelector.failIfNotInvokedAsRush(version); require(path.join(expectedRushPath, 'node_modules', '@microsoft', 'rush', 'lib', 'start')); } else { + // Explicitly resolve the entry point for rush-lib, rather than using a simple require, because + // newer versions of rush-lib use the package.json `exports` field, which maps + // `lib/index` to `lib-commonjs/index.js` + const rushLibEntrypoint: string = await Import.resolveModuleAsync({ + modulePath: '@microsoft/rush-lib/lib/index', + baseFolderPath: expectedRushPath + }); + const rushCliEntrypoint: typeof import('@microsoft/rush-lib') = require(rushLibEntrypoint); // For newer rush-lib, RushCommandSelector can test whether "rushx" is supported or not - const rushCliEntrypoint: {} = require( - path.join(expectedRushPath, 'node_modules', '@microsoft', 'rush-lib', 'lib', 'index') - ); RushCommandSelector.execute(this._currentPackageVersion, rushCliEntrypoint, executeOptions); } } diff --git a/apps/rush/src/start-dev.ts b/apps/rush/src/start-dev.ts index 1660da8628..927fae7670 100644 --- a/apps/rush/src/start-dev.ts +++ b/apps/rush/src/start-dev.ts @@ -4,7 +4,7 @@ // This file is used during development to load the built-in plugins and to bypass // some other checks -import * as rushLib from '@microsoft/rush-lib/lib/index'; +import * as rushLib from '@microsoft/rush-lib'; import { PackageJsonLookup, Import } from '@rushstack/node-core-library'; import { RushCommandSelector } from './RushCommandSelector'; diff --git a/apps/rush/src/start.ts b/apps/rush/src/start.ts index 14c0dbad96..bf8d592723 100644 --- a/apps/rush/src/start.ts +++ b/apps/rush/src/start.ts @@ -26,6 +26,7 @@ import * as semver from 'semver'; import { Text, PackageJsonLookup } from '@rushstack/node-core-library'; import { Colorize, ConsoleTerminalProvider, type ITerminalProvider } from '@rushstack/terminal'; import { EnvironmentVariableNames } from '@microsoft/rush-lib'; +import type { ILaunchOptions } from '@microsoft/rush-lib'; import * as rushLib from '@microsoft/rush-lib'; import { RushCommandSelector } from './RushCommandSelector'; @@ -87,7 +88,7 @@ const isManaged: boolean = !!configuration; const terminalProvider: ITerminalProvider = new ConsoleTerminalProvider(); -const launchOptions: rushLib.ILaunchOptions = { isManaged, alreadyReportedNodeTooNewError, terminalProvider }; +const launchOptions: ILaunchOptions = { isManaged, alreadyReportedNodeTooNewError, terminalProvider }; // If we're inside a repo folder, and it's requesting a different version, then use the RushVersionManager to // install it diff --git a/libraries/rush-lib/config/heft.json b/libraries/rush-lib/config/heft.json index 0706e37e4e..d361c6eb55 100644 --- a/libraries/rush-lib/config/heft.json +++ b/libraries/rush-lib/config/heft.json @@ -58,6 +58,23 @@ } }, + "copy-legacy-compatibility-index-js": { + "taskDependencies": ["typescript"], + "taskPlugin": { + "pluginPackage": "@rushstack/heft", + "pluginName": "copy-files-plugin", + "options": { + "copyOperations": [ + { + "sourcePath": "src/legacy-compatibility", + "destinationFolders": ["lib"], + "includeGlobs": ["*"] + } + ] + } + } + }, + "webpack": { "taskDependencies": ["typescript"], "taskPlugin": { diff --git a/libraries/rush-lib/src/legacy-compatibility/index.js b/libraries/rush-lib/src/legacy-compatibility/index.js new file mode 100644 index 0000000000..16cb8ded82 --- /dev/null +++ b/libraries/rush-lib/src/legacy-compatibility/index.js @@ -0,0 +1,5 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. +// See LICENSE in the project root for license information. + +// This file is specifically included for compatibility with older global installations of Rush. +module.exports = require('../lib-commonjs/index.js'); From 61ea6c85e63e308513f9a6e162b7e1e68043b3d0 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 18:18:30 -0800 Subject: [PATCH 38/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- libraries/rush-lib/src/api/RushInternals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/rush-lib/src/api/RushInternals.ts b/libraries/rush-lib/src/api/RushInternals.ts index 6abf2e7122..714a5fd6a6 100644 --- a/libraries/rush-lib/src/api/RushInternals.ts +++ b/libraries/rush-lib/src/api/RushInternals.ts @@ -16,7 +16,7 @@ export class RushInternals { * @returns the module object as would be returned by `require()` */ public static loadModule(srcImportPath: string): unknown { - const libPath: string = `${Rush._rushLibPackageFolder}/lib/${srcImportPath}`; + const libPath: string = `${Rush._rushLibPackageFolder}/lib-commonjs/${srcImportPath}`; try { return require(libPath); } catch (e) { From 8dfe62dcc22dcaa429c75a900a98e1e12a9d3523 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 18:31:42 -0800 Subject: [PATCH 39/43] fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- .github/workflows/ci.yml | 10 +++--- .vscode/launch.json | 8 ++--- apps/rush/.npmignore | 4 +-- .../.vscode/launch.json | 2 +- .../.vscode/launch.json | 2 +- .../vscode-extension-publish.yaml | 6 ++-- libraries/node-core-library/config/heft.json | 34 ------------------- .../src/test/2/test#999999999.lock | 1 - .../node-core-library/src/test/3/test#1.lock | 1 - .../src/test/LockFile.test.ts | 2 +- 10 files changed, 17 insertions(+), 53 deletions(-) delete mode 100644 libraries/node-core-library/config/heft.json delete mode 100644 libraries/node-core-library/src/test/2/test#999999999.lock delete mode 100644 libraries/node-core-library/src/test/3/test#1.lock diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94dc5a2bbc..59f804f05f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,11 +84,11 @@ jobs: working-directory: repo-a/build-tests/rush-package-manager-integration-test - name: Ensure repo README is up-to-date - run: node repo-scripts/repo-toolbox/lib/start.js readme --verify + run: node repo-scripts/repo-toolbox/lib-commonjs/start.js readme --verify working-directory: repo-a - name: Collect JSON schemas - run: node repo-scripts/repo-toolbox/lib/start.js collect-json-schemas --output-path ${GITHUB_WORKSPACE}/artifacts/json-schemas + run: node repo-scripts/repo-toolbox/lib-commonjs/start.js collect-json-schemas --output-path ${GITHUB_WORKSPACE}/artifacts/json-schemas working-directory: repo-a - name: Clone another copy of the repo to test the build cache @@ -104,13 +104,13 @@ jobs: working-directory: repo-b - name: Rush update (rush-lib) - run: node ${{ github.workspace }}/repo-a/apps/rush/lib/start-dev.js update + run: node ${{ github.workspace }}/repo-a/apps/rush/lib-commonjs/start-dev.js update working-directory: repo-b - name: Rush test (rush-lib) - run: node ${{ github.workspace }}/repo-a/apps/rush/lib/start-dev.js test --verbose --production --timeline + run: node ${{ github.workspace }}/repo-a/apps/rush/lib-commonjs/start-dev.js test --verbose --production --timeline working-directory: repo-b - name: Rush test (rush-lib) again to verify build cache hits - run: node ${{ github.workspace }}/repo-a/apps/rush/lib/start-dev.js test --verbose --production --timeline + run: node ${{ github.workspace }}/repo-a/apps/rush/lib-commonjs/start-dev.js test --verbose --production --timeline working-directory: repo-b diff --git a/.vscode/launch.json b/.vscode/launch.json index 08cf41ccf2..fc6a032903 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "name": "Rush Debug", "type": "node", "request": "launch", - "program": "${workspaceRoot}/apps/rush/lib/start-dev.js", + "program": "${workspaceRoot}/apps/rush/lib-commonjs-commonjs/start-dev.js", "stopOnEntry": true, "args": [ "start" @@ -36,7 +36,7 @@ "runtimeArgs": [ "--nolazy", "--inspect-brk", - "${workspaceFolder}/apps/heft/lib/start.js", + "${workspaceFolder}/apps/heft/lib-commonjs/start.js", "--debug", "test", "--test-path-pattern", @@ -56,7 +56,7 @@ "runtimeArgs": [ "--nolazy", "--inspect-brk", - "${workspaceFolder}/apps/heft/lib/start.js", + "${workspaceFolder}/apps/heft/lib-commonjs/start.js", "--debug", "build" ], @@ -74,7 +74,7 @@ "runtimeArgs": [ "--nolazy", "--inspect-brk", - "${workspaceFolder}/apps/heft/lib/start.js", + "${workspaceFolder}/apps/heft/lib-commonjs/start.js", "--debug", "build", "--clean" diff --git a/apps/rush/.npmignore b/apps/rush/.npmignore index 0a36afe312..ae494d9c69 100644 --- a/apps/rush/.npmignore +++ b/apps/rush/.npmignore @@ -30,6 +30,6 @@ # --------------------------------------------------------------------------- # DO NOT MODIFY ABOVE THIS LINE! Add any project-specific overrides below. # --------------------------------------------------------------------------- -/lib/start-dev.* -/lib/start-dev-docs.* +/lib-*/start-dev.* +/lib-*/start-dev-docs.* diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/.vscode/launch.json b/build-tests-samples/heft-storybook-v6-react-tutorial/.vscode/launch.json index 32591233b7..9001826200 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/.vscode/launch.json +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/.vscode/launch.json @@ -8,7 +8,7 @@ "type": "node", "request": "launch", "name": "Debug \"heft start\"", - "program": "${workspaceFolder}/node_modules/@rushstack/heft/lib/start.js", + "program": "${workspaceFolder}/node_modules/@rushstack/heft/lib-commonjs/start.js", "cwd": "${workspaceFolder}", "args": ["--debug", "start", "--storybook"], "console": "integratedTerminal", diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/.vscode/launch.json b/build-tests-samples/heft-storybook-v9-react-tutorial/.vscode/launch.json index 32591233b7..9001826200 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/.vscode/launch.json +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/.vscode/launch.json @@ -8,7 +8,7 @@ "type": "node", "request": "launch", "name": "Debug \"heft start\"", - "program": "${workspaceFolder}/node_modules/@rushstack/heft/lib/start.js", + "program": "${workspaceFolder}/node_modules/@rushstack/heft/lib-commonjs/start.js", "cwd": "${workspaceFolder}", "args": ["--debug", "start", "--storybook"], "console": "integratedTerminal", diff --git a/common/config/azure-pipelines/vscode-extension-publish.yaml b/common/config/azure-pipelines/vscode-extension-publish.yaml index d9dedb8cc2..0c23c46d4e 100644 --- a/common/config/azure-pipelines/vscode-extension-publish.yaml +++ b/common/config/azure-pipelines/vscode-extension-publish.yaml @@ -102,7 +102,7 @@ extends: } ] - - bash: node node_modules/@rushstack/heft/lib/start.js verify-signature --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --manifest-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.manifestPath }} --signature-path ${{ extension.projectRelativeAssetsDir }}/extension.signature.p7s + - bash: node node_modules/@rushstack/heft/lib-commonjs/start.js verify-signature --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --manifest-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.manifestPath }} --signature-path ${{ extension.projectRelativeAssetsDir }}/extension.signature.p7s displayName: 'Verify Signature: ${{ extension.key }}' workingDirectory: ${{ extension.projectPath }} @@ -114,6 +114,6 @@ extends: scriptLocation: 'inlineScript' workingDirectory: ${{ extension.projectPath }} ${{ if parameters.publishUnsigned }}: - inlineScript: node node_modules/@rushstack/heft/lib/start.js publish-vsix --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --publish-unsigned + inlineScript: node node_modules/@rushstack/heft/lib-commonjs/start.js publish-vsix --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --publish-unsigned ${{ else }}: - inlineScript: node node_modules/@rushstack/heft/lib/start.js publish-vsix --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --manifest-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.manifestPath }} --signature-path ${{ extension.projectRelativeAssetsDir }}/extension.signature.p7s + inlineScript: node node_modules/@rushstack/heft/lib-commonjs/start.js publish-vsix --vsix-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.vsixPath }} --manifest-path ${{ extension.projectRelativeAssetsDir }}/${{ extension.manifestPath }} --signature-path ${{ extension.projectRelativeAssetsDir }}/extension.signature.p7s diff --git a/libraries/node-core-library/config/heft.json b/libraries/node-core-library/config/heft.json deleted file mode 100644 index 11169bb125..0000000000 --- a/libraries/node-core-library/config/heft.json +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Defines configuration used by core Heft. - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", - - /** - * Optionally specifies another JSON config file that this file extends from. This provides a way for standard - * settings to be shared across multiple projects. - */ - "extends": "decoupled-local-node-rig/profiles/default/config/heft.json", - - "phasesByName": { - "build": { - "tasksByName": { - "perform-copy": { - "taskPlugin": { - "pluginPackage": "@rushstack/heft", - "pluginName": "copy-files-plugin", - "options": { - "copyOperations": [ - { - "sourcePath": "src", - "destinationFolders": ["lib"], - "fileExtensions": [".lock"] - } - ] - } - } - } - } - } - } -} diff --git a/libraries/node-core-library/src/test/2/test#999999999.lock b/libraries/node-core-library/src/test/2/test#999999999.lock deleted file mode 100644 index da4eb94a08..0000000000 --- a/libraries/node-core-library/src/test/2/test#999999999.lock +++ /dev/null @@ -1 +0,0 @@ -2012-01-02 12:53:12 \ No newline at end of file diff --git a/libraries/node-core-library/src/test/3/test#1.lock b/libraries/node-core-library/src/test/3/test#1.lock deleted file mode 100644 index da4eb94a08..0000000000 --- a/libraries/node-core-library/src/test/3/test#1.lock +++ /dev/null @@ -1 +0,0 @@ -2012-01-02 12:53:12 \ No newline at end of file diff --git a/libraries/node-core-library/src/test/LockFile.test.ts b/libraries/node-core-library/src/test/LockFile.test.ts index ea92779571..9e72fa82c8 100644 --- a/libraries/node-core-library/src/test/LockFile.test.ts +++ b/libraries/node-core-library/src/test/LockFile.test.ts @@ -12,7 +12,7 @@ function setLockFileGetProcessStartTime(fn: (process: number) => string | undefi } // lib/test -const libTestFolder: string = path.resolve(__dirname, '../../lib/test'); +const libTestFolder: string = path.resolve(__dirname, '../../lib-commonjs/test'); describe(LockFile.name, () => { afterEach(() => { From 302550d6b003d54e62602210a6fa0853742cf997 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 21:53:47 -0800 Subject: [PATCH 40/43] Migrate heft-vscode-extension-plugin to local-node-rig and new package layout --- .../config/subspaces/default/pnpm-lock.yaml | 9 ++--- .../heft-vscode-extension-plugin/.npmignore | 36 ++++++++++--------- .../config/rig.json | 2 +- .../eslint.config.js | 17 +++++++-- .../heft-plugin.json | 6 ++-- .../heft-vscode-extension-plugin/package.json | 31 +++++++++++----- .../src/VSCodeExtensionPackagePlugin.ts | 4 ++- .../src/VSCodeExtensionPublishPlugin.ts | 4 ++- .../VSCodeExtensionVerifySignaturePlugin.ts | 4 ++- .../heft-vscode-extension-plugin/src/util.ts | 9 +++-- .../tsconfig.json | 3 +- 11 files changed, 80 insertions(+), 45 deletions(-) diff --git a/common/config/subspaces/default/pnpm-lock.yaml b/common/config/subspaces/default/pnpm-lock.yaml index 46eaa2cddb..283a7f4adc 100644 --- a/common/config/subspaces/default/pnpm-lock.yaml +++ b/common/config/subspaces/default/pnpm-lock.yaml @@ -3531,15 +3531,12 @@ importers: '@rushstack/heft': specifier: workspace:* version: link:../../apps/heft - '@rushstack/heft-node-rig': - specifier: workspace:* - version: link:../../rigs/heft-node-rig - '@types/node': - specifier: 20.17.19 - version: 20.17.19 eslint: specifier: ~9.37.0 version: 9.37.0 + local-node-rig: + specifier: workspace:* + version: link:../../rigs/local-node-rig ../../../heft-plugins/heft-webpack4-plugin: dependencies: diff --git a/heft-plugins/heft-vscode-extension-plugin/.npmignore b/heft-plugins/heft-vscode-extension-plugin/.npmignore index 65edae3d51..bc349f9a4b 100644 --- a/heft-plugins/heft-vscode-extension-plugin/.npmignore +++ b/heft-plugins/heft-vscode-extension-plugin/.npmignore @@ -1,28 +1,32 @@ -# Ignore everything by default -** +# THIS IS A STANDARD TEMPLATE FOR .npmignore FILES IN THIS REPO. -# Use negative patterns to bring back the specific things we want to publish +# Ignore all files by default, to avoid accidentally publishing unintended files. +* + +# Use negative patterns to bring back the specific things we want to publish. !/bin/** !/lib/** +!/lib-*/** !/dist/** + +!CHANGELOG.md +!CHANGELOG.json +!heft-plugin.json +!rush-plugin-manifest.json !ThirdPartyNotice.txt -!/EULA/** -# Ignore certain files in the above folder +# Ignore certain patterns that should not get published. /dist/*.stats.* -/lib/**/test/** -/lib/**/*.js.map -/dist/**/*.js.map +/lib/**/test/ +/lib-*/**/test/ +*.test.js # NOTE: These don't need to be specified, because NPM includes them automatically. # # package.json -# README (and its variants) -# CHANGELOG (and its variants) -# LICENSE / LICENCE +# README.md +# LICENSE -## Project specific definitions -# ----------------------------- - -# (Add your exceptions here) -!heft-plugin.json +# --------------------------------------------------------------------------- +# DO NOT MODIFY ABOVE THIS LINE! Add any project-specific overrides below. +# --------------------------------------------------------------------------- diff --git a/heft-plugins/heft-vscode-extension-plugin/config/rig.json b/heft-plugins/heft-vscode-extension-plugin/config/rig.json index 6ac88a9636..165ffb001f 100644 --- a/heft-plugins/heft-vscode-extension-plugin/config/rig.json +++ b/heft-plugins/heft-vscode-extension-plugin/config/rig.json @@ -3,5 +3,5 @@ // 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": "@rushstack/heft-node-rig" + "rigPackageName": "local-node-rig" } diff --git a/heft-plugins/heft-vscode-extension-plugin/eslint.config.js b/heft-plugins/heft-vscode-extension-plugin/eslint.config.js index 006cb82d1c..c15e607731 100644 --- a/heft-plugins/heft-vscode-extension-plugin/eslint.config.js +++ b/heft-plugins/heft-vscode-extension-plugin/eslint.config.js @@ -1,7 +1,18 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -const nodeTrustedToolProfile = require('@rushstack/heft-node-rig/profiles/default/includes/eslint/flat/profile/node-trusted-tool'); -const friendlyLocalsMixin = require('@rushstack/heft-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals'); +const nodeTrustedToolProfile = require('local-node-rig/profiles/default/includes/eslint/flat/profile/node-trusted-tool'); +const friendlyLocalsMixin = require('local-node-rig/profiles/default/includes/eslint/flat/mixins/friendly-locals'); -module.exports = [...nodeTrustedToolProfile, ...friendlyLocalsMixin]; +module.exports = [ + ...nodeTrustedToolProfile, + ...friendlyLocalsMixin, + { + files: ['**/*.ts', '**/*.tsx'], + languageOptions: { + parserOptions: { + tsconfigRootDir: __dirname + } + } + } +]; diff --git a/heft-plugins/heft-vscode-extension-plugin/heft-plugin.json b/heft-plugins/heft-vscode-extension-plugin/heft-plugin.json index 24bef90531..a4df3eb5b8 100644 --- a/heft-plugins/heft-vscode-extension-plugin/heft-plugin.json +++ b/heft-plugins/heft-vscode-extension-plugin/heft-plugin.json @@ -3,12 +3,12 @@ "taskPlugins": [ { "pluginName": "vscode-extension-package-plugin", - "entryPoint": "./lib/VSCodeExtensionPackagePlugin.js", + "entryPoint": "./lib-commonjs/VSCodeExtensionPackagePlugin.js", "parameterScope": "package" }, { "pluginName": "vscode-extension-verify-signature-plugin", - "entryPoint": "./lib/VSCodeExtensionVerifySignaturePlugin.js", + "entryPoint": "./lib-commonjs/VSCodeExtensionVerifySignaturePlugin.js", "parameterScope": "verify-signature", "parameters": [ { @@ -36,7 +36,7 @@ }, { "pluginName": "vscode-extension-publish-plugin", - "entryPoint": "./lib/VSCodeExtensionPublishPlugin.js", + "entryPoint": "./lib-commonjs/VSCodeExtensionPublishPlugin.js", "parameterScope": "publish-vsix", "parameters": [ { diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index 3e8f31360f..8a662db300 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -15,21 +15,34 @@ "_phase:build": "heft run --only build -- --clean", "_phase:test": "heft run --only test -- --clean" }, - "main": "./lib/index.js", - "types": "./lib/index.d.ts", + "exports": { + "./lib/*": { + "types": "./lib-dts/*.d.ts", + "import": "./lib-esm/*.js", + "require": "./lib-commonjs/*.js" + }, + "./heft-plugin.json": "./heft-plugin.json", + "./package.json": "./package.json" + }, + "typesVersions": { + "*": { + "lib/*": [ + "lib-dts/*" + ] + } + }, "peerDependencies": { "@rushstack/heft": "^1.1.14" }, + "dependencies": { + "@rushstack/node-core-library": "workspace:*", + "@rushstack/terminal": "workspace:*", + "@vscode/vsce": "3.2.1" + }, "devDependencies": { "@rushstack/heft": "workspace:*", - "@rushstack/heft-node-rig": "workspace:*", "eslint": "~9.37.0", - "@types/node": "20.17.19" - }, - "dependencies": { - "@rushstack/node-core-library": "workspace:*", - "@vscode/vsce": "3.2.1", - "@rushstack/terminal": "workspace:*" + "local-node-rig": "workspace:*" }, "sideEffects": false } diff --git a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPackagePlugin.ts b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPackagePlugin.ts index ada8af53bd..3a1dd05eb9 100644 --- a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPackagePlugin.ts +++ b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPackagePlugin.ts @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. +import * as path from 'node:path'; + import type { HeftConfiguration, IHeftTaskPlugin, @@ -8,7 +10,7 @@ import type { IHeftTaskRunHookOptions } from '@rushstack/heft'; import type { IWaitForExitResult } from '@rushstack/node-core-library'; -import * as path from 'node:path'; + import { executeAndWaitAsync, vsceScriptPath } from './util'; interface IVSCodeExtensionPackagePluginOptions { diff --git a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPublishPlugin.ts b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPublishPlugin.ts index 9440e1f53f..3f41f3cf0b 100644 --- a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPublishPlugin.ts +++ b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionPublishPlugin.ts @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. +import * as path from 'node:path'; + import type { HeftConfiguration, IHeftTaskPlugin, @@ -10,7 +12,7 @@ import type { CommandLineFlagParameter } from '@rushstack/heft'; import type { IWaitForExitResult } from '@rushstack/node-core-library'; -import * as path from 'node:path'; + import { executeAndWaitAsync, vsceScriptPath } from './util'; interface IVSCodeExtensionPublishPluginOptions {} diff --git a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionVerifySignaturePlugin.ts b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionVerifySignaturePlugin.ts index fda739f015..1d462e2f64 100644 --- a/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionVerifySignaturePlugin.ts +++ b/heft-plugins/heft-vscode-extension-plugin/src/VSCodeExtensionVerifySignaturePlugin.ts @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. +import * as path from 'node:path'; + import type { HeftConfiguration, IHeftTaskPlugin, @@ -9,7 +11,7 @@ import type { CommandLineStringParameter } from '@rushstack/heft'; import type { IWaitForExitResult } from '@rushstack/node-core-library'; -import * as path from 'node:path'; + import { executeAndWaitAsync, vsceScriptPath } from './util'; interface IVSCodeExtensionVerifySignaturePluginOptions {} diff --git a/heft-plugins/heft-vscode-extension-plugin/src/util.ts b/heft-plugins/heft-vscode-extension-plugin/src/util.ts index 0772a2698a..5c32a56c94 100644 --- a/heft-plugins/heft-vscode-extension-plugin/src/util.ts +++ b/heft-plugins/heft-vscode-extension-plugin/src/util.ts @@ -1,10 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { Executable, IExecutableSpawnOptions, IWaitForExitResult } from '@rushstack/node-core-library'; import type { ChildProcess } from 'node:child_process'; import * as path from 'node:path'; -import { TerminalStreamWritable, TerminalProviderSeverity, ITerminal } from '@rushstack/terminal'; + +import { + Executable, + type IExecutableSpawnOptions, + type IWaitForExitResult +} from '@rushstack/node-core-library'; +import { TerminalStreamWritable, TerminalProviderSeverity, type ITerminal } from '@rushstack/terminal'; export async function executeAndWaitAsync( terminal: ITerminal, diff --git a/heft-plugins/heft-vscode-extension-plugin/tsconfig.json b/heft-plugins/heft-vscode-extension-plugin/tsconfig.json index 7f8cf47e02..dac21d0408 100644 --- a/heft-plugins/heft-vscode-extension-plugin/tsconfig.json +++ b/heft-plugins/heft-vscode-extension-plugin/tsconfig.json @@ -1,4 +1,3 @@ { - "$schema": "http://json.schemastore.org/tsconfig", - "extends": "./node_modules/@rushstack/heft-node-rig/profiles/default/tsconfig-base.json" + "extends": "./node_modules/local-node-rig/profiles/default/tsconfig-base.json" } From ea5ab30fd00583785daac8e1671d9d4257410cd6 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 17 Feb 2026 22:11:16 -0800 Subject: [PATCH 41/43] Fix storybook tutorial webpack configs: lib -> lib-commonjs --- .../heft-storybook-v6-react-tutorial/webpack.config.js | 2 +- .../heft-storybook-v9-react-tutorial/webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/webpack.config.js b/build-tests-samples/heft-storybook-v6-react-tutorial/webpack.config.js index e509592fe1..f74383cf63 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/webpack.config.js +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/webpack.config.js @@ -29,7 +29,7 @@ function createWebpackConfig({ production }) { ] }, entry: { - app: path.join(__dirname, 'lib', 'index.js'), + app: path.join(__dirname, 'lib-commonjs', 'index.js'), // Put these libraries in a separate vendor bundle vendor: ['react', 'react-dom'] diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/webpack.config.js b/build-tests-samples/heft-storybook-v9-react-tutorial/webpack.config.js index 8787574a0b..5c2abec2f3 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/webpack.config.js +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/webpack.config.js @@ -30,7 +30,7 @@ function createWebpackConfig({ production }) { ] }, entry: { - app: path.join(__dirname, 'lib', 'index.js'), + app: path.join(__dirname, 'lib-commonjs', 'index.js'), // Put these libraries in a separate vendor bundle vendor: ['react', 'react-dom'] From 9c08d51536ddd8abb1bafdf3a64e312c4e7153cc Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Wed, 18 Feb 2026 15:26:29 -0800 Subject: [PATCH 42/43] fixup! fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- .vscode/launch.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index fc6a032903..265fd0e412 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,7 +5,7 @@ "name": "Rush Debug", "type": "node", "request": "launch", - "program": "${workspaceRoot}/apps/rush/lib-commonjs-commonjs/start-dev.js", + "program": "${workspaceRoot}/apps/rush/lib-commonjs/start-dev.js", "stopOnEntry": true, "args": [ "start" From 2f393d683d621265ab463ee1624e9b789ad9523f Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Wed, 18 Feb 2026 15:27:34 -0800 Subject: [PATCH 43/43] fixup! fixup! feat: update package.json and api-extractor.json for multiple rush plugins to support ESM and CommonJS modules --- build-tests/run-scenarios-helpers/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-tests/run-scenarios-helpers/src/index.ts b/build-tests/run-scenarios-helpers/src/index.ts index 5c7791d5ee..f788a86850 100644 --- a/build-tests/run-scenarios-helpers/src/index.ts +++ b/build-tests/run-scenarios-helpers/src/index.ts @@ -44,7 +44,7 @@ export async function runScenariosAsync( await Async.forEachAsync( scenarioFolderNames, async (scenarioFolderName) => { - const entryPoint: string = `${buildFolderPath}/lib-dts/${scenarioFolderName}/index.d.ts`; + const entryPoint: string = `${libDtsFolderPath}/${scenarioFolderName}/index.d.ts`; entryPoints.push(entryPoint); const overridesPath: string = `${buildFolderPath}/src/${scenarioFolderName}/config/api-extractor-overrides.json`;