From 48d0e6e12a013f395cf09c3777ae030e0ae0b67f Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Thu, 19 Feb 2026 16:17:28 -0800 Subject: [PATCH 1/4] Revert "fix: remove "import" entries from exports in package.json files (#5650)" This reverts commit 7e14cdab10f20550cf49154d85600a8f4f18c77b. --- apps/api-documenter/package.json | 2 -- apps/api-extractor/package.json | 2 -- apps/cpu-profile-summarizer/package.json | 1 - apps/heft/package.json | 2 -- apps/lockfile-explorer/package.json | 1 - apps/playwright-browser-tunnel/package.json | 2 -- apps/rundown/package.json | 1 - apps/rush-mcp-server/package.json | 2 -- apps/rush/package.json | 1 - apps/trace-import/package.json | 1 - apps/zipsync/package.json | 2 -- .../esm-node-import-test/src/test/start.test.ts | 13 ++++++++++--- eslint/eslint-bulk/package.json | 1 - eslint/eslint-patch/package.json | 5 ----- eslint/eslint-plugin-packlets/package.json | 2 -- eslint/eslint-plugin-security/package.json | 2 -- eslint/eslint-plugin/package.json | 2 -- heft-plugins/heft-api-extractor-plugin/package.json | 1 - heft-plugins/heft-dev-cert-plugin/package.json | 1 - .../package.json | 2 -- heft-plugins/heft-jest-plugin/package.json | 1 - .../heft-json-schema-typings-plugin/package.json | 1 - heft-plugins/heft-lint-plugin/package.json | 1 - .../heft-localization-typings-plugin/package.json | 1 - heft-plugins/heft-rspack-plugin/package.json | 2 -- .../package.json | 1 - heft-plugins/heft-sass-plugin/package.json | 2 -- .../heft-serverless-stack-plugin/package.json | 1 - heft-plugins/heft-storybook-plugin/package.json | 1 - heft-plugins/heft-typescript-plugin/package.json | 2 -- .../heft-vscode-extension-plugin/package.json | 1 - heft-plugins/heft-webpack4-plugin/package.json | 2 -- heft-plugins/heft-webpack5-plugin/package.json | 2 -- libraries/api-extractor-model/package.json | 2 -- libraries/credential-cache/package.json | 2 -- libraries/debug-certificate-manager/package.json | 2 -- libraries/heft-config-file/package.json | 2 -- libraries/load-themed-styles/package.json | 2 -- libraries/localization-utilities/package.json | 2 -- libraries/lookup-by-path/package.json | 2 -- libraries/module-minifier/package.json | 2 -- libraries/node-core-library/package.json | 2 -- libraries/npm-check-fork/package.json | 2 -- libraries/operation-graph/package.json | 2 -- libraries/package-deps-hash/package.json | 2 -- libraries/package-extractor/package.json | 2 -- libraries/problem-matcher/package.json | 2 -- libraries/rig-package/package.json | 2 -- libraries/rush-pnpm-kit-v10/package.json | 2 -- libraries/rush-pnpm-kit-v8/package.json | 2 -- libraries/rush-pnpm-kit-v9/package.json | 2 -- libraries/stream-collator/package.json | 2 -- libraries/terminal/package.json | 2 -- libraries/tree-pattern/package.json | 2 -- libraries/ts-command-line/package.json | 2 -- libraries/typings-generator/package.json | 2 -- libraries/worker-pool/package.json | 2 -- .../rush-amazon-s3-build-cache-plugin/package.json | 2 -- .../package.json | 2 -- rush-plugins/rush-bridge-cache-plugin/package.json | 2 -- rush-plugins/rush-buildxl-graph-plugin/package.json | 2 -- .../rush-http-build-cache-plugin/package.json | 2 -- rush-plugins/rush-mcp-docs-plugin/package.json | 2 -- rush-plugins/rush-redis-cobuild-plugin/package.json | 2 -- .../rush-resolver-cache-plugin/package.json | 2 -- rush-plugins/rush-serve-plugin/package.json | 2 -- rush.json | 12 ++++++------ webpack/hashed-folder-copy-plugin/package.json | 2 -- webpack/loader-load-themed-styles/package.json | 2 -- webpack/loader-raw-script/package.json | 2 -- .../preserve-dynamic-require-plugin/package.json | 2 -- webpack/set-webpack-public-path-plugin/package.json | 2 -- .../package.json | 2 -- webpack/webpack-plugin-utilities/package.json | 2 -- .../webpack-workspace-resolve-plugin/package.json | 2 -- webpack/webpack4-localization-plugin/package.json | 2 -- .../webpack4-module-minifier-plugin/package.json | 2 -- .../webpack5-load-themed-styles-loader/package.json | 2 -- webpack/webpack5-localization-plugin/package.json | 2 -- .../webpack5-module-minifier-plugin/package.json | 2 -- 80 files changed, 16 insertions(+), 152 deletions(-) diff --git a/apps/api-documenter/package.json b/apps/api-documenter/package.json index 938c63b6b6..396e2fa60b 100644 --- a/apps/api-documenter/package.json +++ b/apps/api-documenter/package.json @@ -23,14 +23,12 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/api-extractor/package.json b/apps/api-extractor/package.json index 4eeb35021d..b6a28a5c79 100644 --- a/apps/api-extractor/package.json +++ b/apps/api-extractor/package.json @@ -31,14 +31,12 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/cpu-profile-summarizer/package.json b/apps/cpu-profile-summarizer/package.json index 873fab4d9c..01506524b7 100644 --- a/apps/cpu-profile-summarizer/package.json +++ b/apps/cpu-profile-summarizer/package.json @@ -29,7 +29,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/heft/package.json b/apps/heft/package.json index 8792ac4d8f..7508f5e7e3 100644 --- a/apps/heft/package.json +++ b/apps/heft/package.json @@ -27,14 +27,12 @@ "exports": { ".": { "types": "./dist/heft.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/lockfile-explorer/package.json b/apps/lockfile-explorer/package.json index d2a8a32bb0..08322062c2 100644 --- a/apps/lockfile-explorer/package.json +++ b/apps/lockfile-explorer/package.json @@ -78,7 +78,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/playwright-browser-tunnel/package.json b/apps/playwright-browser-tunnel/package.json index 5b0c33d823..3a3034d6b0 100644 --- a/apps/playwright-browser-tunnel/package.json +++ b/apps/playwright-browser-tunnel/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rundown/package.json b/apps/rundown/package.json index dfe054e65b..4de848d011 100644 --- a/apps/rundown/package.json +++ b/apps/rundown/package.json @@ -33,7 +33,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rush-mcp-server/package.json b/apps/rush-mcp-server/package.json index b11602fb46..f716059f7b 100644 --- a/apps/rush-mcp-server/package.json +++ b/apps/rush-mcp-server/package.json @@ -15,14 +15,12 @@ "exports": { ".": { "types": "./dist/mcp-server.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/rush/package.json b/apps/rush/package.json index 5bc13169d3..92937f7758 100644 --- a/apps/rush/package.json +++ b/apps/rush/package.json @@ -54,7 +54,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/trace-import/package.json b/apps/trace-import/package.json index f62c74673a..ad7f603f48 100644 --- a/apps/trace-import/package.json +++ b/apps/trace-import/package.json @@ -35,7 +35,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/apps/zipsync/package.json b/apps/zipsync/package.json index 785afcffc3..0d168916c8 100644 --- a/apps/zipsync/package.json +++ b/apps/zipsync/package.json @@ -34,13 +34,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/build-tests/esm-node-import-test/src/test/start.test.ts b/build-tests/esm-node-import-test/src/test/start.test.ts index 75792fa12c..6e5ede8ca9 100644 --- a/build-tests/esm-node-import-test/src/test/start.test.ts +++ b/build-tests/esm-node-import-test/src/test/start.test.ts @@ -12,9 +12,16 @@ describe('ESM Node Import Test', () => { throw new Error('Unable to determine build folder path for test script.'); } - const result: ChildProcess = Executable.spawn(process.execPath, [`${buildFolderPath}/lib-esm/start.js`], { - currentWorkingDirectory: buildFolderPath - }); + // Use --no-warnings to suppress MODULE_TYPELESS_PACKAGE_JSON warnings that Node.js 22+ + // emits when loading .js files via the "import" exports condition from a package without + // "type": "module". This warning is expected and doesn't indicate a failure. + const result: ChildProcess = Executable.spawn( + process.execPath, + ['--no-warnings', `${buildFolderPath}/lib-esm/start.js`], + { + currentWorkingDirectory: buildFolderPath + } + ); const { stderr, stdout, exitCode, signal } = await Executable.waitForExitAsync(result, { encoding: 'utf8' diff --git a/eslint/eslint-bulk/package.json b/eslint/eslint-bulk/package.json index 40432e9958..c6b31926cf 100755 --- a/eslint/eslint-bulk/package.json +++ b/eslint/eslint-bulk/package.json @@ -5,7 +5,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-patch/package.json b/eslint/eslint-patch/package.json index c0cbc76909..47954c4770 100644 --- a/eslint/eslint-patch/package.json +++ b/eslint/eslint-patch/package.json @@ -6,28 +6,23 @@ "module": "./lib-esm/usage.js", "exports": { ".": { - "node": "./lib-commonjs/usage.js", "import": "./lib-esm/usage.js", "require": "./lib-commonjs/usage.js" }, "./modern-module-resolution": { - "node": "./lib-commonjs/modern-module-resolution.js", "import": "./lib-esm/modern-module-resolution.js", "require": "./lib-commonjs/modern-module-resolution.js" }, "./custom-config-package-names": { - "node": "./lib-commonjs/custom-config-package-names.js", "import": "./lib-esm/custom-config-package-names.js", "require": "./lib-commonjs/custom-config-package-names.js" }, "./eslint-bulk-suppressions": { - "node": "./lib-commonjs/eslint-bulk-suppressions/index.js", "import": "./lib-esm/eslint-bulk-suppressions/index.js", "require": "./lib-commonjs/eslint-bulk-suppressions/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin-packlets/package.json b/eslint/eslint-plugin-packlets/package.json index 75f5dfefcd..2831fe7782 100644 --- a/eslint/eslint-plugin-packlets/package.json +++ b/eslint/eslint-plugin-packlets/package.json @@ -21,13 +21,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin-security/package.json b/eslint/eslint-plugin-security/package.json index 57ac075afd..68e7771c6c 100644 --- a/eslint/eslint-plugin-security/package.json +++ b/eslint/eslint-plugin-security/package.json @@ -20,13 +20,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/eslint/eslint-plugin/package.json b/eslint/eslint-plugin/package.json index f935c4e45e..c636e06bd4 100644 --- a/eslint/eslint-plugin/package.json +++ b/eslint/eslint-plugin/package.json @@ -24,13 +24,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-api-extractor-plugin/package.json b/heft-plugins/heft-api-extractor-plugin/package.json index 44900c7922..8800921777 100644 --- a/heft-plugins/heft-api-extractor-plugin/package.json +++ b/heft-plugins/heft-api-extractor-plugin/package.json @@ -33,7 +33,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-dev-cert-plugin/package.json b/heft-plugins/heft-dev-cert-plugin/package.json index 0ba10ccf27..c6587f0bf8 100644 --- a/heft-plugins/heft-dev-cert-plugin/package.json +++ b/heft-plugins/heft-dev-cert-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json index 32321230ec..c963035a3f 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/package.json @@ -15,14 +15,12 @@ "exports": { ".": { "types": "./dist/heft-isolated-typescript-transpile-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-jest-plugin/package.json b/heft-plugins/heft-jest-plugin/package.json index 3a1a05c3c5..8768f595fb 100644 --- a/heft-plugins/heft-jest-plugin/package.json +++ b/heft-plugins/heft-jest-plugin/package.json @@ -56,7 +56,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-json-schema-typings-plugin/package.json b/heft-plugins/heft-json-schema-typings-plugin/package.json index 0ea0582db8..d379495ae7 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/package.json +++ b/heft-plugins/heft-json-schema-typings-plugin/package.json @@ -33,7 +33,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-lint-plugin/package.json b/heft-plugins/heft-lint-plugin/package.json index 6cfbec579a..07a18627b9 100644 --- a/heft-plugins/heft-lint-plugin/package.json +++ b/heft-plugins/heft-lint-plugin/package.json @@ -41,7 +41,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-localization-typings-plugin/package.json b/heft-plugins/heft-localization-typings-plugin/package.json index badcaac9de..92798907e0 100644 --- a/heft-plugins/heft-localization-typings-plugin/package.json +++ b/heft-plugins/heft-localization-typings-plugin/package.json @@ -30,7 +30,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-rspack-plugin/package.json b/heft-plugins/heft-rspack-plugin/package.json index df19ee294b..e08a7545d5 100644 --- a/heft-plugins/heft-rspack-plugin/package.json +++ b/heft-plugins/heft-rspack-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./dist/heft-rspack-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json index 8a96accf90..c81e6dd812 100644 --- a/heft-plugins/heft-sass-load-themed-styles-plugin/package.json +++ b/heft-plugins/heft-sass-load-themed-styles-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-sass-plugin/package.json b/heft-plugins/heft-sass-plugin/package.json index d94f33a624..a2837da4d2 100644 --- a/heft-plugins/heft-sass-plugin/package.json +++ b/heft-plugins/heft-sass-plugin/package.json @@ -21,14 +21,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-serverless-stack-plugin/package.json b/heft-plugins/heft-serverless-stack-plugin/package.json index fa414f64f6..2ef2d531e3 100644 --- a/heft-plugins/heft-serverless-stack-plugin/package.json +++ b/heft-plugins/heft-serverless-stack-plugin/package.json @@ -30,7 +30,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-storybook-plugin/package.json b/heft-plugins/heft-storybook-plugin/package.json index 065101d8a4..f52d2a5a7b 100644 --- a/heft-plugins/heft-storybook-plugin/package.json +++ b/heft-plugins/heft-storybook-plugin/package.json @@ -34,7 +34,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-typescript-plugin/package.json b/heft-plugins/heft-typescript-plugin/package.json index e5d875722f..8dcf46fbce 100644 --- a/heft-plugins/heft-typescript-plugin/package.json +++ b/heft-plugins/heft-typescript-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./dist/heft-typescript-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-vscode-extension-plugin/package.json b/heft-plugins/heft-vscode-extension-plugin/package.json index 1422fd43bb..274ba88d63 100644 --- a/heft-plugins/heft-vscode-extension-plugin/package.json +++ b/heft-plugins/heft-vscode-extension-plugin/package.json @@ -18,7 +18,6 @@ "exports": { "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-webpack4-plugin/package.json b/heft-plugins/heft-webpack4-plugin/package.json index 6e8bc59540..ba355852a7 100644 --- a/heft-plugins/heft-webpack4-plugin/package.json +++ b/heft-plugins/heft-webpack4-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/heft-plugins/heft-webpack5-plugin/package.json b/heft-plugins/heft-webpack5-plugin/package.json index c571cb5f45..93c602a384 100644 --- a/heft-plugins/heft-webpack5-plugin/package.json +++ b/heft-plugins/heft-webpack5-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./dist/heft-webpack5-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/api-extractor-model/package.json b/libraries/api-extractor-model/package.json index 616c81e65f..d3b23b8ffa 100644 --- a/libraries/api-extractor-model/package.json +++ b/libraries/api-extractor-model/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./dist/rollup.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/credential-cache/package.json b/libraries/credential-cache/package.json index 1b238653a5..7600fdac6b 100644 --- a/libraries/credential-cache/package.json +++ b/libraries/credential-cache/package.json @@ -8,14 +8,12 @@ "exports": { ".": { "types": "./dist/credential-cache.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/debug-certificate-manager/package.json b/libraries/debug-certificate-manager/package.json index 00ae4f921e..be6de84679 100644 --- a/libraries/debug-certificate-manager/package.json +++ b/libraries/debug-certificate-manager/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/debug-certificate-manager.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/heft-config-file/package.json b/libraries/heft-config-file/package.json index 32f786e6db..f88e519630 100644 --- a/libraries/heft-config-file/package.json +++ b/libraries/heft-config-file/package.json @@ -17,13 +17,11 @@ "exports": { ".": { "types": "./dist/heft-config-file.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/load-themed-styles/package.json b/libraries/load-themed-styles/package.json index ba4b7091ea..140cded8dc 100644 --- a/libraries/load-themed-styles/package.json +++ b/libraries/load-themed-styles/package.json @@ -20,13 +20,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*", - "node": "./lib-commonjs/*", "import": "./lib-esm/*", "require": "./lib-commonjs/*" }, diff --git a/libraries/localization-utilities/package.json b/libraries/localization-utilities/package.json index 87d665d05b..011567b98a 100644 --- a/libraries/localization-utilities/package.json +++ b/libraries/localization-utilities/package.json @@ -8,14 +8,12 @@ "exports": { ".": { "types": "./dist/localization-utilities.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/lookup-by-path/package.json b/libraries/lookup-by-path/package.json index f2f838a639..4ced620b97 100644 --- a/libraries/lookup-by-path/package.json +++ b/libraries/lookup-by-path/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/lookup-by-path.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/module-minifier/package.json b/libraries/module-minifier/package.json index 0203103667..83e1bfe1eb 100644 --- a/libraries/module-minifier/package.json +++ b/libraries/module-minifier/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/module-minifier.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/node-core-library/package.json b/libraries/node-core-library/package.json index 496b02dc02..630164b15f 100644 --- a/libraries/node-core-library/package.json +++ b/libraries/node-core-library/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/node-core-library.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/npm-check-fork/package.json b/libraries/npm-check-fork/package.json index 361be3bd67..cf9beb2331 100644 --- a/libraries/npm-check-fork/package.json +++ b/libraries/npm-check-fork/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/operation-graph/package.json b/libraries/operation-graph/package.json index 09138102f1..18f61952ba 100644 --- a/libraries/operation-graph/package.json +++ b/libraries/operation-graph/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/operation-graph.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/package-deps-hash/package.json b/libraries/package-deps-hash/package.json index 991b382ac4..291d2ace5a 100644 --- a/libraries/package-deps-hash/package.json +++ b/libraries/package-deps-hash/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/package-deps-hash.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/package-extractor/package.json b/libraries/package-extractor/package.json index 65e20fafb1..8c7256ea96 100644 --- a/libraries/package-extractor/package.json +++ b/libraries/package-extractor/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/package-extractor.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/problem-matcher/package.json b/libraries/problem-matcher/package.json index 9a58458c13..253dc17e27 100644 --- a/libraries/problem-matcher/package.json +++ b/libraries/problem-matcher/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/problem-matcher.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rig-package/package.json b/libraries/rig-package/package.json index ded6b12202..b410730787 100644 --- a/libraries/rig-package/package.json +++ b/libraries/rig-package/package.json @@ -8,14 +8,12 @@ "exports": { ".": { "types": "./dist/rig-package.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v10/package.json b/libraries/rush-pnpm-kit-v10/package.json index 2ae2b1060e..015219b047 100644 --- a/libraries/rush-pnpm-kit-v10/package.json +++ b/libraries/rush-pnpm-kit-v10/package.json @@ -9,13 +9,11 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v10.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v8/package.json b/libraries/rush-pnpm-kit-v8/package.json index f708b3507c..cc96df8775 100644 --- a/libraries/rush-pnpm-kit-v8/package.json +++ b/libraries/rush-pnpm-kit-v8/package.json @@ -9,13 +9,11 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v8.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/rush-pnpm-kit-v9/package.json b/libraries/rush-pnpm-kit-v9/package.json index 56fdd57609..6cd980c5ed 100644 --- a/libraries/rush-pnpm-kit-v9/package.json +++ b/libraries/rush-pnpm-kit-v9/package.json @@ -9,13 +9,11 @@ "exports": { ".": { "types": "./dist/rush-pnpm-kit-v9.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/stream-collator/package.json b/libraries/stream-collator/package.json index 8825ff5670..613336a302 100644 --- a/libraries/stream-collator/package.json +++ b/libraries/stream-collator/package.json @@ -13,13 +13,11 @@ "exports": { ".": { "types": "./dist/stream-collator.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/terminal/package.json b/libraries/terminal/package.json index 83a4d64e8a..543307ccd4 100644 --- a/libraries/terminal/package.json +++ b/libraries/terminal/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/terminal.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/tree-pattern/package.json b/libraries/tree-pattern/package.json index c85bb85aba..5012f71658 100644 --- a/libraries/tree-pattern/package.json +++ b/libraries/tree-pattern/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/tree-pattern.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/ts-command-line/package.json b/libraries/ts-command-line/package.json index 9e9edb77ff..5912c0b2b4 100644 --- a/libraries/ts-command-line/package.json +++ b/libraries/ts-command-line/package.json @@ -13,13 +13,11 @@ "exports": { ".": { "types": "./dist/ts-command-line.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/typings-generator/package.json b/libraries/typings-generator/package.json index 5e438eecb6..d67f8273eb 100644 --- a/libraries/typings-generator/package.json +++ b/libraries/typings-generator/package.json @@ -13,13 +13,11 @@ "exports": { ".": { "types": "./dist/typings-generator.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/libraries/worker-pool/package.json b/libraries/worker-pool/package.json index 2ac4b78e56..fe3e812450 100644 --- a/libraries/worker-pool/package.json +++ b/libraries/worker-pool/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/worker-pool.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json index c14a84e371..53195d5176 100644 --- a/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json +++ b/rush-plugins/rush-amazon-s3-build-cache-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json index 8c2ead3a00..e2d16f2522 100644 --- a/rush-plugins/rush-azure-storage-build-cache-plugin/package.json +++ b/rush-plugins/rush-azure-storage-build-cache-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-bridge-cache-plugin/package.json b/rush-plugins/rush-bridge-cache-plugin/package.json index 24019b9e96..71c5c2e1c7 100644 --- a/rush-plugins/rush-bridge-cache-plugin/package.json +++ b/rush-plugins/rush-bridge-cache-plugin/package.json @@ -15,14 +15,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-buildxl-graph-plugin/package.json b/rush-plugins/rush-buildxl-graph-plugin/package.json index 521eafd247..d704c29c0c 100644 --- a/rush-plugins/rush-buildxl-graph-plugin/package.json +++ b/rush-plugins/rush-buildxl-graph-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-http-build-cache-plugin/package.json b/rush-plugins/rush-http-build-cache-plugin/package.json index 2a4a6c6165..b9306b32d3 100644 --- a/rush-plugins/rush-http-build-cache-plugin/package.json +++ b/rush-plugins/rush-http-build-cache-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-mcp-docs-plugin/package.json b/rush-plugins/rush-mcp-docs-plugin/package.json index f4b4346f5b..94b9df967d 100644 --- a/rush-plugins/rush-mcp-docs-plugin/package.json +++ b/rush-plugins/rush-mcp-docs-plugin/package.json @@ -14,13 +14,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-redis-cobuild-plugin/package.json b/rush-plugins/rush-redis-cobuild-plugin/package.json index 38e236b8ca..c7d45f0350 100644 --- a/rush-plugins/rush-redis-cobuild-plugin/package.json +++ b/rush-plugins/rush-redis-cobuild-plugin/package.json @@ -14,14 +14,12 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-resolver-cache-plugin/package.json b/rush-plugins/rush-resolver-cache-plugin/package.json index 2ce2b4d9f9..d8e6699440 100644 --- a/rush-plugins/rush-resolver-cache-plugin/package.json +++ b/rush-plugins/rush-resolver-cache-plugin/package.json @@ -32,13 +32,11 @@ "exports": { ".": { "types": "./dist/rush-resolver-cache-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush-plugins/rush-serve-plugin/package.json b/rush-plugins/rush-serve-plugin/package.json index 6353b83109..1a6676f85a 100644 --- a/rush-plugins/rush-serve-plugin/package.json +++ b/rush-plugins/rush-serve-plugin/package.json @@ -42,7 +42,6 @@ "exports": { ".": { "types": "./dist/rush-serve-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, @@ -52,7 +51,6 @@ "./lib/*.schema.json": "./lib-commonjs/*.schema.json", "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/rush.json b/rush.json index 8d2151e9cc..44f3138aa2 100644 --- a/rush.json +++ b/rush.json @@ -641,12 +641,6 @@ "reviewCategory": "tests", "shouldPublish": false }, - { - "packageName": "esm-node-import-test", - "projectFolder": "build-tests/esm-node-import-test", - "reviewCategory": "tests", - "shouldPublish": false - }, { "packageName": "eslint-bulk-suppressions-test", "projectFolder": "build-tests/eslint-bulk-suppressions-test", @@ -666,6 +660,12 @@ "shouldPublish": false, "cyclicDependencyProjects": ["@rushstack/eslint-config"] }, + { + "packageName": "esm-node-import-test", + "projectFolder": "build-tests/esm-node-import-test", + "reviewCategory": "tests", + "shouldPublish": false + }, { "packageName": "package-extractor-test-01", "projectFolder": "build-tests/package-extractor-test-01", diff --git a/webpack/hashed-folder-copy-plugin/package.json b/webpack/hashed-folder-copy-plugin/package.json index c6c2542938..5fb87e4f4a 100644 --- a/webpack/hashed-folder-copy-plugin/package.json +++ b/webpack/hashed-folder-copy-plugin/package.json @@ -8,7 +8,6 @@ "exports": { ".": { "types": "./dist/hashed-folder-copy-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, @@ -17,7 +16,6 @@ }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/loader-load-themed-styles/package.json b/webpack/loader-load-themed-styles/package.json index 9bdb5562cb..e8a4a4e725 100644 --- a/webpack/loader-load-themed-styles/package.json +++ b/webpack/loader-load-themed-styles/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/loader-raw-script/package.json b/webpack/loader-raw-script/package.json index f8beb3714e..a9f5cbfbe4 100644 --- a/webpack/loader-raw-script/package.json +++ b/webpack/loader-raw-script/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/preserve-dynamic-require-plugin/package.json b/webpack/preserve-dynamic-require-plugin/package.json index de7d3f7f90..a36b9c16d6 100644 --- a/webpack/preserve-dynamic-require-plugin/package.json +++ b/webpack/preserve-dynamic-require-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack-preserve-dynamic-require-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/set-webpack-public-path-plugin/package.json b/webpack/set-webpack-public-path-plugin/package.json index 72e899e996..acc1863114 100644 --- a/webpack/set-webpack-public-path-plugin/package.json +++ b/webpack/set-webpack-public-path-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/set-webpack-public-path-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-embedded-dependencies-plugin/package.json b/webpack/webpack-embedded-dependencies-plugin/package.json index dc09ad0061..f05d887fa2 100644 --- a/webpack/webpack-embedded-dependencies-plugin/package.json +++ b/webpack/webpack-embedded-dependencies-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack-embedded-dependencies-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-plugin-utilities/package.json b/webpack/webpack-plugin-utilities/package.json index 0991d00dc8..4cdc3b921b 100644 --- a/webpack/webpack-plugin-utilities/package.json +++ b/webpack/webpack-plugin-utilities/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack-plugin-utilities.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack-workspace-resolve-plugin/package.json b/webpack/webpack-workspace-resolve-plugin/package.json index 2b7ba70703..95513a5d85 100644 --- a/webpack/webpack-workspace-resolve-plugin/package.json +++ b/webpack/webpack-workspace-resolve-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack-workspace-resolve-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack4-localization-plugin/package.json b/webpack/webpack4-localization-plugin/package.json index 4ce3286105..c9432fff8d 100644 --- a/webpack/webpack4-localization-plugin/package.json +++ b/webpack/webpack4-localization-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack4-localization-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack4-module-minifier-plugin/package.json b/webpack/webpack4-module-minifier-plugin/package.json index cbfa6f6d5b..21520274a5 100644 --- a/webpack/webpack4-module-minifier-plugin/package.json +++ b/webpack/webpack4-module-minifier-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack4-module-minifier-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-load-themed-styles-loader/package.json b/webpack/webpack5-load-themed-styles-loader/package.json index 1e16b486cb..c0d386a28d 100644 --- a/webpack/webpack5-load-themed-styles-loader/package.json +++ b/webpack/webpack5-load-themed-styles-loader/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./lib-dts/index.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-localization-plugin/package.json b/webpack/webpack5-localization-plugin/package.json index 72d24d5540..5eefcd08c6 100644 --- a/webpack/webpack5-localization-plugin/package.json +++ b/webpack/webpack5-localization-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack5-localization-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, diff --git a/webpack/webpack5-module-minifier-plugin/package.json b/webpack/webpack5-module-minifier-plugin/package.json index a262dd87d5..ca162134d0 100644 --- a/webpack/webpack5-module-minifier-plugin/package.json +++ b/webpack/webpack5-module-minifier-plugin/package.json @@ -8,13 +8,11 @@ "exports": { ".": { "types": "./dist/webpack5-module-minifier-plugin.d.ts", - "node": "./lib-commonjs/index.js", "import": "./lib-esm/index.js", "require": "./lib-commonjs/index.js" }, "./lib/*": { "types": "./lib-dts/*.d.ts", - "node": "./lib-commonjs/*.js", "import": "./lib-esm/*.js", "require": "./lib-commonjs/*.js" }, From 2281b23429b857d05761edfe38bb4253a04a3f2a Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Fri, 20 Feb 2026 15:08:18 -0800 Subject: [PATCH 2/4] chore: enable rewriteRelativeImportExtensions in local rigs and enforce import/extensions ESLint rule --- .../profiles/default/includes/eslint/flat/profile/_common.js | 5 +++++ .../profiles/default/tsconfig-base.json | 1 + rigs/local-node-rig/profiles/default/tsconfig-base.json | 1 + 3 files changed, 7 insertions(+) diff --git a/rigs/decoupled-local-node-rig/profiles/default/includes/eslint/flat/profile/_common.js b/rigs/decoupled-local-node-rig/profiles/default/includes/eslint/flat/profile/_common.js index 5b84938c9a..5c96ef20da 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/includes/eslint/flat/profile/_common.js +++ b/rigs/decoupled-local-node-rig/profiles/default/includes/eslint/flat/profile/_common.js @@ -63,6 +63,11 @@ module.exports = { // module that is not available once the package is published. 'import/no-extraneous-dependencies': ['error', { devDependencies: true, peerDependencies: true }], + // Rationale: Relative imports must include the .ts/.tsx file extension so that + // TypeScript's rewriteRelativeImportExtensions can produce correct .js extensions + // in the compiled output. This is required for proper ESM resolution in Node.js. + 'import/extensions': ['error', 'ignorePackages'], + // Rationale: Use of `== null` comparisons is common-place eqeqeq: ['error', 'always', { null: 'ignore' }], 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 a70f860525..0210c62e7f 100644 --- a/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json +++ b/rigs/decoupled-local-node-rig/profiles/default/tsconfig-base.json @@ -7,6 +7,7 @@ "resolveJsonModule": true, "isolatedModules": true, "target": "es2018", + "rewriteRelativeImportExtensions": true, "outDir": "${configDir}/lib-commonjs", "declarationDir": "${configDir}/lib-dts", diff --git a/rigs/local-node-rig/profiles/default/tsconfig-base.json b/rigs/local-node-rig/profiles/default/tsconfig-base.json index a70f860525..0210c62e7f 100644 --- a/rigs/local-node-rig/profiles/default/tsconfig-base.json +++ b/rigs/local-node-rig/profiles/default/tsconfig-base.json @@ -7,6 +7,7 @@ "resolveJsonModule": true, "isolatedModules": true, "target": "es2018", + "rewriteRelativeImportExtensions": true, "outDir": "${configDir}/lib-commonjs", "declarationDir": "${configDir}/lib-dts", From 70ee0c28e2336a167bd008fe1429a4da8d3914f8 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Fri, 20 Feb 2026 16:07:59 -0800 Subject: [PATCH 3/4] feat: add .ts extensions to all relative imports for rewriteRelativeImportExtensions Migrates all relative import/export specifiers across the repo to include explicit .ts/.tsx file extensions. This enables TypeScript's rewriteRelativeImportExtensions compiler option to produce correct .js extensions in compiled output, fixing ESM resolution under Node.js. Also includes: - heft-typescript-plugin: inject rewriteRelativeImportExtensions and allowImportingTsExtensions in tsconfigLoader; enhance wrapWriteFile to rewrite .js specifiers when jsExtensionOverride is set; remove the old addJsExtensionToImports approach - ESLint import/extensions rule added to local-eslint-config - ESLint rule disabled for ts-loader and composite-test projects - require() calls use .js extensions (not rewritten by TS) - esm-node-import-test: new build-test validating ESM imports work - rush.json: register esm-node-import-test project Fixes https://github.com/microsoft/rushstack/issues/5644 --- .../src/cli/ApiDocumenterCommandLine.ts | 6 +- apps/api-documenter/src/cli/GenerateAction.ts | 10 +- apps/api-documenter/src/cli/MarkdownAction.ts | 6 +- apps/api-documenter/src/cli/YamlAction.ts | 8 +- .../src/documenters/DocumenterConfig.ts | 2 +- .../documenters/ExperimentalYamlDocumenter.ts | 8 +- .../src/documenters/IConfigFile.ts | 2 +- .../src/documenters/MarkdownDocumenter.ts | 26 ++-- .../src/documenters/OfficeYamlDocumenter.ts | 6 +- .../src/documenters/YamlDocumenter.ts | 10 +- apps/api-documenter/src/index.ts | 11 +- .../src/markdown/CustomMarkdownEmitter.ts | 16 +-- .../src/markdown/MarkdownEmitter.ts | 2 +- .../test/CustomMarkdownEmitter.test.ts | 14 +-- .../src/nodes/CustomDocNodeKind.ts | 12 +- .../src/nodes/DocEmphasisSpan.ts | 2 +- apps/api-documenter/src/nodes/DocHeading.ts | 2 +- apps/api-documenter/src/nodes/DocNoteBox.ts | 2 +- apps/api-documenter/src/nodes/DocTable.ts | 6 +- apps/api-documenter/src/nodes/DocTableCell.ts | 2 +- apps/api-documenter/src/nodes/DocTableRow.ts | 4 +- .../plugin/IApiDocumenterPluginManifest.ts | 4 +- .../src/plugin/MarkdownDocumenterFeature.ts | 4 +- .../api-documenter/src/plugin/PluginLoader.ts | 8 +- apps/api-documenter/src/start.ts | 2 +- .../src/utils/ToSdpConvertHelper.ts | 4 +- .../src/utils/test/IndentedWriter.test.ts | 2 +- .../src/aedoc/PackageDocComment.ts | 4 +- .../src/analyzer/AstDeclaration.ts | 6 +- apps/api-extractor/src/analyzer/AstImport.ts | 4 +- apps/api-extractor/src/analyzer/AstModule.ts | 4 +- .../src/analyzer/AstNamespaceExport.ts | 2 +- .../src/analyzer/AstNamespaceImport.ts | 6 +- .../src/analyzer/AstReferenceResolver.ts | 16 +-- apps/api-extractor/src/analyzer/AstSymbol.ts | 4 +- .../src/analyzer/AstSymbolTable.ts | 24 ++-- .../src/analyzer/ExportAnalyzer.ts | 22 ++-- .../src/analyzer/PackageMetadataManager.ts | 6 +- apps/api-extractor/src/analyzer/Span.ts | 2 +- .../src/analyzer/TypeScriptHelpers.ts | 4 +- .../test/PackageMetadataManager.test.ts | 2 +- .../src/analyzer/test/SyntaxHelpers.test.ts | 2 +- apps/api-extractor/src/api/CompilerState.ts | 4 +- apps/api-extractor/src/api/Extractor.ts | 26 ++-- apps/api-extractor/src/api/ExtractorConfig.ts | 8 +- .../api-extractor/src/api/ExtractorMessage.ts | 8 +- apps/api-extractor/src/api/IConfigFile.ts | 2 +- .../api/test/Extractor-custom-tags.test.ts | 2 +- .../api/test/ExtractorConfig-lookup.test.ts | 2 +- .../api/test/ExtractorConfig-merge.test.ts | 2 +- .../test/ExtractorConfig-tagsToReport.test.ts | 2 +- .../src/cli/ApiExtractorCommandLine.ts | 4 +- apps/api-extractor/src/cli/InitAction.ts | 4 +- apps/api-extractor/src/cli/RunAction.ts | 6 +- .../src/collector/ApiItemMetadata.ts | 2 +- apps/api-extractor/src/collector/Collector.ts | 40 +++--- .../src/collector/CollectorEntity.ts | 8 +- .../src/collector/DeclarationMetadata.ts | 2 +- .../src/collector/MessageRouter.ts | 16 +-- .../src/enhancers/DocCommentEnhancer.ts | 14 +-- .../src/enhancers/ValidationEnhancer.ts | 20 +-- .../src/generators/ApiModelGenerator.ts | 28 ++--- .../src/generators/ApiReportGenerator.ts | 36 +++--- .../DeclarationReferenceGenerator.ts | 10 +- .../src/generators/DtsEmitHelpers.ts | 16 +-- .../src/generators/DtsRollupGenerator.ts | 32 ++--- .../src/generators/ExcerptBuilder.ts | 6 +- .../generators/test/IndentedWriter.test.ts | 2 +- apps/api-extractor/src/index.ts | 18 +-- apps/api-extractor/src/start.ts | 4 +- apps/cpu-profile-summarizer/src/protocol.ts | 2 +- apps/cpu-profile-summarizer/src/start.ts | 4 +- apps/cpu-profile-summarizer/src/worker.ts | 4 +- apps/heft/src/cli/HeftActionRunner.ts | 28 ++--- apps/heft/src/cli/HeftCommandLineParser.ts | 22 ++-- apps/heft/src/cli/actions/CleanAction.ts | 20 +-- apps/heft/src/cli/actions/IHeftAction.ts | 10 +- apps/heft/src/cli/actions/PhaseAction.ts | 8 +- apps/heft/src/cli/actions/RunAction.ts | 12 +- .../src/configuration/HeftConfiguration.ts | 4 +- .../configuration/HeftPluginConfiguration.ts | 4 +- .../src/configuration/HeftPluginDefinition.ts | 8 +- apps/heft/src/index.ts | 41 ++++--- .../runners/PhaseOperationRunner.ts | 8 +- .../operations/runners/TaskOperationRunner.ts | 16 +-- .../heft/src/pluginFramework/HeftLifecycle.ts | 16 +-- .../pluginFramework/HeftLifecycleSession.ts | 16 +-- .../pluginFramework/HeftParameterManager.ts | 2 +- apps/heft/src/pluginFramework/HeftPhase.ts | 8 +- .../src/pluginFramework/HeftPhaseSession.ts | 16 +-- .../src/pluginFramework/HeftPluginHost.ts | 4 +- apps/heft/src/pluginFramework/HeftTask.ts | 12 +- .../src/pluginFramework/HeftTaskSession.ts | 20 +-- apps/heft/src/pluginFramework/IHeftPlugin.ts | 6 +- .../pluginFramework/InternalHeftSession.ts | 24 ++-- .../pluginFramework/logging/LoggingManager.ts | 2 +- .../logging/MockScopedLogger.ts | 2 +- .../pluginFramework/logging/ScopedLogger.ts | 2 +- .../tests/IncrementalBuildInfo.test.ts | 2 +- apps/heft/src/plugins/CopyFilesPlugin.ts | 14 +-- apps/heft/src/plugins/DeleteFilesPlugin.ts | 10 +- apps/heft/src/plugins/FileGlobSpecifier.ts | 2 +- apps/heft/src/plugins/NodeServicePlugin.ts | 10 +- apps/heft/src/plugins/RunScriptPlugin.ts | 6 +- .../plugins/SetEnvironmentVariablesPlugin.ts | 6 +- apps/heft/src/start.ts | 2 +- apps/heft/src/startWithVersionSelector.ts | 4 +- apps/heft/src/utilities/CoreConfigFiles.ts | 6 +- .../src/utilities/test/GitUtilities.test.ts | 2 +- apps/lockfile-explorer-web/src/App.tsx | 20 +-- .../src/components/ConnectionModal/index.tsx | 4 +- .../src/containers/BookmarksSidebar/index.tsx | 4 +- .../LockfileEntryDetailsView/index.tsx | 21 ++-- .../src/containers/LockfileViewer/index.tsx | 11 +- .../containers/PackageJsonViewer/index.tsx | 21 ++-- .../containers/SelectedEntryPreview/index.tsx | 4 +- .../src/helpers/displaySpecChanges.ts | 2 +- .../src/helpers/isEntryModified.ts | 2 +- .../src/helpers/lfxApiClient.ts | 2 +- .../src/helpers/localStorage.ts | 3 +- .../src/packlets/lfx-shared/IJsonLfxGraph.ts | 2 +- .../src/packlets/lfx-shared/LfxGraph.ts | 4 +- .../src/packlets/lfx-shared/index.ts | 10 +- .../packlets/lfx-shared/lfxGraphSerializer.ts | 4 +- .../src/parsing/compareSpec.ts | 2 +- .../src/parsing/readLockfile.ts | 3 +- .../src/parsing/test/compareSpec.test.ts | 4 +- apps/lockfile-explorer-web/src/start.tsx | 4 +- apps/lockfile-explorer-web/src/store/hooks.ts | 2 +- apps/lockfile-explorer-web/src/store/index.ts | 4 +- .../src/store/slices/entrySlice.ts | 7 +- .../src/store/slices/workspaceSlice.ts | 2 +- .../cli/explorer/ExplorerCommandLineParser.ts | 12 +- .../src/cli/lint/LintCommandLineParser.ts | 4 +- .../src/cli/lint/actions/CheckAction.ts | 6 +- .../src/cli/lint/actions/InitAction.ts | 4 +- .../src/graph/PnpmfileRunner.ts | 2 +- .../src/graph/lfxGraphLoader.ts | 4 +- .../src/graph/pnpmfileRunnerWorkerThread.ts | 2 +- .../src/graph/test/PnpmfileRunner.test.ts | 2 +- .../src/graph/test/graphTestHelpers.ts | 4 +- .../test/lfxGraph-edge-cases-v5.4.test.ts | 2 +- .../test/lfxGraph-edge-cases-v6.0.test.ts | 2 +- .../test/lfxGraph-edge-cases-v9.0.test.ts | 2 +- .../lfxGraph-website-sample-1-v5.4.test.ts | 2 +- .../lfxGraph-website-sample-1-v6.0.test.ts | 2 +- .../lfxGraph-website-sample-1-v9.0.test.ts | 2 +- .../src/graph/test/lockfile.test.ts | 4 +- .../src/graph/test/lockfilePath.test.ts | 2 +- .../src/graph/test/serializeToJson.test.ts | 6 +- apps/lockfile-explorer/src/start-explorer.ts | 2 +- apps/lockfile-explorer/src/start-lint.ts | 2 +- apps/lockfile-explorer/src/utils/init.ts | 4 +- .../src/PlaywrightBrowserTunnel.ts | 4 +- apps/playwright-browser-tunnel/src/index.ts | 14 +-- .../ITunneledBrowserConnection.ts | 2 +- .../TunneledBrowser.ts | 10 +- .../TunneledBrowserConnection.ts | 10 +- .../src/tunneledBrowserConnection/index.ts | 8 +- .../tests/demo.spec.ts | 2 +- .../tests/testFixture.ts | 2 +- apps/rundown/src/Rundown.ts | 2 +- apps/rundown/src/cli/InspectAction.ts | 4 +- apps/rundown/src/cli/RundownCommandLine.ts | 4 +- apps/rundown/src/cli/SnapshotAction.ts | 4 +- apps/rundown/src/launcher.ts | 4 +- apps/rundown/src/start.ts | 2 +- apps/rush-mcp-server/src/index.ts | 8 +- .../src/pluginFramework/IRushMcpPlugin.ts | 2 +- .../src/pluginFramework/IRushMcpTool.ts | 2 +- .../pluginFramework/RushMcpPluginLoader.ts | 4 +- .../pluginFramework/RushMcpPluginSession.ts | 4 +- apps/rush-mcp-server/src/server.ts | 4 +- apps/rush-mcp-server/src/start.ts | 6 +- .../src/tools/conflict-resolver.tool.ts | 4 +- apps/rush-mcp-server/src/tools/index.ts | 2 +- .../src/tools/migrate-project.tool.ts | 2 +- .../src/tools/project-details.tool.ts | 2 +- .../src/tools/rush-command-validator.tool.ts | 2 +- .../src/tools/workspace-details.ts | 2 +- apps/rush/src/RushVersionSelector.ts | 4 +- apps/rush/src/start-dev.ts | 2 +- apps/rush/src/start.ts | 6 +- .../src/test/MinimalRushConfiguration.test.ts | 2 +- .../src/TraceImportCommandLineParser.ts | 2 +- apps/trace-import/src/start.ts | 2 +- .../src/cli/ZipSyncCommandLineParser.ts | 4 +- apps/zipsync/src/index.ts | 4 +- apps/zipsync/src/pack.ts | 14 +-- apps/zipsync/src/packWorker.ts | 6 +- apps/zipsync/src/packWorkerAsync.ts | 4 +- apps/zipsync/src/start.ts | 2 +- apps/zipsync/src/test/benchmark.test.ts | 6 +- apps/zipsync/src/test/crc32.test.ts | 2 +- apps/zipsync/src/test/index.test.ts | 8 +- apps/zipsync/src/test/testUtils.ts | 2 +- apps/zipsync/src/test/workerAsync.test.ts | 6 +- apps/zipsync/src/unpack.ts | 12 +- apps/zipsync/src/unpackWorker.ts | 6 +- apps/zipsync/src/unpackWorkerAsync.ts | 4 +- .../src/guide/01-automatic-mock.test.ts | 4 +- .../SoundPlayerConsumer.test.ts | 8 +- .../02-manual-mock/SoundPlayerConsumer.ts | 2 +- .../guide/03-factory-constructor-mock.test.ts | 4 +- .../src/guide/SoundPlayerConsumer.ts | 2 +- .../src/stacks/index.ts | 2 +- .../src/test/MyStack.test.ts | 2 +- .../src/ExampleApp.tsx | 2 +- .../src/ToggleSwitch.stories.tsx | 2 +- .../src/index.tsx | 2 +- .../src/test/ToggleSwitch.test.ts | 2 +- .../src/ExampleApp.tsx | 2 +- .../src/ToggleSwitch.stories.tsx | 2 +- .../src/index.tsx | 2 +- .../src/test/ToggleSwitch.test.ts | 2 +- .../heft-web-rig-app-tutorial/src/start.tsx | 2 +- .../src/index.ts | 2 +- .../src/test/ToggleSwitch.test.ts | 2 +- .../src/ExampleApp.tsx | 2 +- .../heft-webpack-basic-tutorial/src/index.tsx | 2 +- .../src/test/ToggleSwitch.test.ts | 2 +- .../src/packlets/data-model/ExampleModel.ts | 2 +- .../src/packlets/data-model/index.ts | 4 +- .../src/packlets/logging/Logger.ts | 2 +- .../src/packlets/logging/index.ts | 4 +- .../src/packlets/reports/index.ts | 2 +- .../packlets-tutorial/src/start.ts | 2 +- build-tests/api-documenter-test/src/index.ts | 10 +- .../api-extractor-scenarios.api.json | 2 +- .../api-extractor-scenarios.api.json | 4 +- .../src/ambientNameConflict/index.ts | 2 +- .../src/ambientNameConflict2/index.ts | 4 +- .../src/apiItemKinds/index.ts | 14 +-- .../src/bundlerModuleResolution/index.ts | 2 +- .../src/circularImport/IFile.ts | 2 +- .../src/circularImport/IFolder.ts | 2 +- .../src/circularImport/index.ts | 4 +- .../src/circularImport2/IFile.ts | 4 +- .../src/circularImport2/IFolder.ts | 4 +- .../src/circularImport2/index.ts | 4 +- .../src/docReferencesAlias/Item.ts | 2 +- .../src/docReferencesAlias/index.ts | 4 +- .../src/docReferencesNamespaceAlias/Item.ts | 2 +- .../src/docReferencesNamespaceAlias/index.ts | 4 +- .../renamed/Options.ts | 2 +- .../renamed/index.ts | 4 +- .../renamed/sub/index.ts | 2 +- .../src/dynamicImportType/Item.ts | 4 +- .../src/dynamicImportType/index.ts | 2 +- .../src/exportImportStarAs/calculator.ts | 2 +- .../src/exportImportStarAs/calculator2.ts | 2 +- .../src/exportImportStarAs/index.ts | 4 +- .../src/exportImportStarAs2/index.ts | 2 +- .../src/exportImportStarAs2/ns.ts | 2 +- .../src/exportImportStarAs3/index.ts | 2 +- .../exportImportedExternalDefault/index.ts | 2 +- .../src/exportStar/index.ts | 4 +- .../src/exportStar/reexportStar.ts | 2 +- .../src/exportStar2/index.ts | 2 +- .../src/exportStar3/index.ts | 2 +- .../src/exportStarAs/calculator.ts | 2 +- .../src/exportStarAs/calculator2.ts | 2 +- .../src/exportStarAs/index.ts | 4 +- .../src/exportStarAs2/index.ts | 2 +- .../src/exportStarAs2/ns.ts | 2 +- .../src/exportStarAs3/index.ts | 2 +- .../src/includeForgottenExports/index.ts | 6 +- .../src/namedDefaultImport/index.ts | 2 +- .../src/namespaceImports/index.ts | 4 +- .../src/namespaceImports/intermediate1.ts | 2 +- .../src/namespaceImports/intermediate2.ts | 2 +- .../src/namespaceImports2/index.ts | 4 +- .../src/referenceTokens/index.ts | 2 +- .../src/ReexportedClass2.ts | 2 +- .../src/ReexportedClass3/ReexportedClass3.ts | 2 +- .../src/ReexportedClass3/index.ts | 2 +- .../api-extractor-test-01/src/index.ts | 32 ++--- .../src/SubclassWithImport.ts | 2 +- .../api-extractor-test-02/src/index.ts | 10 +- .../api-extractor-test-04/src/BetaClass.ts | 2 +- .../src/IPublicComplexInterface.ts | 2 +- .../api-extractor-test-04/src/index.ts | 18 +-- .../dist/tsdoc-metadata.json | 2 +- .../src/index.ts | 2 +- .../src/test/index.test.ts | 2 +- .../src/test/index.test.ts | 2 +- .../src/test/example.test.ts | 2 +- .../src/test/ExampleTest.test.ts | 2 +- build-tests/heft-sass-test/src/index.tsx | 2 +- .../src/test/ExampleApp.test.ts | 2 +- .../src/test/lib-commonjs.test.ts | 2 +- .../heft-sass-test/src/test/lib-css.test.ts | 2 +- .../heft-sass-test/src/test/lib.test.ts | 2 +- .../heft-sass-test/src/test/sass-ts.test.ts | 2 +- .../eslint.config.js | 5 + .../src/test/example.test.ts | 2 +- .../src/test/ExampleTest.test.ts | 2 +- .../src/test/ExampleTest.test.ts | 2 +- .../eslint.config.js | 6 + .../localization-plugin-test-01/src/indexA.ts | 2 +- .../eslint.config.js | 6 + .../localization-plugin-test-02/src/indexA.ts | 4 +- .../localization-plugin-test-02/src/indexC.ts | 2 +- .../eslint.config.js | 6 + .../localization-plugin-test-03/src/indexA.ts | 6 +- .../localization-plugin-test-03/src/indexC.ts | 2 +- .../localization-plugin-test-03/src/indexD.ts | 2 +- .../src/ExamplePlugin.ts | 2 +- .../src/StateCapitalTool.ts | 2 +- .../rush-mcp-example-plugin/src/index.ts | 2 +- .../src/runTests.ts | 4 +- .../src/testNpmMode.ts | 2 +- .../src/testYarnMode.ts | 2 +- .../src/custom-config-package-names.ts | 2 +- .../bulk-suppressions-file.ts | 2 +- .../bulk-suppressions-patch.ts | 8 +- .../src/eslint-bulk-suppressions/cli/prune.ts | 8 +- .../eslint-bulk-suppressions/cli/runEslint.ts | 4 +- .../src/eslint-bulk-suppressions/cli/start.ts | 8 +- .../eslint-bulk-suppressions/cli/suppress.ts | 6 +- .../cli/utils/get-eslint-cli.ts | 2 +- .../cli/utils/print-help.ts | 2 +- .../generate-patched-file.ts | 2 +- .../src/eslint-bulk-suppressions/index.ts | 14 ++- .../eslint-bulk-suppressions/path-utils.ts | 4 +- .../eslint-patch/src/exports/eslint-bulk.ts | 2 +- .../src/modern-module-resolution.ts | 2 +- .../src/DependencyAnalyzer.ts | 4 +- .../src/PackletAnalyzer.ts | 2 +- .../src/circular-deps.ts | 6 +- eslint/eslint-plugin-packlets/src/index.ts | 6 +- .../eslint-plugin-packlets/src/mechanics.ts | 2 +- eslint/eslint-plugin-packlets/src/readme.ts | 2 +- .../src/test/Path.test.ts | 2 +- eslint/eslint-plugin-security/src/index.ts | 2 +- .../src/test/no-unsafe-regexp.test.ts | 2 +- eslint/eslint-plugin/src/hoist-jest-mock.ts | 2 +- eslint/eslint-plugin/src/index.ts | 22 ++-- .../eslint-plugin/src/no-backslash-imports.ts | 2 +- .../src/no-external-local-imports.ts | 2 +- .../src/no-transitive-dependency-imports.ts | 2 +- .../eslint-plugin/src/normalized-imports.ts | 2 +- .../src/test/hoist-jest-mock.test.ts | 4 +- .../test/import-requires-chunk-name.test.ts | 4 +- .../src/test/no-backslash-imports.test.ts | 4 +- .../test/no-external-local-imports.test.ts | 4 +- .../src/test/no-new-null.test.ts | 4 +- .../no-transitive-dependency-imports.test.ts | 4 +- .../src/test/no-untyped-underscore.test.ts | 4 +- .../src/test/normalized-imports.test.ts | 4 +- .../pair-react-dom-render-unmount.test.ts | 4 +- .../src/test/typedef-var.test.ts | 4 +- .../src/ApiExtractorPlugin.ts | 2 +- .../src/SwcIsolatedTranspilePlugin.ts | 2 +- .../src/TranspileWorker.ts | 2 +- .../src/index.ts | 2 +- .../src/types.ts | 2 +- .../heft-jest-plugin/src/JestPlugin.ts | 8 +- .../exports/jest-identity-mock-transform.ts | 2 +- .../src/exports/jest-improved-resolver.ts | 2 +- .../jest-node-modules-symlink-resolver.ts | 4 +- .../jest-source-map-snapshot-resolver.ts | 2 +- .../src/exports/jest-string-mock-transform.ts | 2 +- .../src/test/JestPlugin.test.ts | 2 +- .../src/JsonSchemaTypingsGenerator.ts | 2 +- .../src/JsonSchemaTypingsPlugin.ts | 2 +- .../test/JsonSchemaTypingsGenerator.test.ts | 2 +- .../src/test/TsDocReleaseTagHelpers.test.ts | 2 +- heft-plugins/heft-lint-plugin/src/Eslint.ts | 6 +- .../heft-lint-plugin/src/LintPlugin.ts | 8 +- .../heft-lint-plugin/src/LinterBase.ts | 2 +- heft-plugins/heft-lint-plugin/src/Tslint.ts | 4 +- .../src/test/SarifFormatter.test.ts | 4 +- .../src/RspackConfigurationLoader.ts | 4 +- .../heft-rspack-plugin/src/RspackPlugin.ts | 10 +- heft-plugins/heft-rspack-plugin/src/index.ts | 4 +- .../heft-sass-plugin/src/SassPlugin.ts | 4 +- heft-plugins/heft-sass-plugin/src/index.ts | 4 +- .../src/TranspilerWorker.ts | 6 +- .../src/TypeScriptBuilder.ts | 15 ++- .../src/TypeScriptPlugin.ts | 4 +- .../src/configureProgramForMultiEmit.ts | 36 ++++-- .../heft-typescript-plugin/src/index.ts | 10 +- .../src/loadTypeScriptTool.ts | 4 +- .../src/tsconfigLoader.ts | 10 +- .../src/VSCodeExtensionPackagePlugin.ts | 2 +- .../src/VSCodeExtensionPublishPlugin.ts | 2 +- .../VSCodeExtensionVerifySignaturePlugin.ts | 2 +- .../src/Webpack4Plugin.ts | 6 +- .../src/WebpackConfigurationLoader.test.ts | 6 +- .../src/WebpackConfigurationLoader.ts | 4 +- .../heft-webpack4-plugin/src/index.ts | 4 +- .../src/Webpack5Plugin.ts | 10 +- .../src/WebpackConfigurationLoader.ts | 4 +- .../heft-webpack5-plugin/src/index.ts | 4 +- .../test/WebpackConfigurationLoader.test.ts | 6 +- libraries/api-extractor-model/src/index.ts | 92 +++++++------- .../src/items/ApiDeclaredItem.ts | 10 +- .../src/items/ApiDocumentedItem.ts | 4 +- .../api-extractor-model/src/items/ApiItem.ts | 16 +-- .../src/items/ApiPropertyItem.ts | 18 +-- .../src/mixins/ApiAbstractMixin.ts | 4 +- .../src/mixins/ApiExportedMixin.ts | 4 +- .../src/mixins/ApiInitializerMixin.ts | 8 +- .../src/mixins/ApiItemContainerMixin.ts | 20 +-- .../src/mixins/ApiNameMixin.ts | 4 +- .../src/mixins/ApiOptionalMixin.ts | 4 +- .../src/mixins/ApiParameterListMixin.ts | 10 +- .../src/mixins/ApiProtectedMixin.ts | 4 +- .../src/mixins/ApiReadonlyMixin.ts | 4 +- .../src/mixins/ApiReleaseTagMixin.ts | 6 +- .../src/mixins/ApiReturnTypeMixin.ts | 8 +- .../src/mixins/ApiStaticMixin.ts | 4 +- .../src/mixins/ApiTypeParameterListMixin.ts | 10 +- .../src/mixins/IFindApiItemsResult.ts | 2 +- .../src/model/ApiCallSignature.ts | 15 ++- .../api-extractor-model/src/model/ApiClass.ts | 25 ++-- .../src/model/ApiConstructSignature.ts | 15 ++- .../src/model/ApiConstructor.ts | 13 +- .../src/model/ApiEntryPoint.ts | 11 +- .../api-extractor-model/src/model/ApiEnum.ts | 17 +-- .../src/model/ApiEnumMember.ts | 10 +- .../src/model/ApiFunction.ts | 19 +-- .../src/model/ApiIndexSignature.ts | 15 ++- .../src/model/ApiInterface.ts | 20 +-- .../src/model/ApiMethod.ts | 25 ++-- .../src/model/ApiMethodSignature.ts | 19 +-- .../api-extractor-model/src/model/ApiModel.ts | 8 +- .../src/model/ApiNamespace.ts | 15 ++- .../src/model/ApiPackage.ts | 15 ++- .../src/model/ApiProperty.ts | 12 +- .../src/model/ApiPropertySignature.ts | 4 +- .../src/model/ApiTypeAlias.ts | 16 +-- .../src/model/ApiVariable.ts | 18 +-- .../src/model/Deserializer.ts | 46 +++---- .../src/model/HeritageType.ts | 2 +- .../src/model/ModelReferenceResolver.ts | 12 +- .../src/model/Parameter.ts | 6 +- .../src/model/TypeParameter.ts | 6 +- libraries/credential-cache/src/index.ts | 2 +- .../src/test/CredentialCache.test.ts | 2 +- .../src/CertificateManager.ts | 4 +- .../debug-certificate-manager/src/index.ts | 4 +- .../src/NonProjectConfigurationFile.ts | 2 +- .../src/ProjectConfigurationFile.ts | 2 +- .../heft-config-file/src/TestUtilities.ts | 2 +- libraries/heft-config-file/src/index.ts | 10 +- .../src/test/ConfigurationFile.test.ts | 6 +- .../load-themed-styles/src/test/index.test.ts | 2 +- .../src/LocFileParser.ts | 8 +- .../src/Pseudolocalization.ts | 2 +- .../src/TypingsGenerator.ts | 4 +- libraries/localization-utilities/src/index.ts | 14 +-- .../src/parsers/parseLocJson.ts | 2 +- .../src/parsers/parseResJson.ts | 2 +- .../src/parsers/parseResx.ts | 2 +- .../src/parsers/test/parseLocJson.test.ts | 4 +- .../src/parsers/test/parseResJson.test.ts | 4 +- .../src/parsers/test/parseResx.test.ts | 4 +- .../src/test/Pseudolocalization.test.ts | 4 +- .../src/getFirstDifferenceInCommonNodes.ts | 2 +- libraries/lookup-by-path/src/index.ts | 8 +- .../src/test/LookupByPath.test.ts | 2 +- .../getFirstDifferenceInCommonNodes.test.ts | 4 +- .../module-minifier/src/LocalMinifier.ts | 4 +- .../src/MessagePortMinifier.ts | 2 +- .../module-minifier/src/MinifiedIdentifier.ts | 2 +- .../module-minifier/src/MinifierWorker.ts | 4 +- .../module-minifier/src/MinifySingleFile.ts | 4 +- libraries/module-minifier/src/NoopMinifier.ts | 2 +- .../module-minifier/src/WorkerPoolMinifier.ts | 2 +- libraries/module-minifier/src/index.ts | 18 +-- .../src/test/LocalMinifier.test.ts | 6 +- .../src/test/MinifiedIdentifier.test.ts | 2 +- .../src/test/MinifySingleFile.test.ts | 2 +- .../src/test/WorkerPoolMinifier.test.ts | 6 +- .../src/AlreadyReportedError.ts | 2 +- .../node-core-library/src/Disposables.ts | 2 +- .../node-core-library/src/EnvironmentMap.ts | 2 +- libraries/node-core-library/src/Executable.ts | 10 +- libraries/node-core-library/src/FileError.ts | 4 +- libraries/node-core-library/src/FileSystem.ts | 4 +- libraries/node-core-library/src/FileWriter.ts | 2 +- libraries/node-core-library/src/Import.ts | 8 +- libraries/node-core-library/src/JsonFile.ts | 6 +- libraries/node-core-library/src/JsonSchema.ts | 4 +- libraries/node-core-library/src/LockFile.ts | 6 +- libraries/node-core-library/src/Objects.ts | 2 +- .../src/PackageJsonLookup.ts | 8 +- .../node-core-library/src/ProtectableMap.ts | 2 +- .../src/ProtectableMapView.ts | 2 +- .../src/SubprocessTerminator.ts | 2 +- libraries/node-core-library/src/TypeUuid.ts | 2 +- libraries/node-core-library/src/User.ts | 2 +- .../src/disposables/index.ts | 2 +- libraries/node-core-library/src/index.ts | 66 +++++----- .../node-core-library/src/objects/index.ts | 2 +- .../src/objects/test/areDeepEqual.test.ts | 2 +- .../node-core-library/src/test/Async.test.ts | 2 +- .../node-core-library/src/test/Enum.test.ts | 2 +- .../src/test/EnvironmentMap.test.ts | 2 +- .../src/test/Executable.test.ts | 8 +- .../src/test/FileError.test.ts | 4 +- .../src/test/FileSystem.test.ts | 4 +- .../node-core-library/src/test/Import.test.ts | 6 +- .../src/test/JsonFile.test.ts | 2 +- .../src/test/JsonSchema.test.ts | 4 +- .../src/test/LockFile.test.ts | 6 +- .../src/test/MinimumHeap.test.ts | 2 +- .../src/test/PackageJsonLookup.test.ts | 6 +- .../src/test/PackageName.test.ts | 2 +- .../node-core-library/src/test/Path.test.ts | 2 +- .../src/test/ProtectableMap.test.ts | 2 +- .../src/test/RealNodeModulePath.test.ts | 5 +- .../node-core-library/src/test/Sort.test.ts | 2 +- .../node-core-library/src/test/Text.test.ts | 2 +- .../src/test/TypeUuid.test.ts | 2 +- .../src/test/writeBuffersToFile.test.ts | 4 +- .../src/user/getHomeFolder.ts | 2 +- libraries/node-core-library/src/user/index.ts | 2 +- .../npm-check-fork/src/BestGuessHomepage.ts | 2 +- .../src/CreatePackageSummary.ts | 13 +- .../src/GetLatestFromRegistry.ts | 6 +- libraries/npm-check-fork/src/NpmCheck.ts | 6 +- libraries/npm-check-fork/src/NpmCheckState.ts | 4 +- .../npm-check-fork/src/NpmRegistryClient.ts | 2 +- libraries/npm-check-fork/src/index.ts | 12 +- .../src/interfaces/INpmCheck.ts | 2 +- .../src/tests/BestGuessHomepage.test.ts | 4 +- .../src/tests/CreatePackageSummary.test.ts | 14 +-- .../src/tests/FindModulePath.test.ts | 4 +- .../src/tests/GetLatestFromRegistry.test.ts | 2 +- .../npm-check-fork/src/tests/NpmCheck.test.ts | 6 +- .../src/tests/NpmCheckState.test.ts | 4 +- .../src/tests/NpmRegistryClient.test.ts | 4 +- .../src/tests/ReadPackageJson.test.ts | 4 +- .../operation-graph/src/IOperationRunner.ts | 6 +- libraries/operation-graph/src/Operation.ts | 10 +- .../src/OperationExecutionManager.ts | 12 +- .../src/OperationGroupRecord.ts | 8 +- libraries/operation-graph/src/WatchLoop.ts | 6 +- libraries/operation-graph/src/WorkQueue.ts | 2 +- libraries/operation-graph/src/index.ts | 18 +-- .../operation-graph/src/protocol.types.ts | 2 +- .../test/OperationExecutionManager.test.ts | 8 +- .../src/test/WatchLoop.test.ts | 6 +- .../src/test/WorkQueue.test.ts | 4 +- .../src/test/calculateCriticalPath.test.ts | 2 +- .../package-deps-hash/src/getPackageDeps.ts | 2 +- libraries/package-deps-hash/src/index.ts | 4 +- .../src/test/getPackageDeps.test.ts | 2 +- .../src/test/getRepoDeps.test.ts | 2 +- .../src/test/getRepoState.test.ts | 2 +- .../package-extractor/src/AssetHandler.ts | 8 +- .../package-extractor/src/PackageExtractor.ts | 10 +- libraries/package-extractor/src/Utils.ts | 2 +- libraries/package-extractor/src/index.ts | 4 +- .../cli/CreateLinksCommandLineParser.ts | 4 +- .../cli/actions/CreateLinksAction.ts | 10 +- .../cli/actions/RemoveLinksAction.ts | 6 +- .../src/scripts/createLinks/start.ts | 2 +- .../utilities/CreateLinksUtilities.ts | 4 +- .../createLinks/utilities/constants.ts | 2 +- .../src/test/PackageExtractor.test.ts | 2 +- libraries/problem-matcher/src/index.ts | 4 +- .../src/test/ProblemMatcher.test.ts | 2 +- libraries/rig-package/src/RigConfig.ts | 2 +- libraries/rig-package/src/index.ts | 2 +- .../rig-package/src/test/RigConfig.test.ts | 2 +- .../src/api/ApprovedPackagesConfiguration.ts | 4 +- .../src/api/ApprovedPackagesPolicy.ts | 6 +- .../src/api/BuildCacheConfiguration.ts | 16 +-- libraries/rush-lib/src/api/ChangeFile.ts | 6 +- libraries/rush-lib/src/api/ChangeManager.ts | 8 +- .../rush-lib/src/api/CobuildConfiguration.ts | 10 +- .../src/api/CommandLineConfiguration.ts | 4 +- .../src/api/CommonVersionsConfiguration.ts | 10 +- .../src/api/EnvironmentConfiguration.ts | 4 +- libraries/rush-lib/src/api/EventHooks.ts | 2 +- libraries/rush-lib/src/api/LastInstallFlag.ts | 12 +- .../rush-lib/src/api/PackageJsonEditor.ts | 2 +- libraries/rush-lib/src/api/Rush.ts | 20 +-- libraries/rush-lib/src/api/RushCommandLine.ts | 2 +- .../rush-lib/src/api/RushConfiguration.ts | 52 ++++---- .../src/api/RushConfigurationProject.ts | 16 +-- .../rush-lib/src/api/RushGlobalFolder.ts | 2 +- libraries/rush-lib/src/api/RushInternals.ts | 2 +- .../src/api/RushProjectConfiguration.ts | 12 +- .../rush-lib/src/api/RushUserConfiguration.ts | 2 +- .../src/api/SaveCallbackPackageJsonEditor.ts | 2 +- libraries/rush-lib/src/api/Subspace.ts | 20 +-- .../src/api/SubspacesConfiguration.ts | 4 +- libraries/rush-lib/src/api/Variants.ts | 6 +- libraries/rush-lib/src/api/VersionPolicy.ts | 10 +- .../src/api/VersionPolicyConfiguration.ts | 4 +- .../api/packageManager/NpmPackageManager.ts | 4 +- .../api/packageManager/PnpmPackageManager.ts | 4 +- .../api/packageManager/YarnPackageManager.ts | 4 +- .../rush-lib/src/api/test/ChangeFile.test.ts | 6 +- .../api/test/CommandLineConfiguration.test.ts | 4 +- .../test/CommonVersionsConfiguration.test.ts | 4 +- .../api/test/CustomTipsConfiguration.test.ts | 4 +- .../api/test/EnvironmentConfiguration.test.ts | 2 +- .../rush-lib/src/api/test/EventHooks.test.ts | 4 +- .../rush-lib/src/api/test/FlagFile.test.ts | 4 +- .../src/api/test/LastInstallFlag.test.ts | 2 +- .../src/api/test/RushCommandLine.test.ts | 2 +- .../src/api/test/RushConfiguration.test.ts | 10 +- .../api/test/RushConfigurationProject.test.ts | 2 +- .../api/test/RushProjectConfiguration.test.ts | 6 +- .../rush-lib/src/api/test/Subspace.test.ts | 4 +- .../api/test/VersionMismatchFinder.test.ts | 14 +-- .../src/api/test/VersionPolicy.test.ts | 4 +- .../src/cli/CommandLineMigrationAdvisor.ts | 2 +- .../rush-lib/src/cli/RushCommandLineParser.ts | 82 ++++++------- .../rush-lib/src/cli/RushPnpmCommandLine.ts | 4 +- .../src/cli/RushPnpmCommandLineParser.ts | 30 ++--- .../rush-lib/src/cli/RushStartupBanner.ts | 4 +- .../rush-lib/src/cli/RushXCommandLine.ts | 26 ++-- .../rush-lib/src/cli/actions/AddAction.ts | 12 +- .../rush-lib/src/cli/actions/AlertAction.ts | 6 +- .../src/cli/actions/BaseAddAndRemoveAction.ts | 14 +-- .../cli/actions/BaseAutoinstallerAction.ts | 4 +- .../cli/actions/BaseHotlinkPackageAction.ts | 4 +- .../src/cli/actions/BaseInstallAction.ts | 36 +++--- .../src/cli/actions/BaseRushAction.ts | 16 +-- .../src/cli/actions/BridgePackageAction.ts | 14 +-- .../rush-lib/src/cli/actions/ChangeAction.ts | 20 +-- .../rush-lib/src/cli/actions/CheckAction.ts | 8 +- .../rush-lib/src/cli/actions/DeployAction.ts | 14 +-- .../rush-lib/src/cli/actions/InitAction.ts | 8 +- .../cli/actions/InitAutoinstallerAction.ts | 6 +- .../src/cli/actions/InitDeployAction.ts | 12 +- .../src/cli/actions/InitSubspaceAction.ts | 13 +- .../rush-lib/src/cli/actions/InstallAction.ts | 14 +-- .../cli/actions/InstallAutoinstallerAction.ts | 6 +- .../rush-lib/src/cli/actions/LinkAction.ts | 10 +- .../src/cli/actions/LinkPackageAction.ts | 12 +- .../rush-lib/src/cli/actions/ListAction.ts | 10 +- .../rush-lib/src/cli/actions/PublishAction.ts | 34 +++--- .../rush-lib/src/cli/actions/PurgeAction.ts | 12 +- .../rush-lib/src/cli/actions/RemoveAction.ts | 10 +- .../rush-lib/src/cli/actions/ScanAction.ts | 4 +- .../rush-lib/src/cli/actions/SetupAction.ts | 6 +- .../rush-lib/src/cli/actions/UnlinkAction.ts | 6 +- .../rush-lib/src/cli/actions/UpdateAction.ts | 14 +-- .../cli/actions/UpdateAutoinstallerAction.ts | 6 +- .../actions/UpdateCloudCredentialsAction.ts | 8 +- .../cli/actions/UpgradeInteractiveAction.ts | 14 +-- .../rush-lib/src/cli/actions/VersionAction.ts | 24 ++-- .../src/cli/actions/test/AddAction.test.ts | 12 +- .../src/cli/actions/test/RemoveAction.test.ts | 16 +-- .../src/cli/parsing/ParseParallelism.ts | 2 +- .../src/cli/parsing/SelectionParameterSet.ts | 22 ++-- .../cli/parsing/associateParametersByPhase.ts | 2 +- .../src/cli/parsing/defineCustomParameters.ts | 6 +- .../cli/parsing/test/ParseParallelism.test.ts | 2 +- .../src/cli/scriptActions/BaseScriptAction.ts | 10 +- .../cli/scriptActions/GlobalScriptAction.ts | 14 +-- .../cli/scriptActions/PhasedScriptAction.ts | 94 +++++++------- libraries/rush-lib/src/cli/test/Cli.test.ts | 2 +- .../src/cli/test/CommandLineHelp.test.ts | 4 +- .../cli/test/RushCommandLineParser.test.ts | 10 +- .../RushCommandLineParserFailureCases.test.ts | 8 +- .../RushPluginCommandLineParameters.test.ts | 8 +- .../src/cli/test/RushXCommandLine.test.ts | 12 +- libraries/rush-lib/src/cli/test/TestUtils.ts | 10 +- .../rush-mock-flush-telemetry-plugin/index.ts | 2 +- libraries/rush-lib/src/index.ts | 115 +++++++++--------- .../src/logic/ApprovedPackagesChecker.ts | 8 +- libraries/rush-lib/src/logic/Autoinstaller.ts | 18 +-- libraries/rush-lib/src/logic/ChangeFiles.ts | 6 +- libraries/rush-lib/src/logic/ChangeManager.ts | 18 +-- .../rush-lib/src/logic/ChangelogGenerator.ts | 10 +- .../rush-lib/src/logic/DependencyAnalyzer.ts | 10 +- .../rush-lib/src/logic/EventHooksManager.ts | 12 +- libraries/rush-lib/src/logic/Git.ts | 12 +- .../src/logic/InstallManagerFactory.ts | 16 +-- .../rush-lib/src/logic/InteractiveUpgrader.ts | 8 +- .../rush-lib/src/logic/LinkManagerFactory.ts | 8 +- .../rush-lib/src/logic/NodeJsCompatibility.ts | 4 +- .../rush-lib/src/logic/PackageJsonUpdater.ts | 40 +++--- .../src/logic/PackageJsonUpdaterTypes.ts | 2 +- libraries/rush-lib/src/logic/PackageLookup.ts | 2 +- .../src/logic/ProjectChangeAnalyzer.ts | 16 +-- .../src/logic/ProjectImpactGraphGenerator.ts | 8 +- .../rush-lib/src/logic/ProjectWatcher.ts | 10 +- libraries/rush-lib/src/logic/PublishGit.ts | 8 +- .../rush-lib/src/logic/PublishUtilities.ts | 18 +-- libraries/rush-lib/src/logic/PurgeManager.ts | 8 +- libraries/rush-lib/src/logic/RepoStateFile.ts | 8 +- libraries/rush-lib/src/logic/SetupChecks.ts | 4 +- .../src/logic/ShrinkwrapFileFactory.ts | 10 +- .../src/logic/StandardScriptUpdater.ts | 6 +- libraries/rush-lib/src/logic/Telemetry.ts | 8 +- .../rush-lib/src/logic/TempProjectHelper.ts | 8 +- libraries/rush-lib/src/logic/UnlinkManager.ts | 10 +- .../rush-lib/src/logic/VersionManager.ts | 20 +-- .../src/logic/base/BaseInstallManager.ts | 58 ++++----- .../src/logic/base/BaseInstallManagerTypes.ts | 4 +- .../src/logic/base/BaseLinkManager.ts | 16 +-- .../logic/base/BaseProjectShrinkwrapFile.ts | 6 +- .../src/logic/base/BaseShrinkwrapFile.ts | 20 +-- .../FileSystemBuildCacheProvider.ts | 4 +- .../logic/buildCache/OperationBuildCache.ts | 14 +-- .../buildCache/test/CacheEntryId.test.ts | 2 +- .../test/OperationBuildCache.test.ts | 10 +- .../rush-lib/src/logic/cobuild/CobuildLock.ts | 8 +- .../src/logic/cobuild/ICobuildLockProvider.ts | 2 +- .../logic/cobuild/test/CobuildLock.test.ts | 8 +- .../logic/cobuild/test/DisjointSet.test.ts | 2 +- .../deploy/DeployScenarioConfiguration.ts | 4 +- libraries/rush-lib/src/logic/dotenv.ts | 4 +- .../src/logic/incremental/InputsSnapshot.ts | 6 +- .../incremental/test/InputsSnapshot.test.ts | 4 +- .../logic/installManager/InstallHelpers.ts | 20 +-- .../installManager/RushInstallManager.ts | 38 +++--- .../installManager/WorkspaceInstallManager.ts | 48 ++++---- .../installManager/doBasicInstallAsync.ts | 18 +-- .../rush-lib/src/logic/npm/NpmLinkManager.ts | 12 +- .../src/logic/npm/NpmOptionsConfiguration.ts | 2 +- .../rush-lib/src/logic/npm/NpmPackage.ts | 2 +- .../src/logic/npm/NpmShrinkwrapFile.ts | 10 +- .../logic/operations/AsyncOperationQueue.ts | 6 +- .../src/logic/operations/BuildPlanPlugin.ts | 12 +- .../operations/CacheableOperationPlugin.ts | 36 +++--- .../logic/operations/ConsoleTimelinePlugin.ts | 12 +- .../src/logic/operations/DebugHashesPlugin.ts | 6 +- .../operations/IOperationExecutionResult.ts | 8 +- .../src/logic/operations/IOperationRunner.ts | 8 +- .../logic/operations/IPCOperationRunner.ts | 14 +-- .../operations/IPCOperationRunnerPlugin.ts | 12 +- .../operations/IgnoredParametersPlugin.ts | 6 +- .../src/logic/operations/LegacySkipPlugin.ts | 10 +- .../operations/NodeDiagnosticDirPlugin.ts | 8 +- .../logic/operations/NullOperationRunner.ts | 4 +- .../src/logic/operations/Operation.ts | 8 +- .../operations/OperationExecutionManager.ts | 19 +-- .../operations/OperationExecutionRecord.ts | 26 ++-- .../operations/OperationMetadataManager.ts | 10 +- .../OperationResultSummarizerPlugin.ts | 12 +- .../logic/operations/PhasedOperationPlugin.ts | 10 +- .../operations/PnpmSyncCopyOperationPlugin.ts | 12 +- .../logic/operations/ProjectLogWritable.ts | 6 +- .../operations/ShardedPhaseOperationPlugin.ts | 14 +-- .../logic/operations/ShellOperationRunner.ts | 14 +-- .../operations/ShellOperationRunnerPlugin.ts | 22 ++-- .../operations/ValidateOperationsPlugin.ts | 12 +- .../operations/WeightedOperationPlugin.ts | 10 +- .../test/AsyncOperationQueue.test.ts | 17 +-- .../operations/test/BuildPlanPlugin.test.ts | 24 ++-- .../test/IgnoredParametersPlugin.test.ts | 27 ++-- .../operations/test/MockOperationRunner.ts | 4 +- .../test/OperationExecutionManager.test.ts | 28 ++--- .../test/OperationMetadataManager.test.ts | 10 +- .../test/PhasedOperationPlugin.test.ts | 19 +-- .../test/ShellOperationRunner.test.ts | 2 +- .../test/ShellOperationRunnerPlugin.test.ts | 20 +-- .../rush-lib/src/logic/pnpm/IPnpmfile.ts | 4 +- .../src/logic/pnpm/PnpmLinkManager.ts | 14 +-- .../logic/pnpm/PnpmOptionsConfiguration.ts | 4 +- .../logic/pnpm/PnpmProjectShrinkwrapFile.ts | 10 +- .../pnpm/PnpmShrinkWrapFileConverters.ts | 2 +- .../src/logic/pnpm/PnpmShrinkwrapFile.ts | 38 +++--- .../src/logic/pnpm/PnpmWorkspaceFile.ts | 4 +- .../src/logic/pnpm/PnpmfileConfiguration.ts | 16 +-- .../rush-lib/src/logic/pnpm/PnpmfileShim.ts | 4 +- .../logic/pnpm/SubspaceGlobalPnpmfileShim.ts | 4 +- .../pnpm/SubspacePnpmfileConfiguration.ts | 16 +-- .../test/PnpmOptionsConfiguration.test.ts | 2 +- .../test/PnpmShrinkwrapConverters.test.ts | 2 +- .../pnpm/test/PnpmShrinkwrapFile.test.ts | 16 ++- .../logic/pnpm/test/PnpmWorkspaceFile.test.ts | 2 +- .../pnpm/test/PnpmfileConfiguration.test.ts | 4 +- .../src/logic/policy/EnvironmentPolicy.ts | 6 +- .../src/logic/policy/GitEmailPolicy.ts | 10 +- .../src/logic/policy/PolicyValidator.ts | 10 +- .../src/logic/policy/ShrinkwrapFilePolicy.ts | 12 +- .../GitChangedProjectSelectorParser.ts | 8 +- .../selectors/NamedProjectSelectorParser.ts | 8 +- .../selectors/PathProjectSelectorParser.ts | 8 +- .../logic/selectors/SubspaceSelectorParser.ts | 10 +- .../selectors/TagProjectSelectorParser.ts | 8 +- .../VersionPolicyProjectSelectorParser.ts | 6 +- .../test/NamedProjectSelectorParser.test.ts | 4 +- .../test/PathProjectSelectorParser.test.ts | 4 +- .../test/SubspaceSelectorParser.test.ts | 4 +- .../test/TagProjectSelectorParser.test.ts | 4 +- ...VersionPolicyProjectSelectorParser.test.ts | 4 +- .../rush-lib/src/logic/setup/KeyboardLoop.ts | 2 +- .../src/logic/setup/SetupPackageRegistry.ts | 15 ++- .../rush-lib/src/logic/setup/TerminalInput.ts | 2 +- .../src/logic/test/BaseInstallManager.test.ts | 12 +- .../src/logic/test/ChangeFiles.test.ts | 6 +- .../src/logic/test/ChangeManager.test.ts | 8 +- .../src/logic/test/ChangelogGenerator.test.ts | 12 +- .../src/logic/test/DependencyAnalyzer.test.ts | 4 +- .../logic/test/DependencySpecifier.test.ts | 2 +- libraries/rush-lib/src/logic/test/Git.test.ts | 6 +- .../src/logic/test/InstallHelpers.test.ts | 4 +- .../logic/test/ProjectChangeAnalyzer.test.ts | 10 +- .../test/ProjectImpactGraphGenerator.test.ts | 6 +- .../src/logic/test/PublishGit.test.ts | 8 +- .../src/logic/test/PublishUtilities.test.ts | 10 +- .../rush-lib/src/logic/test/Selection.test.ts | 2 +- .../src/logic/test/ShrinkwrapFile.test.ts | 12 +- .../rush-lib/src/logic/test/Telemetry.test.ts | 8 +- .../src/logic/test/VersionManager.test.ts | 10 +- .../versionMismatch/VersionMismatchFinder.ts | 16 +-- .../VersionMismatchFinderCommonVersions.ts | 8 +- .../VersionMismatchFinderEntity.ts | 2 +- .../VersionMismatchFinderProject.ts | 10 +- .../logic/yarn/YarnOptionsConfiguration.ts | 2 +- .../src/logic/yarn/YarnShrinkwrapFile.ts | 14 +-- .../src/pluginFramework/IRushPlugin.ts | 4 +- .../src/pluginFramework/PhasedCommandHooks.ts | 26 ++-- .../PluginLoader/AutoinstallerPluginLoader.ts | 10 +- .../PluginLoader/BuiltInPluginLoader.ts | 4 +- .../PluginLoader/PluginLoaderBase.ts | 12 +- .../pluginFramework/PluginLoader/RushSdk.ts | 2 +- .../src/pluginFramework/PluginManager.ts | 18 +-- .../src/pluginFramework/RushLifeCycle.ts | 6 +- .../src/pluginFramework/RushSession.ts | 12 +- .../rush-lib/src/scripts/install-run-rush.ts | 4 +- libraries/rush-lib/src/scripts/install-run.ts | 6 +- libraries/rush-lib/src/start-pnpm.ts | 2 +- libraries/rush-lib/src/start.ts | 2 +- libraries/rush-lib/src/startx.ts | 2 +- .../rush-lib/src/utilities/AsyncRecycler.ts | 4 +- .../rush-lib/src/utilities/HotlinkManager.ts | 14 +-- libraries/rush-lib/src/utilities/Npm.ts | 2 +- .../src/utilities/PnpmSyncUtilities.ts | 2 +- .../rush-lib/src/utilities/RushAlerts.ts | 6 +- .../rush-lib/src/utilities/SetRushLibPath.ts | 2 +- libraries/rush-lib/src/utilities/Stopwatch.ts | 2 +- .../rush-lib/src/utilities/TarExecutable.ts | 6 +- libraries/rush-lib/src/utilities/Utilities.ts | 10 +- .../src/utilities/templateUtilities.ts | 2 +- .../rush-lib/src/utilities/test/Npm.test.ts | 4 +- .../test/OverlappingPathAnalyzer.test.ts | 2 +- .../src/utilities/test/Stopwatch.test.ts | 2 +- .../src/utilities/test/Utilities.test.ts | 2 +- .../src/utilities/test/WebClient.test.ts | 2 +- .../src/utilities/test/global-teardown.ts | 2 +- .../src/utilities/test/npmrcUtilities.test.ts | 2 +- .../utilities/test/objectUtilities.test.ts | 2 +- libraries/rush-pnpm-kit-v10/src/index.ts | 6 +- libraries/rush-pnpm-kit-v8/src/index.ts | 6 +- libraries/rush-pnpm-kit-v9/src/index.ts | 6 +- libraries/rush-sdk/src/index.ts | 2 +- libraries/rush-sdk/src/loader.ts | 2 +- .../src/components/Button/index.tsx | 2 +- libraries/rush-themed-ui/src/index.ts | 12 +- libraries/rushell/src/AstNode.ts | 4 +- libraries/rushell/src/ParseError.ts | 2 +- libraries/rushell/src/Parser.ts | 6 +- libraries/rushell/src/Rushell.ts | 8 +- libraries/rushell/src/Tokenizer.ts | 4 +- libraries/rushell/src/index.ts | 2 +- libraries/rushell/src/test/Parser.test.ts | 6 +- libraries/rushell/src/test/Rushell.test.ts | 2 +- libraries/rushell/src/test/TextRange.test.ts | 2 +- libraries/rushell/src/test/Tokenizer.test.ts | 2 +- .../stream-collator/src/CollatedWriter.ts | 4 +- .../stream-collator/src/StreamCollator.ts | 4 +- libraries/stream-collator/src/index.ts | 6 +- .../src/test/StreamCollator.test.ts | 4 +- libraries/terminal/src/AnsiEscape.ts | 2 +- libraries/terminal/src/CallbackWritable.ts | 4 +- libraries/terminal/src/Colorize.ts | 2 +- .../terminal/src/ConsoleTerminalProvider.ts | 2 +- .../terminal/src/DiscardStdoutTransform.ts | 4 +- libraries/terminal/src/ITerminal.ts | 2 +- libraries/terminal/src/MockWritable.ts | 6 +- .../terminal/src/NoOpTerminalProvider.ts | 2 +- .../src/NormalizeNewlinesTextRewriter.ts | 2 +- .../src/PrefixProxyTerminalProvider.ts | 2 +- libraries/terminal/src/PrintUtilities.ts | 2 +- libraries/terminal/src/ProblemCollector.ts | 6 +- .../terminal/src/RemoveColorsTextRewriter.ts | 4 +- libraries/terminal/src/SplitterTransform.ts | 4 +- libraries/terminal/src/StdioLineTransform.ts | 4 +- libraries/terminal/src/StdioSummarizer.ts | 4 +- libraries/terminal/src/StdioWritable.ts | 4 +- .../src/StringBufferTerminalProvider.ts | 4 +- libraries/terminal/src/Terminal.ts | 8 +- .../terminal/src/TerminalStreamWritable.ts | 4 +- libraries/terminal/src/TerminalTransform.ts | 2 +- libraries/terminal/src/TerminalWritable.ts | 2 +- .../terminal/src/TextRewriterTransform.ts | 10 +- libraries/terminal/src/index.ts | 54 ++++---- .../terminal/src/test/AnsiEscape.test.ts | 4 +- libraries/terminal/src/test/Colorize.test.ts | 6 +- .../NormalizeNewlinesTextRewriter.test.ts | 4 +- .../test/PrefixProxyTerminalProvider.test.ts | 8 +- .../terminal/src/test/PrintUtilities.test.ts | 6 +- .../src/test/ProblemCollector.test.ts | 4 +- .../src/test/RemoveColorsTextRewriter.test.ts | 8 +- .../src/test/SplitterTransform.test.ts | 6 +- .../src/test/StdioLineTransform.test.ts | 6 +- .../terminal/src/test/StdioSummarizer.test.ts | 8 +- libraries/terminal/src/test/Terminal.test.ts | 6 +- .../src/test/TerminalStreamWritable.test.ts | 8 +- .../src/test/TextRewriterTransform.test.ts | 8 +- .../terminal/src/test/createColorGrid.ts | 2 +- libraries/terminal/src/test/write-colors.ts | 4 +- .../tree-pattern/src/TreePattern.test.ts | 2 +- libraries/tree-pattern/src/index.ts | 2 +- .../ts-command-line/src/CommandLineHelper.ts | 2 +- libraries/ts-command-line/src/index.ts | 38 +++--- .../src/parameters/BaseClasses.ts | 18 +-- .../CommandLineChoiceListParameter.ts | 6 +- .../parameters/CommandLineChoiceParameter.ts | 4 +- .../src/parameters/CommandLineDefinition.ts | 2 +- .../parameters/CommandLineFlagParameter.ts | 4 +- .../CommandLineIntegerListParameter.ts | 6 +- .../parameters/CommandLineIntegerParameter.ts | 4 +- .../src/parameters/CommandLineRemainder.ts | 2 +- .../CommandLineStringListParameter.ts | 6 +- .../parameters/CommandLineStringParameter.ts | 4 +- .../src/providers/AliasCommandLineAction.ts | 11 +- .../src/providers/CommandLineAction.ts | 6 +- .../providers/CommandLineParameterProvider.ts | 28 ++--- .../src/providers/CommandLineParser.ts | 14 +-- .../src/providers/DynamicCommandLineAction.ts | 2 +- .../src/providers/DynamicCommandLineParser.ts | 2 +- .../src/providers/ScopedCommandLineAction.ts | 12 +- .../src/providers/TabCompletionAction.ts | 12 +- .../src/test/ActionlessParser.test.ts | 6 +- .../src/test/AliasedCommandLineAction.test.ts | 16 +-- .../test/AmbiguousCommandLineParser.test.ts | 18 +-- .../src/test/CommandLineParameter.test.ts | 12 +- .../src/test/CommandLineParser.test.ts | 8 +- .../src/test/CommandLineRemainder.test.ts | 12 +- .../test/ConflictingCommandLineParser.test.ts | 10 +- .../src/test/DynamicCommandLineParser.test.ts | 8 +- .../src/test/EndToEndTest.test.ts | 4 +- .../src/test/ScopedCommandLineAction.test.ts | 12 +- .../src/test/TabCompleteAction.test.ts | 8 +- .../src/test/helpTestUtilities.ts | 2 +- .../src/test/test-cli/PushAction.ts | 4 +- .../src/test/test-cli/RunAction.ts | 2 +- .../src/test/test-cli/WidgetCommandLine.ts | 8 +- .../src/test/test-cli/start.ts | 2 +- .../src/StringValuesTypingsGenerator.ts | 2 +- libraries/typings-generator/src/index.ts | 4 +- .../test/StringValuesTypingsGenerator.test.ts | 4 +- libraries/worker-pool/src/index.ts | 4 +- .../doc-plugin-rush-stack/src/index.ts | 2 +- .../src/cli/ToolboxCommandLine.ts | 8 +- repo-scripts/repo-toolbox/src/start.ts | 2 +- .../src/AmazonS3BuildCacheProvider.ts | 4 +- .../src/AmazonS3Client.ts | 4 +- .../src/RushAmazonS3BuildCachePlugin.ts | 4 +- .../src/index.ts | 8 +- .../test/AmazonS3BuildCacheProvider.test.ts | 2 +- .../src/test/AmazonS3Client.test.ts | 6 +- .../src/test/AmazonS3Credentials.test.ts | 2 +- .../src/AzureAuthenticationBase.ts | 2 +- .../src/AzureStorageAuthentication.ts | 2 +- .../src/AzureStorageBuildCacheProvider.ts | 2 +- .../src/RushAzureInteractiveAuthPlugin.ts | 4 +- .../src/RushAzureStorageBuildCachePlugin.ts | 4 +- .../src/index.ts | 6 +- .../AzureStorageBuildCacheProvider.test.ts | 4 +- .../rush-bridge-cache-plugin/src/index.ts | 2 +- .../src/DropBuildGraphPlugin.ts | 4 +- .../src/debugGraphFiltering.ts | 2 +- .../src/dropGraph.ts | 6 +- .../rush-buildxl-graph-plugin/src/index.ts | 8 +- .../src/test/GraphProcessor.test.ts | 2 +- .../src/RushHttpBuildCachePlugin.ts | 4 +- .../rush-http-build-cache-plugin/src/index.ts | 4 +- .../src/test/HttpBuildCacheProvider.test.ts | 2 +- .../rush-litewatch-plugin/src/WatchManager.ts | 2 +- .../src/test/WatchManager.test.ts | 4 +- .../rush-mcp-docs-plugin/src/DocsPlugin.ts | 2 +- .../rush-mcp-docs-plugin/src/DocsTool.ts | 2 +- .../rush-mcp-docs-plugin/src/index.ts | 2 +- .../src/RushRedisCobuildPlugin.ts | 7 +- .../rush-redis-cobuild-plugin/src/index.ts | 6 +- .../src/test/RedisCobuildLockProvider.test.ts | 5 +- .../src/afterInstallAsync.ts | 6 +- .../computeResolverCacheFromLockfileAsync.ts | 6 +- .../rush-resolver-cache-plugin/src/helpers.ts | 2 +- .../rush-resolver-cache-plugin/src/index.ts | 2 +- ...puteResolverCacheFromLockfileAsync.test.ts | 4 +- .../src/test/helpers.test.ts | 2 +- .../src/RushProjectServeConfigFile.ts | 2 +- .../rush-serve-plugin/src/RushServePlugin.ts | 6 +- rush-plugins/rush-serve-plugin/src/index.ts | 2 +- .../src/phasedCommandHandler.ts | 8 +- .../tryEnableBuildStatusWebSocketServer.ts | 6 +- .../src/certificates.ts | 2 +- .../src/config.ts | 2 +- .../src/extension.ts | 6 +- .../rush-vscode-command-webview/src/App.tsx | 12 +- .../ControlledComboBox.tsx | 4 +- .../ControlledTextField.tsx | 2 +- .../ControlledTextFieldArray.tsx | 4 +- .../ControlledToggle.tsx | 4 +- .../src/Message/fromExtension.ts | 4 +- .../ParameterView/ParameterForm/Watcher.tsx | 4 +- .../src/ParameterView/ParameterForm/index.tsx | 20 +-- .../src/ParameterView/ParameterNav.tsx | 6 +- .../src/ParameterView/index.tsx | 6 +- .../src/ProjectView/index.tsx | 2 +- .../src/Toolbar/RunButton.tsx | 6 +- .../src/Toolbar/SearchBar.tsx | 4 +- .../src/Toolbar/index.tsx | 6 +- .../rush-vscode-command-webview/src/entry.tsx | 4 +- .../src/hooks/parametersFormScroll.ts | 4 +- .../rush-vscode-command-webview/src/index.ts | 8 +- .../src/store/hooks/index.ts | 2 +- .../src/store/index.ts | 6 +- .../src/store/slices/parameter.ts | 2 +- .../src/store/slices/ui.ts | 2 +- .../rush-vscode-extension/src/extension.ts | 10 +- .../src/logic/RushWorkspace.ts | 2 +- .../src/providers/RushCommandsProvider.ts | 4 +- .../src/providers/RushProjectsProvider.ts | 8 +- .../src/providers/TaskProvider.ts | 2 +- .../src/test/suite/extension.test.ts | 2 +- .../src/HashedFolderCopyPlugin.ts | 4 +- .../src/HashedFolderDependency.ts | 4 +- .../hashed-folder-copy-plugin/src/index.ts | 2 +- .../src/test/HashedFolderCopyPlugin.test.ts | 2 +- .../loader-load-themed-styles/src/index.ts | 2 +- .../src/test/LoadThemedStylesLoader.test.ts | 4 +- webpack/loader-raw-script/src/index.ts | 2 +- .../src/test/RawScriptLoader.test.ts | 2 +- .../src/index.test.ts | 2 +- .../src/SetPublicPathCurrentScriptPlugin.ts | 2 +- .../src/SetPublicPathPlugin.ts | 4 +- .../src/codeGenerator.ts | 2 +- .../src/index.ts | 6 +- .../SetPublicPathCurrentScriptPlugin.test.ts | 4 +- .../src/test/SetPublicPathPlugin.test.ts | 4 +- .../webpack-deep-imports-plugin/src/index.ts | 2 +- .../src/EmbeddedDependenciesWebpackPlugin.ts | 2 +- .../src/index.ts | 4 +- .../WebpackEmbeddedDependenciesPlugin.test.ts | 4 +- webpack/webpack-plugin-utilities/src/index.ts | 4 +- .../src/KnownDescriptionFilePlugin.ts | 2 +- .../src/KnownPackageDependenciesPlugin.ts | 2 +- .../src/WorkspaceResolvePlugin.ts | 6 +- .../src/index.ts | 4 +- .../test/KnownDescriptionFilePlugin.test.ts | 4 +- .../KnownPackageDependenciesPlugin.test.ts | 4 +- .../src/test/createResolveForTests.ts | 2 +- .../src/AssetProcessor.ts | 6 +- .../src/LocalizationPlugin.ts | 17 ++- .../src/WebpackConfigurationUpdater.ts | 8 +- .../webpack4-localization-plugin/src/index.ts | 6 +- .../src/loaders/InPlaceLocFileLoader.ts | 4 +- .../src/loaders/LocLoader.ts | 8 +- .../src/AsyncImportCompressionPlugin.ts | 4 +- .../src/GenerateLicenseFileForAsset.ts | 2 +- .../src/ModuleMinifierPlugin.ts | 14 +-- .../src/PortableMinifierIdsPlugin.ts | 4 +- .../src/RehydrateAsset.ts | 4 +- .../src/index.ts | 12 +- .../src/test/RehydrateAsset.test.ts | 6 +- .../src/workerPool/WebpackWorker.ts | 4 +- .../src/test/LoadThemedStylesLoader.test.ts | 6 +- .../src/AssetProcessor.ts | 6 +- .../src/LocalizationPlugin.ts | 14 +-- .../src/TrueHashPlugin.ts | 2 +- .../webpack5-localization-plugin/src/index.ts | 8 +- .../src/loaders/IResxLoaderOptions.ts | 2 +- .../src/loaders/LoaderFactory.ts | 2 +- .../src/loaders/default-locale-loader.ts | 4 +- .../src/loaders/loc-loader.ts | 6 +- .../src/loaders/locjson-loader.ts | 2 +- .../src/loaders/resjson-loader.ts | 2 +- .../src/loaders/resx-loader.ts | 6 +- .../src/test/LocalizedAsyncDynamic.test.ts | 6 +- ...cDynamicFormatWithNoLocaleFallback.test.ts | 6 +- .../src/test/LocalizedNoAsync.test.ts | 6 +- .../src/test/LocalizedRuntime.test.ts | 2 +- ...calizedRuntimeDifferentHashLengths.test.ts | 2 +- .../src/test/LocalizedRuntimeTestBase.ts | 10 +- .../src/test/MixedAsync.test.ts | 6 +- .../src/test/MixedAsyncDynamic.test.ts | 6 +- .../src/test/MixedAsyncNonHashed.test.ts | 6 +- .../src/test/NoLocalizedFiles.test.ts | 4 +- .../test/NonHashedNonLocalizedAssets.test.ts | 4 +- .../src/trueHashes.ts | 4 +- .../src/GenerateLicenseFileForAsset.ts | 2 +- .../src/ModuleMinifierPlugin.ts | 8 +- .../src/RehydrateAsset.ts | 4 +- .../src/index.ts | 8 +- .../src/test/AmdExternals.test.ts | 6 +- .../src/test/MockMinifier.ts | 2 +- .../src/test/MultipleRuntimes.test.ts | 6 +- .../src/test/RecordMetadataPlugin.ts | 4 +- .../src/test/WebpackOutputFormats.test.ts | 4 +- 1097 files changed, 3912 insertions(+), 3745 deletions(-) diff --git a/apps/api-documenter/src/cli/ApiDocumenterCommandLine.ts b/apps/api-documenter/src/cli/ApiDocumenterCommandLine.ts index cc6c677411..973a37341c 100644 --- a/apps/api-documenter/src/cli/ApiDocumenterCommandLine.ts +++ b/apps/api-documenter/src/cli/ApiDocumenterCommandLine.ts @@ -3,9 +3,9 @@ import { CommandLineParser } from '@rushstack/ts-command-line'; -import { MarkdownAction } from './MarkdownAction'; -import { YamlAction } from './YamlAction'; -import { GenerateAction } from './GenerateAction'; +import { MarkdownAction } from './MarkdownAction.ts'; +import { YamlAction } from './YamlAction.ts'; +import { GenerateAction } from './GenerateAction.ts'; export class ApiDocumenterCommandLine extends CommandLineParser { public constructor() { diff --git a/apps/api-documenter/src/cli/GenerateAction.ts b/apps/api-documenter/src/cli/GenerateAction.ts index 155b22320d..87968ff547 100644 --- a/apps/api-documenter/src/cli/GenerateAction.ts +++ b/apps/api-documenter/src/cli/GenerateAction.ts @@ -5,11 +5,11 @@ import * as path from 'node:path'; import { FileSystem } from '@rushstack/node-core-library'; -import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine'; -import { BaseAction } from './BaseAction'; -import { DocumenterConfig } from '../documenters/DocumenterConfig'; -import { ExperimentalYamlDocumenter } from '../documenters/ExperimentalYamlDocumenter'; -import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter'; +import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine.ts'; +import { BaseAction } from './BaseAction.ts'; +import { DocumenterConfig } from '../documenters/DocumenterConfig.ts'; +import { ExperimentalYamlDocumenter } from '../documenters/ExperimentalYamlDocumenter.ts'; +import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter.ts'; export class GenerateAction extends BaseAction { public constructor(parser: ApiDocumenterCommandLine) { diff --git a/apps/api-documenter/src/cli/MarkdownAction.ts b/apps/api-documenter/src/cli/MarkdownAction.ts index 6dba1d3ac6..dd57262555 100644 --- a/apps/api-documenter/src/cli/MarkdownAction.ts +++ b/apps/api-documenter/src/cli/MarkdownAction.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine'; -import { BaseAction } from './BaseAction'; -import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter'; +import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine.ts'; +import { BaseAction } from './BaseAction.ts'; +import { MarkdownDocumenter } from '../documenters/MarkdownDocumenter.ts'; export class MarkdownAction extends BaseAction { public constructor(parser: ApiDocumenterCommandLine) { diff --git a/apps/api-documenter/src/cli/YamlAction.ts b/apps/api-documenter/src/cli/YamlAction.ts index 7ed4161fb2..0a51a0b541 100644 --- a/apps/api-documenter/src/cli/YamlAction.ts +++ b/apps/api-documenter/src/cli/YamlAction.ts @@ -6,10 +6,10 @@ import type { IRequiredCommandLineChoiceParameter } from '@rushstack/ts-command-line'; -import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine'; -import { BaseAction } from './BaseAction'; -import { YamlDocumenter, type YamlFormat } from '../documenters/YamlDocumenter'; -import { OfficeYamlDocumenter } from '../documenters/OfficeYamlDocumenter'; +import type { ApiDocumenterCommandLine } from './ApiDocumenterCommandLine.ts'; +import { BaseAction } from './BaseAction.ts'; +import { YamlDocumenter, type YamlFormat } from '../documenters/YamlDocumenter.ts'; +import { OfficeYamlDocumenter } from '../documenters/OfficeYamlDocumenter.ts'; export class YamlAction extends BaseAction { private readonly _officeParameter: CommandLineFlagParameter; diff --git a/apps/api-documenter/src/documenters/DocumenterConfig.ts b/apps/api-documenter/src/documenters/DocumenterConfig.ts index 3a0e32c373..0cbcfb95e1 100644 --- a/apps/api-documenter/src/documenters/DocumenterConfig.ts +++ b/apps/api-documenter/src/documenters/DocumenterConfig.ts @@ -5,7 +5,7 @@ import * as path from 'node:path'; import { JsonSchema, JsonFile, NewlineKind } from '@rushstack/node-core-library'; -import type { IConfigFile } from './IConfigFile'; +import type { IConfigFile } from './IConfigFile.ts'; import apiDocumenterSchema from '../schemas/api-documenter.schema.json'; /** diff --git a/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts b/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts index 5f8769d372..bee23db203 100644 --- a/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/ExperimentalYamlDocumenter.ts @@ -4,10 +4,10 @@ import { type DocComment, DocInlineTag } from '@microsoft/tsdoc'; import { type ApiModel, type ApiItem, ApiItemKind, ApiDocumentedItem } from '@microsoft/api-extractor-model'; -import type { IConfigTableOfContents } from './IConfigFile'; -import type { IYamlTocItem, IYamlTocFile } from '../yaml/IYamlTocFile'; -import { YamlDocumenter } from './YamlDocumenter'; -import type { DocumenterConfig } from './DocumenterConfig'; +import type { IConfigTableOfContents } from './IConfigFile.ts'; +import type { IYamlTocItem, IYamlTocFile } from '../yaml/IYamlTocFile.ts'; +import { YamlDocumenter } from './YamlDocumenter.ts'; +import type { DocumenterConfig } from './DocumenterConfig.ts'; /** * EXPERIMENTAL - This documenter is a prototype of a new config file driven mode of operation for diff --git a/apps/api-documenter/src/documenters/IConfigFile.ts b/apps/api-documenter/src/documenters/IConfigFile.ts index 5f617a3327..cf7e9d49ff 100644 --- a/apps/api-documenter/src/documenters/IConfigFile.ts +++ b/apps/api-documenter/src/documenters/IConfigFile.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IYamlTocFile } from '../yaml/IYamlTocFile'; +import type { IYamlTocFile } from '../yaml/IYamlTocFile.ts'; /** * Typescript interface describing the config schema for toc.yml file format. diff --git a/apps/api-documenter/src/documenters/MarkdownDocumenter.ts b/apps/api-documenter/src/documenters/MarkdownDocumenter.ts index 0deb6ed6ed..00da1bc8e3 100644 --- a/apps/api-documenter/src/documenters/MarkdownDocumenter.ts +++ b/apps/api-documenter/src/documenters/MarkdownDocumenter.ts @@ -49,22 +49,22 @@ import { type IFindApiItemsResult } from '@microsoft/api-extractor-model'; -import { CustomDocNodes } from '../nodes/CustomDocNodeKind'; -import { DocHeading } from '../nodes/DocHeading'; -import { DocTable } from '../nodes/DocTable'; -import { DocEmphasisSpan } from '../nodes/DocEmphasisSpan'; -import { DocTableRow } from '../nodes/DocTableRow'; -import { DocTableCell } from '../nodes/DocTableCell'; -import { DocNoteBox } from '../nodes/DocNoteBox'; -import { Utilities } from '../utils/Utilities'; -import { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter'; -import { PluginLoader } from '../plugin/PluginLoader'; +import { CustomDocNodes } from '../nodes/CustomDocNodeKind.ts'; +import { DocHeading } from '../nodes/DocHeading.ts'; +import { DocTable } from '../nodes/DocTable.ts'; +import { DocEmphasisSpan } from '../nodes/DocEmphasisSpan.ts'; +import { DocTableRow } from '../nodes/DocTableRow.ts'; +import { DocTableCell } from '../nodes/DocTableCell.ts'; +import { DocNoteBox } from '../nodes/DocNoteBox.ts'; +import { Utilities } from '../utils/Utilities.ts'; +import { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter.ts'; +import { PluginLoader } from '../plugin/PluginLoader.ts'; import { type IMarkdownDocumenterFeatureOnBeforeWritePageArgs, MarkdownDocumenterFeatureContext -} from '../plugin/MarkdownDocumenterFeature'; -import type { DocumenterConfig } from './DocumenterConfig'; -import { MarkdownDocumenterAccessor } from '../plugin/MarkdownDocumenterAccessor'; +} from '../plugin/MarkdownDocumenterFeature.ts'; +import type { DocumenterConfig } from './DocumenterConfig.ts'; +import { MarkdownDocumenterAccessor } from '../plugin/MarkdownDocumenterAccessor.ts'; export interface IMarkdownDocumenterOptions { apiModel: ApiModel; diff --git a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts index b8b178a9ce..40b6f86560 100644 --- a/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/OfficeYamlDocumenter.ts @@ -9,9 +9,9 @@ import type { ApiModel } from '@microsoft/api-extractor-model'; import { FileSystem } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import type { IYamlTocItem } from '../yaml/IYamlTocFile'; -import type { IYamlItem } from '../yaml/IYamlApiFile'; -import { YamlDocumenter } from './YamlDocumenter'; +import type { IYamlTocItem } from '../yaml/IYamlTocFile.ts'; +import type { IYamlItem } from '../yaml/IYamlApiFile.ts'; +import { YamlDocumenter } from './YamlDocumenter.ts'; interface ISnippetsFile { /** diff --git a/apps/api-documenter/src/documenters/YamlDocumenter.ts b/apps/api-documenter/src/documenters/YamlDocumenter.ts index 3ca47d8295..060f12d0c0 100644 --- a/apps/api-documenter/src/documenters/YamlDocumenter.ts +++ b/apps/api-documenter/src/documenters/YamlDocumenter.ts @@ -60,11 +60,11 @@ import type { IYamlReference, IYamlReferenceSpec, IYamlInheritanceTree -} from '../yaml/IYamlApiFile'; -import type { IYamlTocFile, IYamlTocItem } from '../yaml/IYamlTocFile'; -import { Utilities } from '../utils/Utilities'; -import { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter'; -import { convertUDPYamlToSDP } from '../utils/ToSdpConvertHelper'; +} from '../yaml/IYamlApiFile.ts'; +import type { IYamlTocFile, IYamlTocItem } from '../yaml/IYamlTocFile.ts'; +import { Utilities } from '../utils/Utilities.ts'; +import { CustomMarkdownEmitter } from '../markdown/CustomMarkdownEmitter.ts'; +import { convertUDPYamlToSDP } from '../utils/ToSdpConvertHelper.ts'; import typescriptSchema from '../yaml/typescript.schema.json'; const yamlApiSchema: JsonSchema = JsonSchema.fromLoadedObject(typescriptSchema); diff --git a/apps/api-documenter/src/index.ts b/apps/api-documenter/src/index.ts index fe1f9a6a20..3ce1a49c79 100644 --- a/apps/api-documenter/src/index.ts +++ b/apps/api-documenter/src/index.ts @@ -9,12 +9,15 @@ * @packageDocumentation */ -export type { IFeatureDefinition, IApiDocumenterPluginManifest } from './plugin/IApiDocumenterPluginManifest'; -export { MarkdownDocumenterAccessor } from './plugin/MarkdownDocumenterAccessor'; +export type { + IFeatureDefinition, + IApiDocumenterPluginManifest +} from './plugin/IApiDocumenterPluginManifest.ts'; +export { MarkdownDocumenterAccessor } from './plugin/MarkdownDocumenterAccessor.ts'; export { MarkdownDocumenterFeatureContext, type IMarkdownDocumenterFeatureOnBeforeWritePageArgs, type IMarkdownDocumenterFeatureOnFinishedArgs, MarkdownDocumenterFeature -} from './plugin/MarkdownDocumenterFeature'; -export { PluginFeature, PluginFeatureContext, PluginFeatureInitialization } from './plugin/PluginFeature'; +} from './plugin/MarkdownDocumenterFeature.ts'; +export { PluginFeature, PluginFeatureContext, PluginFeatureInitialization } from './plugin/PluginFeature.ts'; diff --git a/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts b/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts index 5ec5bc9e90..6e473ff40c 100644 --- a/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts +++ b/apps/api-documenter/src/markdown/CustomMarkdownEmitter.ts @@ -5,18 +5,18 @@ import type { DocNode, DocLinkTag, StringBuilder } from '@microsoft/tsdoc'; import type { ApiModel, IResolveDeclarationReferenceResult, ApiItem } from '@microsoft/api-extractor-model'; import { Colorize } from '@rushstack/terminal'; -import { CustomDocNodeKind } from '../nodes/CustomDocNodeKind'; -import type { DocHeading } from '../nodes/DocHeading'; -import type { DocNoteBox } from '../nodes/DocNoteBox'; -import type { DocTable } from '../nodes/DocTable'; -import type { DocTableCell } from '../nodes/DocTableCell'; -import type { DocEmphasisSpan } from '../nodes/DocEmphasisSpan'; +import { CustomDocNodeKind } from '../nodes/CustomDocNodeKind.ts'; +import type { DocHeading } from '../nodes/DocHeading.ts'; +import type { DocNoteBox } from '../nodes/DocNoteBox.ts'; +import type { DocTable } from '../nodes/DocTable.ts'; +import type { DocTableCell } from '../nodes/DocTableCell.ts'; +import type { DocEmphasisSpan } from '../nodes/DocEmphasisSpan.ts'; import { MarkdownEmitter, type IMarkdownEmitterContext, type IMarkdownEmitterOptions -} from './MarkdownEmitter'; -import type { IndentedWriter } from '../utils/IndentedWriter'; +} from './MarkdownEmitter.ts'; +import type { IndentedWriter } from '../utils/IndentedWriter.ts'; export interface ICustomMarkdownEmitterOptions extends IMarkdownEmitterOptions { contextApiItem: ApiItem | undefined; diff --git a/apps/api-documenter/src/markdown/MarkdownEmitter.ts b/apps/api-documenter/src/markdown/MarkdownEmitter.ts index 663eee17f1..3515c02512 100644 --- a/apps/api-documenter/src/markdown/MarkdownEmitter.ts +++ b/apps/api-documenter/src/markdown/MarkdownEmitter.ts @@ -20,7 +20,7 @@ import { } from '@microsoft/tsdoc'; import { InternalError } from '@rushstack/node-core-library'; -import { IndentedWriter } from '../utils/IndentedWriter'; +import { IndentedWriter } from '../utils/IndentedWriter.ts'; export interface IMarkdownEmitterOptions {} diff --git a/apps/api-documenter/src/markdown/test/CustomMarkdownEmitter.test.ts b/apps/api-documenter/src/markdown/test/CustomMarkdownEmitter.test.ts index 5e545c8d39..55180511eb 100644 --- a/apps/api-documenter/src/markdown/test/CustomMarkdownEmitter.test.ts +++ b/apps/api-documenter/src/markdown/test/CustomMarkdownEmitter.test.ts @@ -14,13 +14,13 @@ import { DocBlockTag } from '@microsoft/tsdoc'; -import { CustomDocNodes } from '../../nodes/CustomDocNodeKind'; -import { DocHeading } from '../../nodes/DocHeading'; -import { DocEmphasisSpan } from '../../nodes/DocEmphasisSpan'; -import { DocTable } from '../../nodes/DocTable'; -import { DocTableRow } from '../../nodes/DocTableRow'; -import { DocTableCell } from '../../nodes/DocTableCell'; -import { CustomMarkdownEmitter } from '../CustomMarkdownEmitter'; +import { CustomDocNodes } from '../../nodes/CustomDocNodeKind.ts'; +import { DocHeading } from '../../nodes/DocHeading.ts'; +import { DocEmphasisSpan } from '../../nodes/DocEmphasisSpan.ts'; +import { DocTable } from '../../nodes/DocTable.ts'; +import { DocTableRow } from '../../nodes/DocTableRow.ts'; +import { DocTableCell } from '../../nodes/DocTableCell.ts'; +import { CustomMarkdownEmitter } from '../CustomMarkdownEmitter.ts'; import { ApiModel, type ApiItem } from '@microsoft/api-extractor-model'; test('render Markdown from TSDoc', () => { diff --git a/apps/api-documenter/src/nodes/CustomDocNodeKind.ts b/apps/api-documenter/src/nodes/CustomDocNodeKind.ts index 9d0af5fdab..582f3b3f1a 100644 --- a/apps/api-documenter/src/nodes/CustomDocNodeKind.ts +++ b/apps/api-documenter/src/nodes/CustomDocNodeKind.ts @@ -3,12 +3,12 @@ import { TSDocConfiguration, DocNodeKind } from '@microsoft/tsdoc'; -import { DocEmphasisSpan } from './DocEmphasisSpan'; -import { DocHeading } from './DocHeading'; -import { DocNoteBox } from './DocNoteBox'; -import { DocTable } from './DocTable'; -import { DocTableCell } from './DocTableCell'; -import { DocTableRow } from './DocTableRow'; +import { DocEmphasisSpan } from './DocEmphasisSpan.ts'; +import { DocHeading } from './DocHeading.ts'; +import { DocNoteBox } from './DocNoteBox.ts'; +import { DocTable } from './DocTable.ts'; +import { DocTableCell } from './DocTableCell.ts'; +import { DocTableRow } from './DocTableRow.ts'; /** * Identifies custom subclasses of {@link DocNode}. diff --git a/apps/api-documenter/src/nodes/DocEmphasisSpan.ts b/apps/api-documenter/src/nodes/DocEmphasisSpan.ts index bc2197689f..4d8d282162 100644 --- a/apps/api-documenter/src/nodes/DocEmphasisSpan.ts +++ b/apps/api-documenter/src/nodes/DocEmphasisSpan.ts @@ -3,7 +3,7 @@ import { type DocNode, DocNodeContainer, type IDocNodeContainerParameters } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; /** * Constructor parameters for {@link DocEmphasisSpan}. diff --git a/apps/api-documenter/src/nodes/DocHeading.ts b/apps/api-documenter/src/nodes/DocHeading.ts index ee40a8bb6b..92aed4c80a 100644 --- a/apps/api-documenter/src/nodes/DocHeading.ts +++ b/apps/api-documenter/src/nodes/DocHeading.ts @@ -3,7 +3,7 @@ import { type IDocNodeParameters, DocNode } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; /** * Constructor parameters for {@link DocHeading}. diff --git a/apps/api-documenter/src/nodes/DocNoteBox.ts b/apps/api-documenter/src/nodes/DocNoteBox.ts index cccece1460..32381229ce 100644 --- a/apps/api-documenter/src/nodes/DocNoteBox.ts +++ b/apps/api-documenter/src/nodes/DocNoteBox.ts @@ -3,7 +3,7 @@ import { type IDocNodeParameters, DocNode, DocSection } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; /** * Constructor parameters for {@link DocNoteBox}. diff --git a/apps/api-documenter/src/nodes/DocTable.ts b/apps/api-documenter/src/nodes/DocTable.ts index 945098a4ad..c597dccc12 100644 --- a/apps/api-documenter/src/nodes/DocTable.ts +++ b/apps/api-documenter/src/nodes/DocTable.ts @@ -3,9 +3,9 @@ import { type IDocNodeParameters, DocNode } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; -import { DocTableRow } from './DocTableRow'; -import type { DocTableCell } from './DocTableCell'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; +import { DocTableRow } from './DocTableRow.ts'; +import type { DocTableCell } from './DocTableCell.ts'; /** * Constructor parameters for {@link DocTable}. diff --git a/apps/api-documenter/src/nodes/DocTableCell.ts b/apps/api-documenter/src/nodes/DocTableCell.ts index f0911dbfd5..45d51036a2 100644 --- a/apps/api-documenter/src/nodes/DocTableCell.ts +++ b/apps/api-documenter/src/nodes/DocTableCell.ts @@ -3,7 +3,7 @@ import { type IDocNodeParameters, DocNode, DocSection } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; /** * Constructor parameters for {@link DocTableCell}. diff --git a/apps/api-documenter/src/nodes/DocTableRow.ts b/apps/api-documenter/src/nodes/DocTableRow.ts index 85bd873d90..62b36b5f12 100644 --- a/apps/api-documenter/src/nodes/DocTableRow.ts +++ b/apps/api-documenter/src/nodes/DocTableRow.ts @@ -3,8 +3,8 @@ import { type IDocNodeParameters, DocNode, DocPlainText } from '@microsoft/tsdoc'; -import { CustomDocNodeKind } from './CustomDocNodeKind'; -import { DocTableCell } from './DocTableCell'; +import { CustomDocNodeKind } from './CustomDocNodeKind.ts'; +import { DocTableCell } from './DocTableCell.ts'; /** * Constructor parameters for {@link DocTableRow}. diff --git a/apps/api-documenter/src/plugin/IApiDocumenterPluginManifest.ts b/apps/api-documenter/src/plugin/IApiDocumenterPluginManifest.ts index c01e7c195e..d33d6164ca 100644 --- a/apps/api-documenter/src/plugin/IApiDocumenterPluginManifest.ts +++ b/apps/api-documenter/src/plugin/IApiDocumenterPluginManifest.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { MarkdownDocumenterFeature } from './MarkdownDocumenterFeature'; -import type { PluginFeatureInitialization } from './PluginFeature'; +import type { MarkdownDocumenterFeature } from './MarkdownDocumenterFeature.ts'; +import type { PluginFeatureInitialization } from './PluginFeature.ts'; /** * Defines a "feature" that is provided by an API Documenter plugin. A feature is a user-defined module diff --git a/apps/api-documenter/src/plugin/MarkdownDocumenterFeature.ts b/apps/api-documenter/src/plugin/MarkdownDocumenterFeature.ts index 0666b8097b..09a567c596 100644 --- a/apps/api-documenter/src/plugin/MarkdownDocumenterFeature.ts +++ b/apps/api-documenter/src/plugin/MarkdownDocumenterFeature.ts @@ -4,8 +4,8 @@ import type { ApiItem, ApiModel } from '@microsoft/api-extractor-model'; import { TypeUuid } from '@rushstack/node-core-library'; -import { PluginFeature } from './PluginFeature'; -import type { MarkdownDocumenterAccessor } from './MarkdownDocumenterAccessor'; +import { PluginFeature } from './PluginFeature.ts'; +import type { MarkdownDocumenterAccessor } from './MarkdownDocumenterAccessor.ts'; /** * Context object for {@link MarkdownDocumenterFeature}. diff --git a/apps/api-documenter/src/plugin/PluginLoader.ts b/apps/api-documenter/src/plugin/PluginLoader.ts index 6d926f6ea6..3c135b79ae 100644 --- a/apps/api-documenter/src/plugin/PluginLoader.ts +++ b/apps/api-documenter/src/plugin/PluginLoader.ts @@ -5,13 +5,13 @@ import * as path from 'node:path'; import * as resolve from 'resolve'; -import type { IApiDocumenterPluginManifest, IFeatureDefinition } from './IApiDocumenterPluginManifest'; +import type { IApiDocumenterPluginManifest, IFeatureDefinition } from './IApiDocumenterPluginManifest.ts'; import { MarkdownDocumenterFeature, type MarkdownDocumenterFeatureContext -} from './MarkdownDocumenterFeature'; -import { PluginFeatureInitialization } from './PluginFeature'; -import type { DocumenterConfig } from '../documenters/DocumenterConfig'; +} from './MarkdownDocumenterFeature.ts'; +import { PluginFeatureInitialization } from './PluginFeature.ts'; +import type { DocumenterConfig } from '../documenters/DocumenterConfig.ts'; interface ILoadedPlugin { packageName: string; diff --git a/apps/api-documenter/src/start.ts b/apps/api-documenter/src/start.ts index e6266aa99f..6d88738076 100644 --- a/apps/api-documenter/src/start.ts +++ b/apps/api-documenter/src/start.ts @@ -6,7 +6,7 @@ import * as os from 'node:os'; import { PackageJsonLookup } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { ApiDocumenterCommandLine } from './cli/ApiDocumenterCommandLine'; +import { ApiDocumenterCommandLine } from './cli/ApiDocumenterCommandLine.ts'; const myPackageVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version; diff --git a/apps/api-documenter/src/utils/ToSdpConvertHelper.ts b/apps/api-documenter/src/utils/ToSdpConvertHelper.ts index 8d12f9df7f..e576c260b6 100644 --- a/apps/api-documenter/src/utils/ToSdpConvertHelper.ts +++ b/apps/api-documenter/src/utils/ToSdpConvertHelper.ts @@ -13,7 +13,7 @@ import type { IYamlSyntax, IYamlReferenceSpec, IYamlReference -} from '../yaml/IYamlApiFile'; +} from '../yaml/IYamlApiFile.ts'; import type { PackageYamlModel, EnumYamlModel, @@ -22,7 +22,7 @@ import type { FieldYamlModel, FunctionYamlModel, CommonYamlModel -} from '../yaml/ISDPYamlFile'; +} from '../yaml/ISDPYamlFile.ts'; export function convertUDPYamlToSDP(folderPath: string): void { convert(folderPath, folderPath); diff --git a/apps/api-documenter/src/utils/test/IndentedWriter.test.ts b/apps/api-documenter/src/utils/test/IndentedWriter.test.ts index f6ac6e7a85..c25b7e0da3 100644 --- a/apps/api-documenter/src/utils/test/IndentedWriter.test.ts +++ b/apps/api-documenter/src/utils/test/IndentedWriter.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IndentedWriter } from '../IndentedWriter'; +import { IndentedWriter } from '../IndentedWriter.ts'; test('01 Demo from docs', () => { const indentedWriter: IndentedWriter = new IndentedWriter(); diff --git a/apps/api-extractor/src/aedoc/PackageDocComment.ts b/apps/api-extractor/src/aedoc/PackageDocComment.ts index 3cc10e3452..75cb891ee1 100644 --- a/apps/api-extractor/src/aedoc/PackageDocComment.ts +++ b/apps/api-extractor/src/aedoc/PackageDocComment.ts @@ -3,8 +3,8 @@ import * as ts from 'typescript'; -import type { Collector } from '../collector/Collector'; -import { ExtractorMessageId } from '../api/ExtractorMessageId'; +import type { Collector } from '../collector/Collector.ts'; +import { ExtractorMessageId } from '../api/ExtractorMessageId.ts'; export class PackageDocComment { /** diff --git a/apps/api-extractor/src/analyzer/AstDeclaration.ts b/apps/api-extractor/src/analyzer/AstDeclaration.ts index 78cc4ed733..e075b719ea 100644 --- a/apps/api-extractor/src/analyzer/AstDeclaration.ts +++ b/apps/api-extractor/src/analyzer/AstDeclaration.ts @@ -5,9 +5,9 @@ import * as ts from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; -import type { AstSymbol } from './AstSymbol'; -import { Span } from './Span'; -import type { AstEntity } from './AstEntity'; +import type { AstSymbol } from './AstSymbol.ts'; +import { Span } from './Span.ts'; +import type { AstEntity } from './AstEntity.ts'; /** * Constructor options for AstDeclaration diff --git a/apps/api-extractor/src/analyzer/AstImport.ts b/apps/api-extractor/src/analyzer/AstImport.ts index 38d4b1928a..6b81d93802 100644 --- a/apps/api-extractor/src/analyzer/AstImport.ts +++ b/apps/api-extractor/src/analyzer/AstImport.ts @@ -3,8 +3,8 @@ import { InternalError } from '@rushstack/node-core-library'; -import type { AstSymbol } from './AstSymbol'; -import { AstSyntheticEntity } from './AstEntity'; +import type { AstSymbol } from './AstSymbol.ts'; +import { AstSyntheticEntity } from './AstEntity.ts'; /** * Indicates the import kind for an `AstImport`. diff --git a/apps/api-extractor/src/analyzer/AstModule.ts b/apps/api-extractor/src/analyzer/AstModule.ts index 1ae3c2e91a..e4d515a96e 100644 --- a/apps/api-extractor/src/analyzer/AstModule.ts +++ b/apps/api-extractor/src/analyzer/AstModule.ts @@ -3,8 +3,8 @@ import type * as ts from 'typescript'; -import type { AstSymbol } from './AstSymbol'; -import type { AstEntity } from './AstEntity'; +import type { AstSymbol } from './AstSymbol.ts'; +import type { AstEntity } from './AstEntity.ts'; /** * Represents information collected by {@link AstSymbolTable.fetchAstModuleExportInfo} diff --git a/apps/api-extractor/src/analyzer/AstNamespaceExport.ts b/apps/api-extractor/src/analyzer/AstNamespaceExport.ts index f339bf6dbb..bcc0d1f5a3 100644 --- a/apps/api-extractor/src/analyzer/AstNamespaceExport.ts +++ b/apps/api-extractor/src/analyzer/AstNamespaceExport.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { AstNamespaceImport, type IAstNamespaceImportOptions } from './AstNamespaceImport'; +import { AstNamespaceImport, type IAstNamespaceImportOptions } from './AstNamespaceImport.ts'; export interface IAstNamespaceExportOptions extends IAstNamespaceImportOptions {} diff --git a/apps/api-extractor/src/analyzer/AstNamespaceImport.ts b/apps/api-extractor/src/analyzer/AstNamespaceImport.ts index 09304b9efc..a16919f9bc 100644 --- a/apps/api-extractor/src/analyzer/AstNamespaceImport.ts +++ b/apps/api-extractor/src/analyzer/AstNamespaceImport.ts @@ -3,9 +3,9 @@ import type * as ts from 'typescript'; -import type { AstModule, IAstModuleExportInfo } from './AstModule'; -import { AstSyntheticEntity } from './AstEntity'; -import type { Collector } from '../collector/Collector'; +import type { AstModule, IAstModuleExportInfo } from './AstModule.ts'; +import { AstSyntheticEntity } from './AstEntity.ts'; +import type { Collector } from '../collector/Collector.ts'; export interface IAstNamespaceImportOptions { readonly astModule: AstModule; diff --git a/apps/api-extractor/src/analyzer/AstReferenceResolver.ts b/apps/api-extractor/src/analyzer/AstReferenceResolver.ts index e51de2f193..8975e62e63 100644 --- a/apps/api-extractor/src/analyzer/AstReferenceResolver.ts +++ b/apps/api-extractor/src/analyzer/AstReferenceResolver.ts @@ -5,14 +5,14 @@ import * as ts from 'typescript'; import * as tsdoc from '@microsoft/tsdoc'; -import type { AstSymbolTable } from './AstSymbolTable'; -import type { AstEntity } from './AstEntity'; -import type { AstDeclaration } from './AstDeclaration'; -import type { WorkingPackage } from '../collector/WorkingPackage'; -import type { AstModule } from './AstModule'; -import type { Collector } from '../collector/Collector'; -import type { DeclarationMetadata } from '../collector/DeclarationMetadata'; -import { AstSymbol } from './AstSymbol'; +import type { AstSymbolTable } from './AstSymbolTable.ts'; +import type { AstEntity } from './AstEntity.ts'; +import type { AstDeclaration } from './AstDeclaration.ts'; +import type { WorkingPackage } from '../collector/WorkingPackage.ts'; +import type { AstModule } from './AstModule.ts'; +import type { Collector } from '../collector/Collector.ts'; +import type { DeclarationMetadata } from '../collector/DeclarationMetadata.ts'; +import { AstSymbol } from './AstSymbol.ts'; /** * Used by `AstReferenceResolver` to report a failed resolution. diff --git a/apps/api-extractor/src/analyzer/AstSymbol.ts b/apps/api-extractor/src/analyzer/AstSymbol.ts index c8052d13db..85eea29890 100644 --- a/apps/api-extractor/src/analyzer/AstSymbol.ts +++ b/apps/api-extractor/src/analyzer/AstSymbol.ts @@ -5,8 +5,8 @@ import type * as ts from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; -import type { AstDeclaration } from './AstDeclaration'; -import { AstEntity } from './AstEntity'; +import type { AstDeclaration } from './AstDeclaration.ts'; +import { AstEntity } from './AstEntity.ts'; /** * Constructor options for AstSymbol diff --git a/apps/api-extractor/src/analyzer/AstSymbolTable.ts b/apps/api-extractor/src/analyzer/AstSymbolTable.ts index 1bfa982b57..1db20cfab1 100644 --- a/apps/api-extractor/src/analyzer/AstSymbolTable.ts +++ b/apps/api-extractor/src/analyzer/AstSymbolTable.ts @@ -7,18 +7,18 @@ import * as ts from 'typescript'; import { type PackageJsonLookup, InternalError } from '@rushstack/node-core-library'; -import { AstDeclaration } from './AstDeclaration'; -import { TypeScriptHelpers } from './TypeScriptHelpers'; -import { AstSymbol } from './AstSymbol'; -import type { AstModule, IAstModuleExportInfo } from './AstModule'; -import { PackageMetadataManager } from './PackageMetadataManager'; -import { ExportAnalyzer } from './ExportAnalyzer'; -import type { AstEntity } from './AstEntity'; -import { AstNamespaceImport } from './AstNamespaceImport'; -import type { MessageRouter } from '../collector/MessageRouter'; -import { TypeScriptInternals, type IGlobalVariableAnalyzer } from './TypeScriptInternals'; -import { SyntaxHelpers } from './SyntaxHelpers'; -import { SourceFileLocationFormatter } from './SourceFileLocationFormatter'; +import { AstDeclaration } from './AstDeclaration.ts'; +import { TypeScriptHelpers } from './TypeScriptHelpers.ts'; +import { AstSymbol } from './AstSymbol.ts'; +import type { AstModule, IAstModuleExportInfo } from './AstModule.ts'; +import { PackageMetadataManager } from './PackageMetadataManager.ts'; +import { ExportAnalyzer } from './ExportAnalyzer.ts'; +import type { AstEntity } from './AstEntity.ts'; +import { AstNamespaceImport } from './AstNamespaceImport.ts'; +import type { MessageRouter } from '../collector/MessageRouter.ts'; +import { TypeScriptInternals, type IGlobalVariableAnalyzer } from './TypeScriptInternals.ts'; +import { SyntaxHelpers } from './SyntaxHelpers.ts'; +import { SourceFileLocationFormatter } from './SourceFileLocationFormatter.ts'; /** * Options for `AstSymbolTable._fetchAstSymbol()` diff --git a/apps/api-extractor/src/analyzer/ExportAnalyzer.ts b/apps/api-extractor/src/analyzer/ExportAnalyzer.ts index 0bc6236aa4..47dda57cd1 100644 --- a/apps/api-extractor/src/analyzer/ExportAnalyzer.ts +++ b/apps/api-extractor/src/analyzer/ExportAnalyzer.ts @@ -5,17 +5,17 @@ import * as ts from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; -import { TypeScriptHelpers } from './TypeScriptHelpers'; -import { AstSymbol } from './AstSymbol'; -import { AstImport, type IAstImportOptions, AstImportKind } from './AstImport'; -import { AstModule, type IAstModuleExportInfo } from './AstModule'; -import { TypeScriptInternals } from './TypeScriptInternals'; -import { SourceFileLocationFormatter } from './SourceFileLocationFormatter'; -import type { IFetchAstSymbolOptions } from './AstSymbolTable'; -import type { AstEntity } from './AstEntity'; -import { AstNamespaceImport } from './AstNamespaceImport'; -import { SyntaxHelpers } from './SyntaxHelpers'; -import { AstNamespaceExport } from './AstNamespaceExport'; +import { TypeScriptHelpers } from './TypeScriptHelpers.ts'; +import { AstSymbol } from './AstSymbol.ts'; +import { AstImport, type IAstImportOptions, AstImportKind } from './AstImport.ts'; +import { AstModule, type IAstModuleExportInfo } from './AstModule.ts'; +import { TypeScriptInternals } from './TypeScriptInternals.ts'; +import { SourceFileLocationFormatter } from './SourceFileLocationFormatter.ts'; +import type { IFetchAstSymbolOptions } from './AstSymbolTable.ts'; +import type { AstEntity } from './AstEntity.ts'; +import { AstNamespaceImport } from './AstNamespaceImport.ts'; +import { SyntaxHelpers } from './SyntaxHelpers.ts'; +import { AstNamespaceExport } from './AstNamespaceExport.ts'; /** * Exposes the minimal APIs from AstSymbolTable that are needed by ExportAnalyzer. diff --git a/apps/api-extractor/src/analyzer/PackageMetadataManager.ts b/apps/api-extractor/src/analyzer/PackageMetadataManager.ts index 22b9be7e89..d86f7e52af 100644 --- a/apps/api-extractor/src/analyzer/PackageMetadataManager.ts +++ b/apps/api-extractor/src/analyzer/PackageMetadataManager.ts @@ -15,9 +15,9 @@ import { type IPackageJsonExports } from '@rushstack/node-core-library'; -import { Extractor } from '../api/Extractor'; -import type { MessageRouter } from '../collector/MessageRouter'; -import { ConsoleMessageId } from '../api/ConsoleMessageId'; +import { Extractor } from '../api/Extractor.ts'; +import type { MessageRouter } from '../collector/MessageRouter.ts'; +import { ConsoleMessageId } from '../api/ConsoleMessageId.ts'; /** * Represents analyzed information for a package.json file. diff --git a/apps/api-extractor/src/analyzer/Span.ts b/apps/api-extractor/src/analyzer/Span.ts index e4d1f2970a..8e00124d7e 100644 --- a/apps/api-extractor/src/analyzer/Span.ts +++ b/apps/api-extractor/src/analyzer/Span.ts @@ -5,7 +5,7 @@ import * as ts from 'typescript'; import { InternalError, Sort, Text } from '@rushstack/node-core-library'; -import { IndentedWriter } from '../generators/IndentedWriter'; +import { IndentedWriter } from '../generators/IndentedWriter.ts'; interface IWriteModifiedTextOptions { writer: IndentedWriter; diff --git a/apps/api-extractor/src/analyzer/TypeScriptHelpers.ts b/apps/api-extractor/src/analyzer/TypeScriptHelpers.ts index 5c28b30d35..1258702fdc 100644 --- a/apps/api-extractor/src/analyzer/TypeScriptHelpers.ts +++ b/apps/api-extractor/src/analyzer/TypeScriptHelpers.ts @@ -7,8 +7,8 @@ import * as ts from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; -import { SourceFileLocationFormatter } from './SourceFileLocationFormatter'; -import { TypeScriptInternals } from './TypeScriptInternals'; +import { SourceFileLocationFormatter } from './SourceFileLocationFormatter.ts'; +import { TypeScriptInternals } from './TypeScriptInternals.ts'; export class TypeScriptHelpers { // Matches TypeScript's encoded names for well-known ECMAScript symbols like diff --git a/apps/api-extractor/src/analyzer/test/PackageMetadataManager.test.ts b/apps/api-extractor/src/analyzer/test/PackageMetadataManager.test.ts index 7f5acef9c2..c579c6e667 100644 --- a/apps/api-extractor/src/analyzer/test/PackageMetadataManager.test.ts +++ b/apps/api-extractor/src/analyzer/test/PackageMetadataManager.test.ts @@ -9,7 +9,7 @@ jest.mock('node:path', () => { }; }); -import { PackageMetadataManager } from '../PackageMetadataManager'; +import { PackageMetadataManager } from '../PackageMetadataManager.ts'; import { FileSystem, type INodePackageJson, NewlineKind } from '@rushstack/node-core-library'; // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/apps/api-extractor/src/analyzer/test/SyntaxHelpers.test.ts b/apps/api-extractor/src/analyzer/test/SyntaxHelpers.test.ts index ab2665b719..dc087090c4 100644 --- a/apps/api-extractor/src/analyzer/test/SyntaxHelpers.test.ts +++ b/apps/api-extractor/src/analyzer/test/SyntaxHelpers.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { SyntaxHelpers } from '../SyntaxHelpers'; +import { SyntaxHelpers } from '../SyntaxHelpers.ts'; describe(SyntaxHelpers.name, () => { it(SyntaxHelpers.makeCamelCaseIdentifier.name, () => { diff --git a/apps/api-extractor/src/api/CompilerState.ts b/apps/api-extractor/src/api/CompilerState.ts index 7862c1c2e8..090ff9dd2d 100644 --- a/apps/api-extractor/src/api/CompilerState.ts +++ b/apps/api-extractor/src/api/CompilerState.ts @@ -8,8 +8,8 @@ import * as ts from 'typescript'; import { JsonFile } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { ExtractorConfig } from './ExtractorConfig'; -import type { IExtractorInvokeOptions } from './Extractor'; +import { ExtractorConfig } from './ExtractorConfig.ts'; +import type { IExtractorInvokeOptions } from './Extractor.ts'; /** * Options for {@link CompilerState.create} diff --git a/apps/api-extractor/src/api/Extractor.ts b/apps/api-extractor/src/api/Extractor.ts index b48a323b09..969397ab7a 100644 --- a/apps/api-extractor/src/api/Extractor.ts +++ b/apps/api-extractor/src/api/Extractor.ts @@ -18,19 +18,19 @@ import { Path } from '@rushstack/node-core-library'; -import { ExtractorConfig, type IExtractorConfigApiReport } from './ExtractorConfig'; -import { Collector } from '../collector/Collector'; -import { DtsRollupGenerator, DtsRollupKind } from '../generators/DtsRollupGenerator'; -import { ApiModelGenerator } from '../generators/ApiModelGenerator'; -import { ApiReportGenerator } from '../generators/ApiReportGenerator'; -import { PackageMetadataManager } from '../analyzer/PackageMetadataManager'; -import { ValidationEnhancer } from '../enhancers/ValidationEnhancer'; -import { DocCommentEnhancer } from '../enhancers/DocCommentEnhancer'; -import { CompilerState } from './CompilerState'; -import type { ExtractorMessage } from './ExtractorMessage'; -import { MessageRouter } from '../collector/MessageRouter'; -import { ConsoleMessageId } from './ConsoleMessageId'; -import { SourceMapper } from '../collector/SourceMapper'; +import { ExtractorConfig, type IExtractorConfigApiReport } from './ExtractorConfig.ts'; +import { Collector } from '../collector/Collector.ts'; +import { DtsRollupGenerator, DtsRollupKind } from '../generators/DtsRollupGenerator.ts'; +import { ApiModelGenerator } from '../generators/ApiModelGenerator.ts'; +import { ApiReportGenerator } from '../generators/ApiReportGenerator.ts'; +import { PackageMetadataManager } from '../analyzer/PackageMetadataManager.ts'; +import { ValidationEnhancer } from '../enhancers/ValidationEnhancer.ts'; +import { DocCommentEnhancer } from '../enhancers/DocCommentEnhancer.ts'; +import { CompilerState } from './CompilerState.ts'; +import type { ExtractorMessage } from './ExtractorMessage.ts'; +import { MessageRouter } from '../collector/MessageRouter.ts'; +import { ConsoleMessageId } from './ConsoleMessageId.ts'; +import { SourceMapper } from '../collector/SourceMapper.ts'; /** * Runtime options for Extractor. diff --git a/apps/api-extractor/src/api/ExtractorConfig.ts b/apps/api-extractor/src/api/ExtractorConfig.ts index 47f16e6c02..5e6066ab50 100644 --- a/apps/api-extractor/src/api/ExtractorConfig.ts +++ b/apps/api-extractor/src/api/ExtractorConfig.ts @@ -28,10 +28,10 @@ import type { IConfigApiReport, IConfigFile, IExtractorMessagesConfig -} from './IConfigFile'; -import { PackageMetadataManager } from '../analyzer/PackageMetadataManager'; -import { MessageRouter } from '../collector/MessageRouter'; -import type { IApiModelGenerationOptions } from '../generators/ApiModelGenerator'; +} from './IConfigFile.ts'; +import { PackageMetadataManager } from '../analyzer/PackageMetadataManager.ts'; +import { MessageRouter } from '../collector/MessageRouter.ts'; +import type { IApiModelGenerationOptions } from '../generators/ApiModelGenerator.ts'; import apiExtractorSchema from '../schemas/api-extractor.schema.json'; /** diff --git a/apps/api-extractor/src/api/ExtractorMessage.ts b/apps/api-extractor/src/api/ExtractorMessage.ts index 1238a1a9c0..c5e3c62e44 100644 --- a/apps/api-extractor/src/api/ExtractorMessage.ts +++ b/apps/api-extractor/src/api/ExtractorMessage.ts @@ -3,10 +3,10 @@ import type * as tsdoc from '@microsoft/tsdoc'; -import type { ExtractorMessageId } from './ExtractorMessageId'; -import { ExtractorLogLevel } from './ExtractorLogLevel'; -import type { ConsoleMessageId } from './ConsoleMessageId'; -import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter'; +import type { ExtractorMessageId } from './ExtractorMessageId.ts'; +import { ExtractorLogLevel } from './ExtractorLogLevel.ts'; +import type { ConsoleMessageId } from './ConsoleMessageId.ts'; +import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter.ts'; /** * Used by {@link ExtractorMessage.properties}. diff --git a/apps/api-extractor/src/api/IConfigFile.ts b/apps/api-extractor/src/api/IConfigFile.ts index f05b943f79..b38aed1a1c 100644 --- a/apps/api-extractor/src/api/IConfigFile.ts +++ b/apps/api-extractor/src/api/IConfigFile.ts @@ -3,7 +3,7 @@ import type { EnumMemberOrder } from '@microsoft/api-extractor-model'; -import type { ExtractorLogLevel } from './ExtractorLogLevel'; +import type { ExtractorLogLevel } from './ExtractorLogLevel.ts'; /** * Determines how the TypeScript compiler engine will be invoked by API Extractor. diff --git a/apps/api-extractor/src/api/test/Extractor-custom-tags.test.ts b/apps/api-extractor/src/api/test/Extractor-custom-tags.test.ts index 357e7c1dc0..df77e75473 100644 --- a/apps/api-extractor/src/api/test/Extractor-custom-tags.test.ts +++ b/apps/api-extractor/src/api/test/Extractor-custom-tags.test.ts @@ -4,7 +4,7 @@ import { StandardTags } from '@microsoft/tsdoc'; import * as path from 'node:path'; -import { ExtractorConfig } from '../ExtractorConfig'; +import { ExtractorConfig } from '../ExtractorConfig.ts'; const testDataFolder: string = path.join(__dirname, 'test-data'); diff --git a/apps/api-extractor/src/api/test/ExtractorConfig-lookup.test.ts b/apps/api-extractor/src/api/test/ExtractorConfig-lookup.test.ts index e93e1d8b4e..b49bff1b16 100644 --- a/apps/api-extractor/src/api/test/ExtractorConfig-lookup.test.ts +++ b/apps/api-extractor/src/api/test/ExtractorConfig-lookup.test.ts @@ -4,7 +4,7 @@ import * as path from 'node:path'; import { Path } from '@rushstack/node-core-library'; -import { ExtractorConfig } from '../ExtractorConfig'; +import { ExtractorConfig } from '../ExtractorConfig.ts'; const testDataFolder: string = path.join(__dirname, 'test-data'); diff --git a/apps/api-extractor/src/api/test/ExtractorConfig-merge.test.ts b/apps/api-extractor/src/api/test/ExtractorConfig-merge.test.ts index d422c2fd54..04bba422cd 100644 --- a/apps/api-extractor/src/api/test/ExtractorConfig-merge.test.ts +++ b/apps/api-extractor/src/api/test/ExtractorConfig-merge.test.ts @@ -3,7 +3,7 @@ import * as path from 'node:path'; -import { ExtractorConfig } from '../ExtractorConfig'; +import { ExtractorConfig } from '../ExtractorConfig.ts'; const testDataFolder: string = path.join(__dirname, 'test-data'); diff --git a/apps/api-extractor/src/api/test/ExtractorConfig-tagsToReport.test.ts b/apps/api-extractor/src/api/test/ExtractorConfig-tagsToReport.test.ts index c941fd9430..28ad17f66d 100644 --- a/apps/api-extractor/src/api/test/ExtractorConfig-tagsToReport.test.ts +++ b/apps/api-extractor/src/api/test/ExtractorConfig-tagsToReport.test.ts @@ -3,7 +3,7 @@ import * as path from 'node:path'; -import { ExtractorConfig } from '../ExtractorConfig'; +import { ExtractorConfig } from '../ExtractorConfig.ts'; const testDataFolder: string = path.join(__dirname, 'test-data'); diff --git a/apps/api-extractor/src/cli/ApiExtractorCommandLine.ts b/apps/api-extractor/src/cli/ApiExtractorCommandLine.ts index 2c434e32ce..19908c67ca 100644 --- a/apps/api-extractor/src/cli/ApiExtractorCommandLine.ts +++ b/apps/api-extractor/src/cli/ApiExtractorCommandLine.ts @@ -7,8 +7,8 @@ import { CommandLineParser, type CommandLineFlagParameter } from '@rushstack/ts- import { AlreadyReportedError, InternalError } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { RunAction } from './RunAction'; -import { InitAction } from './InitAction'; +import { RunAction } from './RunAction.ts'; +import { InitAction } from './InitAction.ts'; export class ApiExtractorCommandLine extends CommandLineParser { private readonly _debugParameter: CommandLineFlagParameter; diff --git a/apps/api-extractor/src/cli/InitAction.ts b/apps/api-extractor/src/cli/InitAction.ts index 834e2a7660..d4805e946c 100644 --- a/apps/api-extractor/src/cli/InitAction.ts +++ b/apps/api-extractor/src/cli/InitAction.ts @@ -7,8 +7,8 @@ import { FileSystem } from '@rushstack/node-core-library'; import { CommandLineAction } from '@rushstack/ts-command-line'; import { Colorize } from '@rushstack/terminal'; -import type { ApiExtractorCommandLine } from './ApiExtractorCommandLine'; -import { ExtractorConfig } from '../api/ExtractorConfig'; +import type { ApiExtractorCommandLine } from './ApiExtractorCommandLine.ts'; +import { ExtractorConfig } from '../api/ExtractorConfig.ts'; export class InitAction extends CommandLineAction { public constructor(parser: ApiExtractorCommandLine) { diff --git a/apps/api-extractor/src/cli/RunAction.ts b/apps/api-extractor/src/cli/RunAction.ts index d0e60bb932..d74a5781c2 100644 --- a/apps/api-extractor/src/cli/RunAction.ts +++ b/apps/api-extractor/src/cli/RunAction.ts @@ -18,9 +18,9 @@ import { type CommandLineFlagParameter } from '@rushstack/ts-command-line'; -import { Extractor, type ExtractorResult } from '../api/Extractor'; -import type { ApiExtractorCommandLine } from './ApiExtractorCommandLine'; -import { ExtractorConfig, type IExtractorConfigPrepareOptions } from '../api/ExtractorConfig'; +import { Extractor, type ExtractorResult } from '../api/Extractor.ts'; +import type { ApiExtractorCommandLine } from './ApiExtractorCommandLine.ts'; +import { ExtractorConfig, type IExtractorConfigPrepareOptions } from '../api/ExtractorConfig.ts'; export class RunAction extends CommandLineAction { private readonly _configFileParameter: CommandLineStringParameter; diff --git a/apps/api-extractor/src/collector/ApiItemMetadata.ts b/apps/api-extractor/src/collector/ApiItemMetadata.ts index 4448f416b6..17f2aa3ae1 100644 --- a/apps/api-extractor/src/collector/ApiItemMetadata.ts +++ b/apps/api-extractor/src/collector/ApiItemMetadata.ts @@ -4,7 +4,7 @@ import type * as tsdoc from '@microsoft/tsdoc'; import type { ReleaseTag } from '@microsoft/api-extractor-model'; -import { VisitorState } from './VisitorState'; +import { VisitorState } from './VisitorState.ts'; /** * Constructor parameters for `ApiItemMetadata`. diff --git a/apps/api-extractor/src/collector/Collector.ts b/apps/api-extractor/src/collector/Collector.ts index b2e872565f..d2633cd0ab 100644 --- a/apps/api-extractor/src/collector/Collector.ts +++ b/apps/api-extractor/src/collector/Collector.ts @@ -14,26 +14,26 @@ import { PackageName } from '@rushstack/node-core-library'; -import { ExtractorMessageId } from '../api/ExtractorMessageId'; -import { CollectorEntity } from './CollectorEntity'; -import { AstSymbolTable } from '../analyzer/AstSymbolTable'; -import type { AstEntity } from '../analyzer/AstEntity'; -import type { AstModule, IAstModuleExportInfo } from '../analyzer/AstModule'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; -import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers'; -import { WorkingPackage } from './WorkingPackage'; -import { PackageDocComment } from '../aedoc/PackageDocComment'; -import { type DeclarationMetadata, InternalDeclarationMetadata } from './DeclarationMetadata'; -import { ApiItemMetadata, type IApiItemMetadataOptions } from './ApiItemMetadata'; -import { SymbolMetadata } from './SymbolMetadata'; -import { TypeScriptInternals, type IGlobalVariableAnalyzer } from '../analyzer/TypeScriptInternals'; -import type { MessageRouter } from './MessageRouter'; -import { AstReferenceResolver } from '../analyzer/AstReferenceResolver'; -import { ExtractorConfig } from '../api/ExtractorConfig'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; -import { AstImport } from '../analyzer/AstImport'; -import type { SourceMapper } from './SourceMapper'; +import { ExtractorMessageId } from '../api/ExtractorMessageId.ts'; +import { CollectorEntity } from './CollectorEntity.ts'; +import { AstSymbolTable } from '../analyzer/AstSymbolTable.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; +import type { AstModule, IAstModuleExportInfo } from '../analyzer/AstModule.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers.ts'; +import { WorkingPackage } from './WorkingPackage.ts'; +import { PackageDocComment } from '../aedoc/PackageDocComment.ts'; +import { type DeclarationMetadata, InternalDeclarationMetadata } from './DeclarationMetadata.ts'; +import { ApiItemMetadata, type IApiItemMetadataOptions } from './ApiItemMetadata.ts'; +import { SymbolMetadata } from './SymbolMetadata.ts'; +import { TypeScriptInternals, type IGlobalVariableAnalyzer } from '../analyzer/TypeScriptInternals.ts'; +import type { MessageRouter } from './MessageRouter.ts'; +import { AstReferenceResolver } from '../analyzer/AstReferenceResolver.ts'; +import { ExtractorConfig } from '../api/ExtractorConfig.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; +import { AstImport } from '../analyzer/AstImport.ts'; +import type { SourceMapper } from './SourceMapper.ts'; /** * Options for Collector constructor. diff --git a/apps/api-extractor/src/collector/CollectorEntity.ts b/apps/api-extractor/src/collector/CollectorEntity.ts index 36bb07353d..84c3cfe6bc 100644 --- a/apps/api-extractor/src/collector/CollectorEntity.ts +++ b/apps/api-extractor/src/collector/CollectorEntity.ts @@ -5,10 +5,10 @@ import * as ts from 'typescript'; import { Sort } from '@rushstack/node-core-library'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import { Collector } from './Collector'; -import type { AstEntity } from '../analyzer/AstEntity'; -import { AstNamespaceExport } from '../analyzer/AstNamespaceExport'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import { Collector } from './Collector.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; +import { AstNamespaceExport } from '../analyzer/AstNamespaceExport.ts'; /** * This is a data structure used by the Collector to track an AstEntity that may be emitted in the *.d.ts file. diff --git a/apps/api-extractor/src/collector/DeclarationMetadata.ts b/apps/api-extractor/src/collector/DeclarationMetadata.ts index f3d44de3a1..4a6436dc56 100644 --- a/apps/api-extractor/src/collector/DeclarationMetadata.ts +++ b/apps/api-extractor/src/collector/DeclarationMetadata.ts @@ -3,7 +3,7 @@ import type * as tsdoc from '@microsoft/tsdoc'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; /** * Stores the Collector's additional analysis for a specific `AstDeclaration` signature. This object is assigned to diff --git a/apps/api-extractor/src/collector/MessageRouter.ts b/apps/api-extractor/src/collector/MessageRouter.ts index bc09397c08..97d81c895b 100644 --- a/apps/api-extractor/src/collector/MessageRouter.ts +++ b/apps/api-extractor/src/collector/MessageRouter.ts @@ -7,19 +7,19 @@ import type * as tsdoc from '@microsoft/tsdoc'; import { Sort, InternalError } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { AstSymbol } from '../analyzer/AstSymbol'; +import { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { AstSymbol } from '../analyzer/AstSymbol.ts'; import { ExtractorMessage, ExtractorMessageCategory, type IExtractorMessageOptions, type IExtractorMessageProperties -} from '../api/ExtractorMessage'; -import { type ExtractorMessageId, allExtractorMessageIds } from '../api/ExtractorMessageId'; -import type { IExtractorMessagesConfig, IConfigMessageReportingRule } from '../api/IConfigFile'; -import type { ISourceLocation, SourceMapper } from './SourceMapper'; -import { ExtractorLogLevel } from '../api/ExtractorLogLevel'; -import { ConsoleMessageId } from '../api/ConsoleMessageId'; +} from '../api/ExtractorMessage.ts'; +import { type ExtractorMessageId, allExtractorMessageIds } from '../api/ExtractorMessageId.ts'; +import type { IExtractorMessagesConfig, IConfigMessageReportingRule } from '../api/IConfigFile.ts'; +import type { ISourceLocation, SourceMapper } from './SourceMapper.ts'; +import { ExtractorLogLevel } from '../api/ExtractorLogLevel.ts'; +import { ConsoleMessageId } from '../api/ConsoleMessageId.ts'; interface IReportingRule { logLevel: ExtractorLogLevel; diff --git a/apps/api-extractor/src/enhancers/DocCommentEnhancer.ts b/apps/api-extractor/src/enhancers/DocCommentEnhancer.ts index 17b228afe3..92a7fa974e 100644 --- a/apps/api-extractor/src/enhancers/DocCommentEnhancer.ts +++ b/apps/api-extractor/src/enhancers/DocCommentEnhancer.ts @@ -6,13 +6,13 @@ import * as ts from 'typescript'; import * as tsdoc from '@microsoft/tsdoc'; import { ReleaseTag } from '@microsoft/api-extractor-model'; -import type { Collector } from '../collector/Collector'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { ApiItemMetadata } from '../collector/ApiItemMetadata'; -import { ExtractorMessageId } from '../api/ExtractorMessageId'; -import { VisitorState } from '../collector/VisitorState'; -import { ResolverFailure } from '../analyzer/AstReferenceResolver'; +import type { Collector } from '../collector/Collector.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { ApiItemMetadata } from '../collector/ApiItemMetadata.ts'; +import { ExtractorMessageId } from '../api/ExtractorMessageId.ts'; +import { VisitorState } from '../collector/VisitorState.ts'; +import { ResolverFailure } from '../analyzer/AstReferenceResolver.ts'; export class DocCommentEnhancer { private readonly _collector: Collector; diff --git a/apps/api-extractor/src/enhancers/ValidationEnhancer.ts b/apps/api-extractor/src/enhancers/ValidationEnhancer.ts index 09d80f862c..a169f95943 100644 --- a/apps/api-extractor/src/enhancers/ValidationEnhancer.ts +++ b/apps/api-extractor/src/enhancers/ValidationEnhancer.ts @@ -7,16 +7,16 @@ import * as ts from 'typescript'; import { ReleaseTag } from '@microsoft/api-extractor-model'; -import type { Collector } from '../collector/Collector'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { ApiItemMetadata } from '../collector/ApiItemMetadata'; -import type { SymbolMetadata } from '../collector/SymbolMetadata'; -import type { CollectorEntity } from '../collector/CollectorEntity'; -import { ExtractorMessageId } from '../api/ExtractorMessageId'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; -import type { IAstModuleExportInfo } from '../analyzer/AstModule'; -import type { AstEntity } from '../analyzer/AstEntity'; +import type { Collector } from '../collector/Collector.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { ApiItemMetadata } from '../collector/ApiItemMetadata.ts'; +import type { SymbolMetadata } from '../collector/SymbolMetadata.ts'; +import type { CollectorEntity } from '../collector/CollectorEntity.ts'; +import { ExtractorMessageId } from '../api/ExtractorMessageId.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; +import type { IAstModuleExportInfo } from '../analyzer/AstModule.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; export class ValidationEnhancer { public static analyze(collector: Collector): void { diff --git a/apps/api-extractor/src/generators/ApiModelGenerator.ts b/apps/api-extractor/src/generators/ApiModelGenerator.ts index e03cfab218..abdbab4527 100644 --- a/apps/api-extractor/src/generators/ApiModelGenerator.ts +++ b/apps/api-extractor/src/generators/ApiModelGenerator.ts @@ -38,20 +38,20 @@ import { } from '@microsoft/api-extractor-model'; import { Path } from '@rushstack/node-core-library'; -import type { Collector } from '../collector/Collector'; -import type { ISourceLocation } from '../collector/SourceMapper'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; -import { ExcerptBuilder, type IExcerptBuilderNodeTransform } from './ExcerptBuilder'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import { DeclarationReferenceGenerator } from './DeclarationReferenceGenerator'; -import type { ApiItemMetadata } from '../collector/ApiItemMetadata'; -import type { DeclarationMetadata } from '../collector/DeclarationMetadata'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; -import type { AstEntity } from '../analyzer/AstEntity'; -import type { AstModule } from '../analyzer/AstModule'; -import { TypeScriptInternals } from '../analyzer/TypeScriptInternals'; -import type { ExtractorConfig } from '../api/ExtractorConfig'; -import { DtsEmitHelpers } from './DtsEmitHelpers'; +import type { Collector } from '../collector/Collector.ts'; +import type { ISourceLocation } from '../collector/SourceMapper.ts'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import { ExcerptBuilder, type IExcerptBuilderNodeTransform } from './ExcerptBuilder.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import { DeclarationReferenceGenerator } from './DeclarationReferenceGenerator.ts'; +import type { ApiItemMetadata } from '../collector/ApiItemMetadata.ts'; +import type { DeclarationMetadata } from '../collector/DeclarationMetadata.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; +import type { AstModule } from '../analyzer/AstModule.ts'; +import { TypeScriptInternals } from '../analyzer/TypeScriptInternals.ts'; +import type { ExtractorConfig } from '../api/ExtractorConfig.ts'; +import { DtsEmitHelpers } from './DtsEmitHelpers.ts'; interface IProcessAstEntityContext { name: string; diff --git a/apps/api-extractor/src/generators/ApiReportGenerator.ts b/apps/api-extractor/src/generators/ApiReportGenerator.ts index a18a62fe05..81039fd522 100644 --- a/apps/api-extractor/src/generators/ApiReportGenerator.ts +++ b/apps/api-extractor/src/generators/ApiReportGenerator.ts @@ -6,24 +6,24 @@ import * as ts from 'typescript'; import { ReleaseTag } from '@microsoft/api-extractor-model'; import { Text, InternalError } from '@rushstack/node-core-library'; -import { Collector } from '../collector/Collector'; -import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers'; -import { Span } from '../analyzer/Span'; -import type { CollectorEntity } from '../collector/CollectorEntity'; -import { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { ApiItemMetadata } from '../collector/ApiItemMetadata'; -import { AstImport } from '../analyzer/AstImport'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import type { ExtractorMessage } from '../api/ExtractorMessage'; -import { IndentedWriter } from './IndentedWriter'; -import { DtsEmitHelpers } from './DtsEmitHelpers'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; -import type { AstEntity } from '../analyzer/AstEntity'; -import type { IAstModuleExportInfo } from '../analyzer/AstModule'; -import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter'; -import { ExtractorMessageId } from '../api/ExtractorMessageId'; -import type { ApiReportVariant } from '../api/IConfigFile'; -import type { SymbolMetadata } from '../collector/SymbolMetadata'; +import { Collector } from '../collector/Collector.ts'; +import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers.ts'; +import { Span } from '../analyzer/Span.ts'; +import type { CollectorEntity } from '../collector/CollectorEntity.ts'; +import { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { ApiItemMetadata } from '../collector/ApiItemMetadata.ts'; +import { AstImport } from '../analyzer/AstImport.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import type { ExtractorMessage } from '../api/ExtractorMessage.ts'; +import { IndentedWriter } from './IndentedWriter.ts'; +import { DtsEmitHelpers } from './DtsEmitHelpers.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; +import type { IAstModuleExportInfo } from '../analyzer/AstModule.ts'; +import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter.ts'; +import { ExtractorMessageId } from '../api/ExtractorMessageId.ts'; +import type { ApiReportVariant } from '../api/IConfigFile.ts'; +import type { SymbolMetadata } from '../collector/SymbolMetadata.ts'; interface IContext { collector: Collector; diff --git a/apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts b/apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts index 6f136fb982..2b148e2a59 100644 --- a/apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts +++ b/apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts @@ -13,11 +13,11 @@ import { } from '@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference'; import { type INodePackageJson, InternalError } from '@rushstack/node-core-library'; -import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers'; -import { TypeScriptInternals } from '../analyzer/TypeScriptInternals'; -import type { Collector } from '../collector/Collector'; -import type { CollectorEntity } from '../collector/CollectorEntity'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; +import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers.ts'; +import { TypeScriptInternals } from '../analyzer/TypeScriptInternals.ts'; +import type { Collector } from '../collector/Collector.ts'; +import type { CollectorEntity } from '../collector/CollectorEntity.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; export class DeclarationReferenceGenerator { public static readonly unknownReference: string = '?'; diff --git a/apps/api-extractor/src/generators/DtsEmitHelpers.ts b/apps/api-extractor/src/generators/DtsEmitHelpers.ts index 7cde437bee..7bcdf66432 100644 --- a/apps/api-extractor/src/generators/DtsEmitHelpers.ts +++ b/apps/api-extractor/src/generators/DtsEmitHelpers.ts @@ -5,14 +5,14 @@ import * as ts from 'typescript'; import { InternalError } from '@rushstack/node-core-library'; -import type { CollectorEntity } from '../collector/CollectorEntity'; -import { AstImport, AstImportKind } from '../analyzer/AstImport'; -import { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { Collector } from '../collector/Collector'; -import type { Span } from '../analyzer/Span'; -import type { IndentedWriter } from './IndentedWriter'; -import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter'; -import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers'; +import type { CollectorEntity } from '../collector/CollectorEntity.ts'; +import { AstImport, AstImportKind } from '../analyzer/AstImport.ts'; +import { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { Collector } from '../collector/Collector.ts'; +import type { Span } from '../analyzer/Span.ts'; +import type { IndentedWriter } from './IndentedWriter.ts'; +import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter.ts'; +import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers.ts'; /** * Some common code shared between DtsRollupGenerator and ApiReportGenerator. diff --git a/apps/api-extractor/src/generators/DtsRollupGenerator.ts b/apps/api-extractor/src/generators/DtsRollupGenerator.ts index 390dd93013..f36ecb0411 100644 --- a/apps/api-extractor/src/generators/DtsRollupGenerator.ts +++ b/apps/api-extractor/src/generators/DtsRollupGenerator.ts @@ -6,22 +6,22 @@ import * as ts from 'typescript'; import { ReleaseTag } from '@microsoft/api-extractor-model'; import { FileSystem, type NewlineKind, InternalError } from '@rushstack/node-core-library'; -import type { Collector } from '../collector/Collector'; -import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers'; -import { IndentDocCommentScope, Span, type SpanModification } from '../analyzer/Span'; -import { AstImport } from '../analyzer/AstImport'; -import type { CollectorEntity } from '../collector/CollectorEntity'; -import { AstDeclaration } from '../analyzer/AstDeclaration'; -import type { ApiItemMetadata } from '../collector/ApiItemMetadata'; -import { AstSymbol } from '../analyzer/AstSymbol'; -import type { SymbolMetadata } from '../collector/SymbolMetadata'; -import { IndentedWriter } from './IndentedWriter'; -import { DtsEmitHelpers } from './DtsEmitHelpers'; -import type { DeclarationMetadata } from '../collector/DeclarationMetadata'; -import { AstNamespaceImport } from '../analyzer/AstNamespaceImport'; -import type { IAstModuleExportInfo } from '../analyzer/AstModule'; -import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter'; -import type { AstEntity } from '../analyzer/AstEntity'; +import type { Collector } from '../collector/Collector.ts'; +import { TypeScriptHelpers } from '../analyzer/TypeScriptHelpers.ts'; +import { IndentDocCommentScope, Span, type SpanModification } from '../analyzer/Span.ts'; +import { AstImport } from '../analyzer/AstImport.ts'; +import type { CollectorEntity } from '../collector/CollectorEntity.ts'; +import { AstDeclaration } from '../analyzer/AstDeclaration.ts'; +import type { ApiItemMetadata } from '../collector/ApiItemMetadata.ts'; +import { AstSymbol } from '../analyzer/AstSymbol.ts'; +import type { SymbolMetadata } from '../collector/SymbolMetadata.ts'; +import { IndentedWriter } from './IndentedWriter.ts'; +import { DtsEmitHelpers } from './DtsEmitHelpers.ts'; +import type { DeclarationMetadata } from '../collector/DeclarationMetadata.ts'; +import { AstNamespaceImport } from '../analyzer/AstNamespaceImport.ts'; +import type { IAstModuleExportInfo } from '../analyzer/AstModule.ts'; +import { SourceFileLocationFormatter } from '../analyzer/SourceFileLocationFormatter.ts'; +import type { AstEntity } from '../analyzer/AstEntity.ts'; /** * Used with DtsRollupGenerator.writeTypingsFile() diff --git a/apps/api-extractor/src/generators/ExcerptBuilder.ts b/apps/api-extractor/src/generators/ExcerptBuilder.ts index ce1662c789..b72ee480a0 100644 --- a/apps/api-extractor/src/generators/ExcerptBuilder.ts +++ b/apps/api-extractor/src/generators/ExcerptBuilder.ts @@ -10,9 +10,9 @@ import { type IExcerptTokenRange } from '@microsoft/api-extractor-model'; -import { Span } from '../analyzer/Span'; -import type { DeclarationReferenceGenerator } from './DeclarationReferenceGenerator'; -import type { AstDeclaration } from '../analyzer/AstDeclaration'; +import { Span } from '../analyzer/Span.ts'; +import type { DeclarationReferenceGenerator } from './DeclarationReferenceGenerator.ts'; +import type { AstDeclaration } from '../analyzer/AstDeclaration.ts'; /** * Used to provide ExcerptBuilder with a list of nodes whose token range we want to capture. diff --git a/apps/api-extractor/src/generators/test/IndentedWriter.test.ts b/apps/api-extractor/src/generators/test/IndentedWriter.test.ts index 7a9145625e..32259aa4b7 100644 --- a/apps/api-extractor/src/generators/test/IndentedWriter.test.ts +++ b/apps/api-extractor/src/generators/test/IndentedWriter.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IndentedWriter } from '../IndentedWriter'; +import { IndentedWriter } from '../IndentedWriter.ts'; test('01 Demo from docs', () => { const indentedWriter: IndentedWriter = new IndentedWriter(); diff --git a/apps/api-extractor/src/index.ts b/apps/api-extractor/src/index.ts index 657d112b6d..3cc5bd284c 100644 --- a/apps/api-extractor/src/index.ts +++ b/apps/api-extractor/src/index.ts @@ -9,30 +9,30 @@ * @packageDocumentation */ -export { ConsoleMessageId } from './api/ConsoleMessageId'; +export { ConsoleMessageId } from './api/ConsoleMessageId.ts'; -export { CompilerState, type ICompilerStateCreateOptions } from './api/CompilerState'; +export { CompilerState, type ICompilerStateCreateOptions } from './api/CompilerState.ts'; -export { Extractor, type IExtractorInvokeOptions, ExtractorResult } from './api/Extractor'; +export { Extractor, type IExtractorInvokeOptions, ExtractorResult } from './api/Extractor.ts'; export { type IExtractorConfigApiReport, type IExtractorConfigPrepareOptions, type IExtractorConfigLoadForFolderOptions, ExtractorConfig -} from './api/ExtractorConfig'; +} from './api/ExtractorConfig.ts'; -export type { IApiModelGenerationOptions } from './generators/ApiModelGenerator'; +export type { IApiModelGenerationOptions } from './generators/ApiModelGenerator.ts'; -export { ExtractorLogLevel } from './api/ExtractorLogLevel'; +export { ExtractorLogLevel } from './api/ExtractorLogLevel.ts'; export { ExtractorMessage, type IExtractorMessageProperties, ExtractorMessageCategory -} from './api/ExtractorMessage'; +} from './api/ExtractorMessage.ts'; -export { ExtractorMessageId } from './api/ExtractorMessageId'; +export { ExtractorMessageId } from './api/ExtractorMessageId.ts'; export type { ApiReportVariant, @@ -46,4 +46,4 @@ export type { IExtractorMessagesConfig, IConfigFile, ReleaseTagForTrim -} from './api/IConfigFile'; +} from './api/IConfigFile.ts'; diff --git a/apps/api-extractor/src/start.ts b/apps/api-extractor/src/start.ts index 2274fea6b2..51eaa23833 100644 --- a/apps/api-extractor/src/start.ts +++ b/apps/api-extractor/src/start.ts @@ -5,8 +5,8 @@ import * as os from 'node:os'; import { Colorize } from '@rushstack/terminal'; -import { ApiExtractorCommandLine } from './cli/ApiExtractorCommandLine'; -import { Extractor } from './api/Extractor'; +import { ApiExtractorCommandLine } from './cli/ApiExtractorCommandLine.ts'; +import { Extractor } from './api/Extractor.ts'; console.log( os.EOL + diff --git a/apps/cpu-profile-summarizer/src/protocol.ts b/apps/cpu-profile-summarizer/src/protocol.ts index eddd992e4a..e7ada20e8e 100644 --- a/apps/cpu-profile-summarizer/src/protocol.ts +++ b/apps/cpu-profile-summarizer/src/protocol.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IProfileSummary } from './types'; +import type { IProfileSummary } from './types.ts'; /** * A message sent to a worker to process a file (or shutdown). diff --git a/apps/cpu-profile-summarizer/src/start.ts b/apps/cpu-profile-summarizer/src/start.ts index 8360ef05e9..2ac6c3c8d6 100644 --- a/apps/cpu-profile-summarizer/src/start.ts +++ b/apps/cpu-profile-summarizer/src/start.ts @@ -14,8 +14,8 @@ import { } from '@rushstack/ts-command-line'; import { WorkerPool } from '@rushstack/worker-pool'; -import type { IMessageFromWorker } from './protocol'; -import type { INodeSummary, IProfileSummary } from './types'; +import type { IMessageFromWorker } from './protocol.ts'; +import type { INodeSummary, IProfileSummary } from './types.ts'; /** * Merges summarized information from multiple profiles into a single collection. diff --git a/apps/cpu-profile-summarizer/src/worker.ts b/apps/cpu-profile-summarizer/src/worker.ts index 65b84db5a6..5e8e3106ca 100644 --- a/apps/cpu-profile-summarizer/src/worker.ts +++ b/apps/cpu-profile-summarizer/src/worker.ts @@ -4,8 +4,8 @@ import fs from 'node:fs'; import worker_threads from 'node:worker_threads'; -import type { ICallFrame, ICpuProfile, INodeSummary, IProfileSummary } from './types'; -import type { IMessageToWorker } from './protocol'; +import type { ICallFrame, ICpuProfile, INodeSummary, IProfileSummary } from './types.ts'; +import type { IMessageToWorker } from './protocol.ts'; interface ILocalTimeInfo { self: number; diff --git a/apps/heft/src/cli/HeftActionRunner.ts b/apps/heft/src/cli/HeftActionRunner.ts index b9d5c7f7f2..132f896bc9 100644 --- a/apps/heft/src/cli/HeftActionRunner.ts +++ b/apps/heft/src/cli/HeftActionRunner.ts @@ -23,25 +23,25 @@ import type { CommandLineStringListParameter } from '@rushstack/ts-command-line'; -import type { InternalHeftSession } from '../pluginFramework/InternalHeftSession'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { LoggingManager } from '../pluginFramework/logging/LoggingManager'; -import type { MetricsCollector } from '../metrics/MetricsCollector'; -import { HeftParameterManager } from '../pluginFramework/HeftParameterManager'; -import { TaskOperationRunner } from '../operations/runners/TaskOperationRunner'; -import { PhaseOperationRunner } from '../operations/runners/PhaseOperationRunner'; -import type { IHeftPhase, HeftPhase } from '../pluginFramework/HeftPhase'; -import type { IHeftAction, IHeftActionOptions } from './actions/IHeftAction'; +import type { InternalHeftSession } from '../pluginFramework/InternalHeftSession.ts'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { LoggingManager } from '../pluginFramework/logging/LoggingManager.ts'; +import type { MetricsCollector } from '../metrics/MetricsCollector.ts'; +import { HeftParameterManager } from '../pluginFramework/HeftParameterManager.ts'; +import { TaskOperationRunner } from '../operations/runners/TaskOperationRunner.ts'; +import { PhaseOperationRunner } from '../operations/runners/PhaseOperationRunner.ts'; +import type { IHeftPhase, HeftPhase } from '../pluginFramework/HeftPhase.ts'; +import type { IHeftAction, IHeftActionOptions } from './actions/IHeftAction.ts'; import type { IHeftLifecycleCleanHookOptions, IHeftLifecycleSession, IHeftLifecycleToolFinishHookOptions, IHeftLifecycleToolStartHookOptions -} from '../pluginFramework/HeftLifecycleSession'; -import type { HeftLifecycle } from '../pluginFramework/HeftLifecycle'; -import type { IHeftTask, HeftTask } from '../pluginFramework/HeftTask'; -import { deleteFilesAsync, type IDeleteOperation } from '../plugins/DeleteFilesPlugin'; -import { Constants } from '../utilities/Constants'; +} from '../pluginFramework/HeftLifecycleSession.ts'; +import type { HeftLifecycle } from '../pluginFramework/HeftLifecycle.ts'; +import type { IHeftTask, HeftTask } from '../pluginFramework/HeftTask.ts'; +import { deleteFilesAsync, type IDeleteOperation } from '../plugins/DeleteFilesPlugin.ts'; +import { Constants } from '../utilities/Constants.ts'; export interface IHeftActionRunnerOptions extends IHeftActionOptions { action: IHeftAction; diff --git a/apps/heft/src/cli/HeftCommandLineParser.ts b/apps/heft/src/cli/HeftCommandLineParser.ts index 67389a7d05..9a83df47fc 100644 --- a/apps/heft/src/cli/HeftCommandLineParser.ts +++ b/apps/heft/src/cli/HeftCommandLineParser.ts @@ -12,17 +12,17 @@ import { import { InternalError, AlreadyReportedError } from '@rushstack/node-core-library'; import { Terminal, ConsoleTerminalProvider, type ITerminal } from '@rushstack/terminal'; -import { MetricsCollector } from '../metrics/MetricsCollector'; -import { HeftConfiguration } from '../configuration/HeftConfiguration'; -import { InternalHeftSession } from '../pluginFramework/InternalHeftSession'; -import { LoggingManager } from '../pluginFramework/logging/LoggingManager'; -import { CleanAction } from './actions/CleanAction'; -import { PhaseAction } from './actions/PhaseAction'; -import { RunAction } from './actions/RunAction'; -import type { IHeftActionOptions } from './actions/IHeftAction'; -import { AliasAction } from './actions/AliasAction'; -import { getToolParameterNamesFromArgs } from '../utilities/CliUtilities'; -import { Constants } from '../utilities/Constants'; +import { MetricsCollector } from '../metrics/MetricsCollector.ts'; +import { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import { InternalHeftSession } from '../pluginFramework/InternalHeftSession.ts'; +import { LoggingManager } from '../pluginFramework/logging/LoggingManager.ts'; +import { CleanAction } from './actions/CleanAction.ts'; +import { PhaseAction } from './actions/PhaseAction.ts'; +import { RunAction } from './actions/RunAction.ts'; +import type { IHeftActionOptions } from './actions/IHeftAction.ts'; +import { AliasAction } from './actions/AliasAction.ts'; +import { getToolParameterNamesFromArgs } from '../utilities/CliUtilities.ts'; +import { Constants } from '../utilities/Constants.ts'; /** * This interfaces specifies values for parameters that must be parsed before the CLI diff --git a/apps/heft/src/cli/actions/CleanAction.ts b/apps/heft/src/cli/actions/CleanAction.ts index 11d1c8e4c2..8f23fe57ee 100644 --- a/apps/heft/src/cli/actions/CleanAction.ts +++ b/apps/heft/src/cli/actions/CleanAction.ts @@ -9,16 +9,16 @@ import { import type { ITerminal } from '@rushstack/terminal'; import { OperationStatus } from '@rushstack/operation-graph'; -import type { IHeftAction, IHeftActionOptions } from './IHeftAction'; -import type { HeftPhase } from '../../pluginFramework/HeftPhase'; -import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession'; -import type { MetricsCollector } from '../../metrics/MetricsCollector'; -import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession'; -import type { HeftTaskSession } from '../../pluginFramework/HeftTaskSession'; -import { Constants } from '../../utilities/Constants'; -import { definePhaseScopingParameters, expandPhases } from './RunAction'; -import { deleteFilesAsync, type IDeleteOperation } from '../../plugins/DeleteFilesPlugin'; -import { ensureCliAbortSignal, initializeHeft, runWithLoggingAsync } from '../HeftActionRunner'; +import type { IHeftAction, IHeftActionOptions } from './IHeftAction.ts'; +import type { HeftPhase } from '../../pluginFramework/HeftPhase.ts'; +import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession.ts'; +import type { MetricsCollector } from '../../metrics/MetricsCollector.ts'; +import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession.ts'; +import type { HeftTaskSession } from '../../pluginFramework/HeftTaskSession.ts'; +import { Constants } from '../../utilities/Constants.ts'; +import { definePhaseScopingParameters, expandPhases } from './RunAction.ts'; +import { deleteFilesAsync, type IDeleteOperation } from '../../plugins/DeleteFilesPlugin.ts'; +import { ensureCliAbortSignal, initializeHeft, runWithLoggingAsync } from '../HeftActionRunner.ts'; export class CleanAction extends CommandLineAction implements IHeftAction { public readonly watch: boolean = false; diff --git a/apps/heft/src/cli/actions/IHeftAction.ts b/apps/heft/src/cli/actions/IHeftAction.ts index ad4a91468d..3e9634326b 100644 --- a/apps/heft/src/cli/actions/IHeftAction.ts +++ b/apps/heft/src/cli/actions/IHeftAction.ts @@ -4,11 +4,11 @@ import type { CommandLineAction } from '@rushstack/ts-command-line'; import type { ITerminal } from '@rushstack/terminal'; -import type { HeftConfiguration } from '../../configuration/HeftConfiguration'; -import type { MetricsCollector } from '../../metrics/MetricsCollector'; -import type { LoggingManager } from '../../pluginFramework/logging/LoggingManager'; -import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession'; -import type { HeftPhase } from '../../pluginFramework/HeftPhase'; +import type { HeftConfiguration } from '../../configuration/HeftConfiguration.ts'; +import type { MetricsCollector } from '../../metrics/MetricsCollector.ts'; +import type { LoggingManager } from '../../pluginFramework/logging/LoggingManager.ts'; +import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession.ts'; +import type { HeftPhase } from '../../pluginFramework/HeftPhase.ts'; export interface IHeftActionOptions { readonly internalHeftSession: InternalHeftSession; diff --git a/apps/heft/src/cli/actions/PhaseAction.ts b/apps/heft/src/cli/actions/PhaseAction.ts index b389151452..c3a0268e89 100644 --- a/apps/heft/src/cli/actions/PhaseAction.ts +++ b/apps/heft/src/cli/actions/PhaseAction.ts @@ -3,10 +3,10 @@ import { CommandLineAction } from '@rushstack/ts-command-line'; -import { HeftActionRunner } from '../HeftActionRunner'; -import { Selection } from '../../utilities/Selection'; -import type { IHeftAction, IHeftActionOptions } from './IHeftAction'; -import type { HeftPhase } from '../../pluginFramework/HeftPhase'; +import { HeftActionRunner } from '../HeftActionRunner.ts'; +import { Selection } from '../../utilities/Selection.ts'; +import type { IHeftAction, IHeftActionOptions } from './IHeftAction.ts'; +import type { HeftPhase } from '../../pluginFramework/HeftPhase.ts'; export interface IPhaseActionOptions extends IHeftActionOptions { phase: HeftPhase; diff --git a/apps/heft/src/cli/actions/RunAction.ts b/apps/heft/src/cli/actions/RunAction.ts index 6454ea5b90..7ac1fd579e 100644 --- a/apps/heft/src/cli/actions/RunAction.ts +++ b/apps/heft/src/cli/actions/RunAction.ts @@ -9,12 +9,12 @@ import { import { AlreadyReportedError } from '@rushstack/node-core-library'; import type { ITerminal } from '@rushstack/terminal'; -import { Selection } from '../../utilities/Selection'; -import { HeftActionRunner } from '../HeftActionRunner'; -import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession'; -import type { IHeftAction, IHeftActionOptions } from './IHeftAction'; -import type { HeftPhase } from '../../pluginFramework/HeftPhase'; -import { Constants } from '../../utilities/Constants'; +import { Selection } from '../../utilities/Selection.ts'; +import { HeftActionRunner } from '../HeftActionRunner.ts'; +import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession.ts'; +import type { IHeftAction, IHeftActionOptions } from './IHeftAction.ts'; +import type { HeftPhase } from '../../pluginFramework/HeftPhase.ts'; +import { Constants } from '../../utilities/Constants.ts'; export function expandPhases( onlyParameter: CommandLineStringListParameter, diff --git a/apps/heft/src/configuration/HeftConfiguration.ts b/apps/heft/src/configuration/HeftConfiguration.ts index e6079a8a3f..1f8c8b415f 100644 --- a/apps/heft/src/configuration/HeftConfiguration.ts +++ b/apps/heft/src/configuration/HeftConfiguration.ts @@ -11,8 +11,8 @@ import { } from '@rushstack/heft-config-file'; import { type IRigConfig, RigConfig } from '@rushstack/rig-package'; -import { Constants } from '../utilities/Constants'; -import { RigPackageResolver, type IRigPackageResolver } from './RigPackageResolver'; +import { Constants } from '../utilities/Constants.ts'; +import { RigPackageResolver, type IRigPackageResolver } from './RigPackageResolver.ts'; /** * @internal diff --git a/apps/heft/src/configuration/HeftPluginConfiguration.ts b/apps/heft/src/configuration/HeftPluginConfiguration.ts index 4bda7fd937..c6671cc8f5 100644 --- a/apps/heft/src/configuration/HeftPluginConfiguration.ts +++ b/apps/heft/src/configuration/HeftPluginConfiguration.ts @@ -9,8 +9,8 @@ import { HeftTaskPluginDefinition, type IHeftLifecyclePluginDefinitionJson, type IHeftTaskPluginDefinitionJson -} from './HeftPluginDefinition'; -import type { IHeftConfigurationJsonPluginSpecifier } from '../utilities/CoreConfigFiles'; +} from './HeftPluginDefinition.ts'; +import type { IHeftConfigurationJsonPluginSpecifier } from '../utilities/CoreConfigFiles.ts'; import heftPluginSchema from '../schemas/heft-plugin.schema.json'; export interface IHeftPluginConfigurationJson { diff --git a/apps/heft/src/configuration/HeftPluginDefinition.ts b/apps/heft/src/configuration/HeftPluginDefinition.ts index 4ce4bd0c19..8f831a8eae 100644 --- a/apps/heft/src/configuration/HeftPluginDefinition.ts +++ b/apps/heft/src/configuration/HeftPluginDefinition.ts @@ -5,10 +5,10 @@ import * as path from 'node:path'; import { InternalError, JsonSchema } from '@rushstack/node-core-library'; -import type { IHeftPlugin } from '../pluginFramework/IHeftPlugin'; -import type { IScopedLogger } from '../pluginFramework/logging/ScopedLogger'; -import type { HeftLifecycleSession } from '../pluginFramework/HeftLifecycleSession'; -import type { HeftTaskSession } from '../pluginFramework/HeftTaskSession'; +import type { IHeftPlugin } from '../pluginFramework/IHeftPlugin.ts'; +import type { IScopedLogger } from '../pluginFramework/logging/ScopedLogger.ts'; +import type { HeftLifecycleSession } from '../pluginFramework/HeftLifecycleSession.ts'; +import type { HeftTaskSession } from '../pluginFramework/HeftTaskSession.ts'; /** * "baseParameter" from heft-plugin.schema.json diff --git a/apps/heft/src/index.ts b/apps/heft/src/index.ts index 0c6006dfc8..58b5c25475 100644 --- a/apps/heft/src/index.ts +++ b/apps/heft/src/index.ts @@ -11,19 +11,19 @@ * @packageDocumentation */ -import type * as ConfigurationFile from './configuration/types'; +import type * as ConfigurationFile from './configuration/types.ts'; export type { ConfigurationFile }; export { HeftConfiguration, type IHeftConfigurationInitializationOptions as _IHeftConfigurationInitializationOptions -} from './configuration/HeftConfiguration'; +} from './configuration/HeftConfiguration.ts'; -export type { IRigPackageResolver } from './configuration/RigPackageResolver'; +export type { IRigPackageResolver } from './configuration/RigPackageResolver.ts'; -export type { IHeftPlugin, IHeftTaskPlugin, IHeftLifecyclePlugin } from './pluginFramework/IHeftPlugin'; +export type { IHeftPlugin, IHeftTaskPlugin, IHeftLifecyclePlugin } from './pluginFramework/IHeftPlugin.ts'; -export type { IHeftParameters, IHeftDefaultParameters } from './pluginFramework/HeftParameterManager'; +export type { IHeftParameters, IHeftDefaultParameters } from './pluginFramework/HeftParameterManager.ts'; export type { IHeftLifecycleSession, @@ -35,7 +35,7 @@ export type { IHeftTaskFinishHookOptions, IHeftPhaseStartHookOptions, IHeftPhaseFinishHookOptions -} from './pluginFramework/HeftLifecycleSession'; +} from './pluginFramework/HeftLifecycleSession.ts'; export type { IHeftParsedCommandLine, @@ -44,15 +44,20 @@ export type { IHeftTaskFileOperations, IHeftTaskRunHookOptions, IHeftTaskRunIncrementalHookOptions -} from './pluginFramework/HeftTaskSession'; +} from './pluginFramework/HeftTaskSession.ts'; -export type { ICopyOperation, IIncrementalCopyOperation } from './plugins/CopyFilesPlugin'; +export type { ICopyOperation, IIncrementalCopyOperation } from './plugins/CopyFilesPlugin.ts'; -export type { IDeleteOperation } from './plugins/DeleteFilesPlugin'; +export type { IDeleteOperation } from './plugins/DeleteFilesPlugin.ts'; -export type { IRunScript, IRunScriptOptions } from './plugins/RunScriptPlugin'; +export type { IRunScript, IRunScriptOptions } from './plugins/RunScriptPlugin.ts'; -export type { IFileSelectionSpecifier, IGlobOptions, GlobFn, WatchGlobFn } from './plugins/FileGlobSpecifier'; +export type { + IFileSelectionSpecifier, + IGlobOptions, + GlobFn, + WatchGlobFn +} from './plugins/FileGlobSpecifier.ts'; export type { IWatchedFileState, @@ -61,16 +66,16 @@ export type { ReaddirStringCallback, StatCallback, IReaddirOptions -} from './utilities/WatchFileSystemAdapter'; +} from './utilities/WatchFileSystemAdapter.ts'; export { type IHeftRecordMetricsHookOptions, type IMetricsData, type IPerformanceData as _IPerformanceData, MetricsCollector as _MetricsCollector -} from './metrics/MetricsCollector'; +} from './metrics/MetricsCollector.ts'; -export type { IScopedLogger } from './pluginFramework/logging/ScopedLogger'; +export type { IScopedLogger } from './pluginFramework/logging/ScopedLogger.ts'; // Re-export types required to use custom command-line parameters export type { @@ -84,8 +89,8 @@ export type { CommandLineStringParameter } from '@rushstack/ts-command-line'; -export type { IHeftTaskOperationMetadata } from './cli/HeftActionRunner'; -export type { IHeftPhaseOperationMetadata } from './cli/HeftActionRunner'; +export type { IHeftTaskOperationMetadata } from './cli/HeftActionRunner.ts'; +export type { IHeftPhaseOperationMetadata } from './cli/HeftActionRunner.ts'; -export type { IHeftTask } from './pluginFramework/HeftTask'; -export type { IHeftPhase } from './pluginFramework/HeftPhase'; +export type { IHeftTask } from './pluginFramework/HeftTask.ts'; +export type { IHeftPhase } from './pluginFramework/HeftPhase.ts'; diff --git a/apps/heft/src/operations/runners/PhaseOperationRunner.ts b/apps/heft/src/operations/runners/PhaseOperationRunner.ts index f6f1ba3ed0..be76ae3357 100644 --- a/apps/heft/src/operations/runners/PhaseOperationRunner.ts +++ b/apps/heft/src/operations/runners/PhaseOperationRunner.ts @@ -7,10 +7,10 @@ import { OperationStatus } from '@rushstack/operation-graph'; -import { deleteFilesAsync, type IDeleteOperation } from '../../plugins/DeleteFilesPlugin'; -import type { HeftPhase } from '../../pluginFramework/HeftPhase'; -import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession'; -import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession'; +import { deleteFilesAsync, type IDeleteOperation } from '../../plugins/DeleteFilesPlugin.ts'; +import type { HeftPhase } from '../../pluginFramework/HeftPhase.ts'; +import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession.ts'; +import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession.ts'; export interface IPhaseOperationRunnerOptions { internalHeftSession: InternalHeftSession; diff --git a/apps/heft/src/operations/runners/TaskOperationRunner.ts b/apps/heft/src/operations/runners/TaskOperationRunner.ts index 5cdd397d9b..3e72972145 100644 --- a/apps/heft/src/operations/runners/TaskOperationRunner.ts +++ b/apps/heft/src/operations/runners/TaskOperationRunner.ts @@ -12,28 +12,28 @@ import { } from '@rushstack/operation-graph'; import { AlreadyReportedError, InternalError } from '@rushstack/node-core-library'; -import type { HeftTask } from '../../pluginFramework/HeftTask'; +import type { HeftTask } from '../../pluginFramework/HeftTask.ts'; import { copyFilesAsync, type ICopyOperation, asAbsoluteCopyOperation, asRelativeCopyOperation -} from '../../plugins/CopyFilesPlugin'; -import { deleteFilesAsync } from '../../plugins/DeleteFilesPlugin'; +} from '../../plugins/CopyFilesPlugin.ts'; +import { deleteFilesAsync } from '../../plugins/DeleteFilesPlugin.ts'; import type { HeftTaskSession, IHeftTaskFileOperations, IHeftTaskRunHookOptions, IHeftTaskRunIncrementalHookOptions -} from '../../pluginFramework/HeftTaskSession'; -import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession'; -import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession'; -import { watchGlobAsync, type IGlobOptions } from '../../plugins/FileGlobSpecifier'; +} from '../../pluginFramework/HeftTaskSession.ts'; +import type { HeftPhaseSession } from '../../pluginFramework/HeftPhaseSession.ts'; +import type { InternalHeftSession } from '../../pluginFramework/InternalHeftSession.ts'; +import { watchGlobAsync, type IGlobOptions } from '../../plugins/FileGlobSpecifier.ts'; import { type IWatchedFileState, type IWatchFileSystem, WatchFileSystemAdapter -} from '../../utilities/WatchFileSystemAdapter'; +} from '../../utilities/WatchFileSystemAdapter.ts'; export interface ITaskOperationRunnerOptions { internalHeftSession: InternalHeftSession; diff --git a/apps/heft/src/pluginFramework/HeftLifecycle.ts b/apps/heft/src/pluginFramework/HeftLifecycle.ts index b762e23f23..1c588e50dc 100644 --- a/apps/heft/src/pluginFramework/HeftLifecycle.ts +++ b/apps/heft/src/pluginFramework/HeftLifecycle.ts @@ -5,15 +5,15 @@ import { AsyncParallelHook, SyncHook } from 'tapable'; import { InternalError } from '@rushstack/node-core-library'; -import { HeftPluginConfiguration } from '../configuration/HeftPluginConfiguration'; -import { HeftPluginHost } from './HeftPluginHost'; -import type { InternalHeftSession } from './InternalHeftSession'; -import type { IHeftConfigurationJsonPluginSpecifier } from '../utilities/CoreConfigFiles'; +import { HeftPluginConfiguration } from '../configuration/HeftPluginConfiguration.ts'; +import { HeftPluginHost } from './HeftPluginHost.ts'; +import type { InternalHeftSession } from './InternalHeftSession.ts'; +import type { IHeftConfigurationJsonPluginSpecifier } from '../utilities/CoreConfigFiles.ts'; import type { HeftLifecyclePluginDefinition, HeftPluginDefinitionBase -} from '../configuration/HeftPluginDefinition'; -import type { IHeftLifecyclePlugin, IHeftPlugin } from './IHeftPlugin'; +} from '../configuration/HeftPluginDefinition.ts'; +import type { IHeftLifecyclePlugin, IHeftPlugin } from './IHeftPlugin.ts'; import { HeftLifecycleSession, type IHeftLifecycleCleanHookOptions, @@ -25,8 +25,8 @@ import { type IHeftTaskFinishHookOptions, type IHeftPhaseStartHookOptions, type IHeftPhaseFinishHookOptions -} from './HeftLifecycleSession'; -import type { ScopedLogger } from './logging/ScopedLogger'; +} from './HeftLifecycleSession.ts'; +import type { ScopedLogger } from './logging/ScopedLogger.ts'; export interface IHeftLifecycleContext { lifecycleSession?: HeftLifecycleSession; diff --git a/apps/heft/src/pluginFramework/HeftLifecycleSession.ts b/apps/heft/src/pluginFramework/HeftLifecycleSession.ts index b95d20d5e1..481882f953 100644 --- a/apps/heft/src/pluginFramework/HeftLifecycleSession.ts +++ b/apps/heft/src/pluginFramework/HeftLifecycleSession.ts @@ -7,14 +7,14 @@ import type { AsyncParallelHook, SyncHook } from 'tapable'; import type { Operation, OperationGroupRecord } from '@rushstack/operation-graph'; -import type { IHeftRecordMetricsHookOptions, MetricsCollector } from '../metrics/MetricsCollector'; -import type { ScopedLogger, IScopedLogger } from './logging/ScopedLogger'; -import type { IInternalHeftSessionOptions } from './InternalHeftSession'; -import type { IHeftParameters } from './HeftParameterManager'; -import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin'; -import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition'; -import type { HeftPluginHost } from './HeftPluginHost'; -import type { IHeftPhaseOperationMetadata, IHeftTaskOperationMetadata } from '../cli/HeftActionRunner'; +import type { IHeftRecordMetricsHookOptions, MetricsCollector } from '../metrics/MetricsCollector.ts'; +import type { ScopedLogger, IScopedLogger } from './logging/ScopedLogger.ts'; +import type { IInternalHeftSessionOptions } from './InternalHeftSession.ts'; +import type { IHeftParameters } from './HeftParameterManager.ts'; +import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin.ts'; +import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition.ts'; +import type { HeftPluginHost } from './HeftPluginHost.ts'; +import type { IHeftPhaseOperationMetadata, IHeftTaskOperationMetadata } from '../cli/HeftActionRunner.ts'; /** * The lifecycle session is responsible for providing session-specific information to Heft lifecycle diff --git a/apps/heft/src/pluginFramework/HeftParameterManager.ts b/apps/heft/src/pluginFramework/HeftParameterManager.ts index edf79c00fd..c3c06b4004 100644 --- a/apps/heft/src/pluginFramework/HeftParameterManager.ts +++ b/apps/heft/src/pluginFramework/HeftParameterManager.ts @@ -19,7 +19,7 @@ import type { HeftPluginDefinitionBase, IChoiceParameterAlternativeJson, IParameterJson -} from '../configuration/HeftPluginDefinition'; +} from '../configuration/HeftPluginDefinition.ts'; /** * The default parameters provided by Heft. diff --git a/apps/heft/src/pluginFramework/HeftPhase.ts b/apps/heft/src/pluginFramework/HeftPhase.ts index e7ac8e65ca..5554c48af1 100644 --- a/apps/heft/src/pluginFramework/HeftPhase.ts +++ b/apps/heft/src/pluginFramework/HeftPhase.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { HeftTask, type IHeftTask } from './HeftTask'; -import type { InternalHeftSession } from './InternalHeftSession'; -import type { IHeftConfigurationJsonPhaseSpecifier } from '../utilities/CoreConfigFiles'; -import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin'; +import { HeftTask, type IHeftTask } from './HeftTask.ts'; +import type { InternalHeftSession } from './InternalHeftSession.ts'; +import type { IHeftConfigurationJsonPhaseSpecifier } from '../utilities/CoreConfigFiles.ts'; +import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin.ts'; const RESERVED_PHASE_NAMES: Set = new Set(['lifecycle']); diff --git a/apps/heft/src/pluginFramework/HeftPhaseSession.ts b/apps/heft/src/pluginFramework/HeftPhaseSession.ts index 4482827883..4aa22f85c4 100644 --- a/apps/heft/src/pluginFramework/HeftPhaseSession.ts +++ b/apps/heft/src/pluginFramework/HeftPhaseSession.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { HeftTaskSession } from './HeftTaskSession'; -import { HeftPluginHost } from './HeftPluginHost'; -import type { ScopedLogger } from './logging/ScopedLogger'; -import type { InternalHeftSession } from './InternalHeftSession'; -import type { HeftPhase } from './HeftPhase'; -import type { HeftTask } from './HeftTask'; -import type { IHeftTaskPlugin } from './IHeftPlugin'; -import type { LoggingManager } from './logging/LoggingManager'; +import { HeftTaskSession } from './HeftTaskSession.ts'; +import { HeftPluginHost } from './HeftPluginHost.ts'; +import type { ScopedLogger } from './logging/ScopedLogger.ts'; +import type { InternalHeftSession } from './InternalHeftSession.ts'; +import type { HeftPhase } from './HeftPhase.ts'; +import type { HeftTask } from './HeftTask.ts'; +import type { IHeftTaskPlugin } from './IHeftPlugin.ts'; +import type { LoggingManager } from './logging/LoggingManager.ts'; export interface IHeftPhaseSessionOptions { internalHeftSession: InternalHeftSession; diff --git a/apps/heft/src/pluginFramework/HeftPluginHost.ts b/apps/heft/src/pluginFramework/HeftPluginHost.ts index 9f3dad8edc..1953ef2c8a 100644 --- a/apps/heft/src/pluginFramework/HeftPluginHost.ts +++ b/apps/heft/src/pluginFramework/HeftPluginHost.ts @@ -6,8 +6,8 @@ import { SyncHook } from 'tapable'; import { InternalError } from '@rushstack/node-core-library'; import type { ITerminal } from '@rushstack/terminal'; -import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition'; -import type { IHeftPlugin } from './IHeftPlugin'; +import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition.ts'; +import type { IHeftPlugin } from './IHeftPlugin.ts'; export abstract class HeftPluginHost { // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/apps/heft/src/pluginFramework/HeftTask.ts b/apps/heft/src/pluginFramework/HeftTask.ts index d5f098bd1d..a0417bc524 100644 --- a/apps/heft/src/pluginFramework/HeftTask.ts +++ b/apps/heft/src/pluginFramework/HeftTask.ts @@ -3,18 +3,18 @@ import { InternalError } from '@rushstack/node-core-library'; -import { HeftPluginConfiguration } from '../configuration/HeftPluginConfiguration'; +import { HeftPluginConfiguration } from '../configuration/HeftPluginConfiguration.ts'; import type { HeftTaskPluginDefinition, HeftPluginDefinitionBase -} from '../configuration/HeftPluginDefinition'; -import type { HeftPhase, IHeftPhase } from './HeftPhase'; +} from '../configuration/HeftPluginDefinition.ts'; +import type { HeftPhase, IHeftPhase } from './HeftPhase.ts'; import type { IHeftConfigurationJsonTaskSpecifier, IHeftConfigurationJsonPluginSpecifier -} from '../utilities/CoreConfigFiles'; -import type { IHeftTaskPlugin } from './IHeftPlugin'; -import type { IScopedLogger } from './logging/ScopedLogger'; +} from '../utilities/CoreConfigFiles.ts'; +import type { IHeftTaskPlugin } from './IHeftPlugin.ts'; +import type { IScopedLogger } from './logging/ScopedLogger.ts'; const RESERVED_TASK_NAMES: Set = new Set(['clean']); diff --git a/apps/heft/src/pluginFramework/HeftTaskSession.ts b/apps/heft/src/pluginFramework/HeftTaskSession.ts index 9898b11a49..a8d5a3e41c 100644 --- a/apps/heft/src/pluginFramework/HeftTaskSession.ts +++ b/apps/heft/src/pluginFramework/HeftTaskSession.ts @@ -5,16 +5,16 @@ import { AsyncParallelHook, AsyncSeriesWaterfallHook } from 'tapable'; import { InternalError } from '@rushstack/node-core-library'; -import type { MetricsCollector } from '../metrics/MetricsCollector'; -import type { IScopedLogger } from './logging/ScopedLogger'; -import type { HeftTask } from './HeftTask'; -import type { IHeftPhaseSessionOptions } from './HeftPhaseSession'; -import type { HeftParameterManager, IHeftParameters } from './HeftParameterManager'; -import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin'; -import type { ICopyOperation } from '../plugins/CopyFilesPlugin'; -import type { HeftPluginHost } from './HeftPluginHost'; -import type { GlobFn, WatchGlobFn } from '../plugins/FileGlobSpecifier'; -import type { IWatchFileSystem } from '../utilities/WatchFileSystemAdapter'; +import type { MetricsCollector } from '../metrics/MetricsCollector.ts'; +import type { IScopedLogger } from './logging/ScopedLogger.ts'; +import type { HeftTask } from './HeftTask.ts'; +import type { IHeftPhaseSessionOptions } from './HeftPhaseSession.ts'; +import type { HeftParameterManager, IHeftParameters } from './HeftParameterManager.ts'; +import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin.ts'; +import type { ICopyOperation } from '../plugins/CopyFilesPlugin.ts'; +import type { HeftPluginHost } from './HeftPluginHost.ts'; +import type { GlobFn, WatchGlobFn } from '../plugins/FileGlobSpecifier.ts'; +import type { IWatchFileSystem } from '../utilities/WatchFileSystemAdapter.ts'; /** * The type of {@link IHeftTaskSession.parsedCommandLine}, which exposes details about the diff --git a/apps/heft/src/pluginFramework/IHeftPlugin.ts b/apps/heft/src/pluginFramework/IHeftPlugin.ts index 34664fc334..72c7765346 100644 --- a/apps/heft/src/pluginFramework/IHeftPlugin.ts +++ b/apps/heft/src/pluginFramework/IHeftPlugin.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { IHeftTaskSession } from './HeftTaskSession'; -import type { IHeftLifecycleSession } from './HeftLifecycleSession'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { IHeftTaskSession } from './HeftTaskSession.ts'; +import type { IHeftLifecycleSession } from './HeftLifecycleSession.ts'; /** * The interface used for all Heft plugins. diff --git a/apps/heft/src/pluginFramework/InternalHeftSession.ts b/apps/heft/src/pluginFramework/InternalHeftSession.ts index 93905e3e94..1890a9a3a9 100644 --- a/apps/heft/src/pluginFramework/InternalHeftSession.ts +++ b/apps/heft/src/pluginFramework/InternalHeftSession.ts @@ -3,22 +3,22 @@ import { Async, InternalError } from '@rushstack/node-core-library'; -import { Constants } from '../utilities/Constants'; -import { HeftLifecycle } from './HeftLifecycle'; -import { HeftPhaseSession } from './HeftPhaseSession'; -import { HeftPhase } from './HeftPhase'; +import { Constants } from '../utilities/Constants.ts'; +import { HeftLifecycle } from './HeftLifecycle.ts'; +import { HeftPhaseSession } from './HeftPhaseSession.ts'; +import { HeftPhase } from './HeftPhase.ts'; import { CoreConfigFiles, type IHeftConfigurationJson, type IHeftConfigurationJsonActionReference -} from '../utilities/CoreConfigFiles'; -import type { MetricsCollector } from '../metrics/MetricsCollector'; -import type { LoggingManager } from './logging/LoggingManager'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition'; -import type { HeftTask } from './HeftTask'; -import type { HeftParameterManager } from './HeftParameterManager'; -import type { IHeftParsedCommandLine } from './HeftTaskSession'; +} from '../utilities/CoreConfigFiles.ts'; +import type { MetricsCollector } from '../metrics/MetricsCollector.ts'; +import type { LoggingManager } from './logging/LoggingManager.ts'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { HeftPluginDefinitionBase } from '../configuration/HeftPluginDefinition.ts'; +import type { HeftTask } from './HeftTask.ts'; +import type { HeftParameterManager } from './HeftParameterManager.ts'; +import type { IHeftParsedCommandLine } from './HeftTaskSession.ts'; export interface IInternalHeftSessionOptions { heftConfiguration: HeftConfiguration; diff --git a/apps/heft/src/pluginFramework/logging/LoggingManager.ts b/apps/heft/src/pluginFramework/logging/LoggingManager.ts index 36c243a808..7b19c34148 100644 --- a/apps/heft/src/pluginFramework/logging/LoggingManager.ts +++ b/apps/heft/src/pluginFramework/logging/LoggingManager.ts @@ -8,7 +8,7 @@ import { } from '@rushstack/node-core-library'; import type { ITerminalProvider } from '@rushstack/terminal'; -import { ScopedLogger } from './ScopedLogger'; +import { ScopedLogger } from './ScopedLogger.ts'; export interface ILoggingManagerOptions { terminalProvider: ITerminalProvider; } diff --git a/apps/heft/src/pluginFramework/logging/MockScopedLogger.ts b/apps/heft/src/pluginFramework/logging/MockScopedLogger.ts index 1ffe5ec6c3..22ba3bb89c 100644 --- a/apps/heft/src/pluginFramework/logging/MockScopedLogger.ts +++ b/apps/heft/src/pluginFramework/logging/MockScopedLogger.ts @@ -3,7 +3,7 @@ import type { ITerminal } from '@rushstack/terminal'; -import type { IScopedLogger } from './ScopedLogger'; +import type { IScopedLogger } from './ScopedLogger.ts'; /** * Implementation of IScopedLogger for use by unit tests. diff --git a/apps/heft/src/pluginFramework/logging/ScopedLogger.ts b/apps/heft/src/pluginFramework/logging/ScopedLogger.ts index 357289ecc5..3bcd02fbf8 100644 --- a/apps/heft/src/pluginFramework/logging/ScopedLogger.ts +++ b/apps/heft/src/pluginFramework/logging/ScopedLogger.ts @@ -8,7 +8,7 @@ import { type ITerminal } from '@rushstack/terminal'; -import { LoggingManager } from './LoggingManager'; +import { LoggingManager } from './LoggingManager.ts'; /** * A logger which is used to emit errors and warnings to the console, as well as to write diff --git a/apps/heft/src/pluginFramework/tests/IncrementalBuildInfo.test.ts b/apps/heft/src/pluginFramework/tests/IncrementalBuildInfo.test.ts index 0a5d3be7f6..516dae6687 100644 --- a/apps/heft/src/pluginFramework/tests/IncrementalBuildInfo.test.ts +++ b/apps/heft/src/pluginFramework/tests/IncrementalBuildInfo.test.ts @@ -10,7 +10,7 @@ import { deserializeBuildInfo, type IIncrementalBuildInfo, type ISerializedIncrementalBuildInfo -} from '../IncrementalBuildInfo'; +} from '../IncrementalBuildInfo.ts'; const posixBuildInfo: IIncrementalBuildInfo = { configHash: 'foobar', diff --git a/apps/heft/src/plugins/CopyFilesPlugin.ts b/apps/heft/src/plugins/CopyFilesPlugin.ts index 2c9d47347a..d3c5d749fb 100644 --- a/apps/heft/src/plugins/CopyFilesPlugin.ts +++ b/apps/heft/src/plugins/CopyFilesPlugin.ts @@ -8,22 +8,22 @@ import * as path from 'node:path'; import { AlreadyExistsBehavior, FileSystem, Async } from '@rushstack/node-core-library'; import type { ITerminal } from '@rushstack/terminal'; -import { Constants } from '../utilities/Constants'; +import { Constants } from '../utilities/Constants.ts'; import { asAbsoluteFileSelectionSpecifier, getFileSelectionSpecifierPathsAsync, type IFileSelectionSpecifier -} from './FileGlobSpecifier'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin'; -import type { IHeftTaskSession, IHeftTaskFileOperations } from '../pluginFramework/HeftTaskSession'; -import type { WatchFileSystemAdapter } from '../utilities/WatchFileSystemAdapter'; +} from './FileGlobSpecifier.ts'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin.ts'; +import type { IHeftTaskSession, IHeftTaskFileOperations } from '../pluginFramework/HeftTaskSession.ts'; +import type { WatchFileSystemAdapter } from '../utilities/WatchFileSystemAdapter.ts'; import { type IIncrementalBuildInfo, makePathRelative, tryReadBuildInfoAsync, writeBuildInfoAsync -} from '../pluginFramework/IncrementalBuildInfo'; +} from '../pluginFramework/IncrementalBuildInfo.ts'; /** * Used to specify a selection of files to copy from a specific source folder to one diff --git a/apps/heft/src/plugins/DeleteFilesPlugin.ts b/apps/heft/src/plugins/DeleteFilesPlugin.ts index 73976dad8f..cf11e4b6df 100644 --- a/apps/heft/src/plugins/DeleteFilesPlugin.ts +++ b/apps/heft/src/plugins/DeleteFilesPlugin.ts @@ -6,15 +6,15 @@ import type * as fs from 'node:fs'; import { FileSystem, Async } from '@rushstack/node-core-library'; import type { ITerminal } from '@rushstack/terminal'; -import { Constants } from '../utilities/Constants'; +import { Constants } from '../utilities/Constants.ts'; import { getFileSelectionSpecifierPathsAsync, asAbsoluteFileSelectionSpecifier, type IFileSelectionSpecifier -} from './FileGlobSpecifier'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin'; -import type { IHeftTaskSession, IHeftTaskFileOperations } from '../pluginFramework/HeftTaskSession'; +} from './FileGlobSpecifier.ts'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin.ts'; +import type { IHeftTaskSession, IHeftTaskFileOperations } from '../pluginFramework/HeftTaskSession.ts'; /** * Used to specify a selection of source files to delete from the specified source folder. diff --git a/apps/heft/src/plugins/FileGlobSpecifier.ts b/apps/heft/src/plugins/FileGlobSpecifier.ts index 96d3223dd5..efdbe19b64 100644 --- a/apps/heft/src/plugins/FileGlobSpecifier.ts +++ b/apps/heft/src/plugins/FileGlobSpecifier.ts @@ -8,7 +8,7 @@ import glob, { type FileSystemAdapter, type Entry } from 'fast-glob'; import { Async } from '@rushstack/node-core-library'; -import type { IWatchFileSystemAdapter, IWatchedFileState } from '../utilities/WatchFileSystemAdapter'; +import type { IWatchFileSystemAdapter, IWatchedFileState } from '../utilities/WatchFileSystemAdapter.ts'; /** * Used to specify a selection of one or more files. diff --git a/apps/heft/src/plugins/NodeServicePlugin.ts b/apps/heft/src/plugins/NodeServicePlugin.ts index dfb8e42760..a7f1e841ab 100644 --- a/apps/heft/src/plugins/NodeServicePlugin.ts +++ b/apps/heft/src/plugins/NodeServicePlugin.ts @@ -6,14 +6,14 @@ import * as process from 'node:process'; import { InternalError, SubprocessTerminator } from '@rushstack/node-core-library'; -import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; +import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin.ts'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; import type { IHeftTaskSession, IHeftTaskRunIncrementalHookOptions -} from '../pluginFramework/HeftTaskSession'; -import type { IScopedLogger } from '../pluginFramework/logging/ScopedLogger'; -import { CoreConfigFiles } from '../utilities/CoreConfigFiles'; +} from '../pluginFramework/HeftTaskSession.ts'; +import type { IScopedLogger } from '../pluginFramework/logging/ScopedLogger.ts'; +import { CoreConfigFiles } from '../utilities/CoreConfigFiles.ts'; const PLUGIN_NAME: 'node-service-plugin' = 'node-service-plugin'; const SERVE_PARAMETER_LONG_NAME: '--serve' = '--serve'; diff --git a/apps/heft/src/plugins/RunScriptPlugin.ts b/apps/heft/src/plugins/RunScriptPlugin.ts index 6c74d9dfd5..5d58d6d6a8 100644 --- a/apps/heft/src/plugins/RunScriptPlugin.ts +++ b/apps/heft/src/plugins/RunScriptPlugin.ts @@ -3,9 +3,9 @@ import * as path from 'node:path'; -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin'; -import type { IHeftTaskSession, IHeftTaskRunHookOptions } from '../pluginFramework/HeftTaskSession'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin.ts'; +import type { IHeftTaskSession, IHeftTaskRunHookOptions } from '../pluginFramework/HeftTaskSession.ts'; interface IRunScriptPluginOptions { scriptPath: string; diff --git a/apps/heft/src/plugins/SetEnvironmentVariablesPlugin.ts b/apps/heft/src/plugins/SetEnvironmentVariablesPlugin.ts index fb83903b83..c128abe5cb 100644 --- a/apps/heft/src/plugins/SetEnvironmentVariablesPlugin.ts +++ b/apps/heft/src/plugins/SetEnvironmentVariablesPlugin.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { HeftConfiguration } from '../configuration/HeftConfiguration'; -import type { IHeftTaskSession } from '../pluginFramework/HeftTaskSession'; -import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin'; +import type { HeftConfiguration } from '../configuration/HeftConfiguration.ts'; +import type { IHeftTaskSession } from '../pluginFramework/HeftTaskSession.ts'; +import type { IHeftTaskPlugin } from '../pluginFramework/IHeftPlugin.ts'; export const PLUGIN_NAME: string = 'set-environment-variables-plugin'; diff --git a/apps/heft/src/start.ts b/apps/heft/src/start.ts index 0fa5a60c55..0fcb7e83ed 100644 --- a/apps/heft/src/start.ts +++ b/apps/heft/src/start.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { HeftCommandLineParser } from './cli/HeftCommandLineParser'; +import { HeftCommandLineParser } from './cli/HeftCommandLineParser.ts'; // Launching via lib-commonjs/start.js bypasses the version selector. Use that for debugging Heft. diff --git a/apps/heft/src/startWithVersionSelector.ts b/apps/heft/src/startWithVersionSelector.ts index e9cc3b950f..bd613ace9f 100644 --- a/apps/heft/src/startWithVersionSelector.ts +++ b/apps/heft/src/startWithVersionSelector.ts @@ -10,8 +10,8 @@ import * as fs from 'node:fs'; import type { IPackageJson } from '@rushstack/node-core-library'; -import { getToolParameterNamesFromArgs } from './utilities/CliUtilities'; -import { Constants } from './utilities/Constants'; +import { getToolParameterNamesFromArgs } from './utilities/CliUtilities.ts'; +import { Constants } from './utilities/Constants.ts'; // Excerpted from PackageJsonLookup.tryGetPackageFolderFor() function tryGetPackageFolderFor(resolvedFileOrFolderPath: string): string | undefined { diff --git a/apps/heft/src/utilities/CoreConfigFiles.ts b/apps/heft/src/utilities/CoreConfigFiles.ts index 3ad45c6fda..bc220cec83 100644 --- a/apps/heft/src/utilities/CoreConfigFiles.ts +++ b/apps/heft/src/utilities/CoreConfigFiles.ts @@ -13,9 +13,9 @@ import { Import, PackageJsonLookup, InternalError } from '@rushstack/node-core-l import type { ITerminal } from '@rushstack/terminal'; import type { IRigConfig } from '@rushstack/rig-package'; -import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin'; -import type { INodeServicePluginConfiguration } from '../plugins/NodeServicePlugin'; -import { Constants } from './Constants'; +import type { IDeleteOperation } from '../plugins/DeleteFilesPlugin.ts'; +import type { INodeServicePluginConfiguration } from '../plugins/NodeServicePlugin.ts'; +import { Constants } from './Constants.ts'; export interface IHeftConfigurationJsonActionReference { actionName: string; diff --git a/apps/heft/src/utilities/test/GitUtilities.test.ts b/apps/heft/src/utilities/test/GitUtilities.test.ts index 9b51b6d1f1..20da47de6d 100644 --- a/apps/heft/src/utilities/test/GitUtilities.test.ts +++ b/apps/heft/src/utilities/test/GitUtilities.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { GitUtilities, type GitignoreFilterFn } from '../GitUtilities'; +import { GitUtilities, type GitignoreFilterFn } from '../GitUtilities.ts'; import { PackageJsonLookup } from '@rushstack/node-core-library'; describe('GitUtilities', () => { diff --git a/apps/lockfile-explorer-web/src/App.tsx b/apps/lockfile-explorer-web/src/App.tsx index 243b65c52d..1af6eaa662 100644 --- a/apps/lockfile-explorer-web/src/App.tsx +++ b/apps/lockfile-explorer-web/src/App.tsx @@ -4,16 +4,16 @@ import React, { useEffect } from 'react'; import styles from './App.scss'; -import { readLockfileAsync } from './parsing/readLockfile'; -import { LockfileViewer } from './containers/LockfileViewer'; -import { PackageJsonViewer } from './containers/PackageJsonViewer'; -import { useAppDispatch } from './store/hooks'; -import { loadEntries } from './store/slices/entrySlice'; -import { LockfileEntryDetailsView } from './containers/LockfileEntryDetailsView'; -import { BookmarksSidebar } from './containers/BookmarksSidebar'; -import { SelectedEntryPreview } from './containers/SelectedEntryPreview'; -import { LogoPanel } from './containers/LogoPanel'; -import { ConnectionModal } from './components/ConnectionModal'; +import { readLockfileAsync } from './parsing/readLockfile.ts'; +import { LockfileViewer } from './containers/LockfileViewer/index.tsx'; +import { PackageJsonViewer } from './containers/PackageJsonViewer/index.tsx'; +import { useAppDispatch } from './store/hooks.ts'; +import { loadEntries } from './store/slices/entrySlice.ts'; +import { LockfileEntryDetailsView } from './containers/LockfileEntryDetailsView/index.tsx'; +import { BookmarksSidebar } from './containers/BookmarksSidebar/index.tsx'; +import { SelectedEntryPreview } from './containers/SelectedEntryPreview/index.tsx'; +import { LogoPanel } from './containers/LogoPanel/index.tsx'; +import { ConnectionModal } from './components/ConnectionModal/index.tsx'; /** * This React component renders the application page. diff --git a/apps/lockfile-explorer-web/src/components/ConnectionModal/index.tsx b/apps/lockfile-explorer-web/src/components/ConnectionModal/index.tsx index afc205df90..0093e66346 100644 --- a/apps/lockfile-explorer-web/src/components/ConnectionModal/index.tsx +++ b/apps/lockfile-explorer-web/src/components/ConnectionModal/index.tsx @@ -7,8 +7,8 @@ import { Button, Text } from '@rushstack/rush-themed-ui'; import styles from './styles.scss'; import appStyles from '../../App.scss'; -import { checkAliveAsync } from '../../helpers/lfxApiClient'; -import type { ReactNull } from '../../types/ReactNull'; +import { checkAliveAsync } from '../../helpers/lfxApiClient.ts'; +import type { ReactNull } from '../../types/ReactNull.ts'; export const ConnectionModal = (): React.ReactElement | ReactNull => { const [isAlive, setIsAlive] = useState(true); diff --git a/apps/lockfile-explorer-web/src/containers/BookmarksSidebar/index.tsx b/apps/lockfile-explorer-web/src/containers/BookmarksSidebar/index.tsx index 79e7bd3a3f..2f45bfda72 100644 --- a/apps/lockfile-explorer-web/src/containers/BookmarksSidebar/index.tsx +++ b/apps/lockfile-explorer-web/src/containers/BookmarksSidebar/index.tsx @@ -7,9 +7,9 @@ import { Button, ScrollArea, Text } from '@rushstack/rush-themed-ui'; import appStyles from '../../App.scss'; import styles from './styles.scss'; -import { useAppDispatch, useAppSelector } from '../../store/hooks'; +import { useAppDispatch, useAppSelector } from '../../store/hooks.ts'; import type { LfxGraphEntry } from '../../packlets/lfx-shared'; -import { clearStackAndPush, removeBookmark } from '../../store/slices/entrySlice'; +import { clearStackAndPush, removeBookmark } from '../../store/slices/entrySlice.ts'; export const BookmarksSidebar = (): React.ReactElement => { const bookmarks = useAppSelector((state) => state.entry.bookmarkedEntries); diff --git a/apps/lockfile-explorer-web/src/containers/LockfileEntryDetailsView/index.tsx b/apps/lockfile-explorer-web/src/containers/LockfileEntryDetailsView/index.tsx index 66bc2f2fc0..01f80b21a7 100644 --- a/apps/lockfile-explorer-web/src/containers/LockfileEntryDetailsView/index.tsx +++ b/apps/lockfile-explorer-web/src/containers/LockfileEntryDetailsView/index.tsx @@ -7,14 +7,19 @@ import { ScrollArea, Text } from '@rushstack/rush-themed-ui'; import styles from './styles.scss'; import appStyles from '../../App.scss'; -import { LfxDependencyKind, type LfxGraphDependency, type LfxGraphEntry } from '../../packlets/lfx-shared'; -import { readPackageJsonAsync } from '../../helpers/lfxApiClient'; -import { useAppDispatch, useAppSelector } from '../../store/hooks'; -import { pushToStack, selectCurrentEntry } from '../../store/slices/entrySlice'; -import { ReactNull } from '../../types/ReactNull'; -import { logDiagnosticInfo } from '../../helpers/logDiagnosticInfo'; -import { displaySpecChanges } from '../../helpers/displaySpecChanges'; -import type { IPackageJson } from '../../types/IPackageJson'; +// eslint-disable-next-line @rushstack/packlets/mechanics +import { + LfxDependencyKind, + type LfxGraphDependency, + type LfxGraphEntry +} from '../../packlets/lfx-shared/index.ts'; +import { readPackageJsonAsync } from '../../helpers/lfxApiClient.ts'; +import { useAppDispatch, useAppSelector } from '../../store/hooks.ts'; +import { pushToStack, selectCurrentEntry } from '../../store/slices/entrySlice.ts'; +import { ReactNull } from '../../types/ReactNull.ts'; +import { logDiagnosticInfo } from '../../helpers/logDiagnosticInfo.ts'; +import { displaySpecChanges } from '../../helpers/displaySpecChanges.ts'; +import type { IPackageJson } from '../../types/IPackageJson.ts'; enum DependencyType { Determinant, diff --git a/apps/lockfile-explorer-web/src/containers/LockfileViewer/index.tsx b/apps/lockfile-explorer-web/src/containers/LockfileViewer/index.tsx index 6467ae37f1..bb4eb7962e 100644 --- a/apps/lockfile-explorer-web/src/containers/LockfileViewer/index.tsx +++ b/apps/lockfile-explorer-web/src/containers/LockfileViewer/index.tsx @@ -6,16 +6,17 @@ import React, { useCallback, useEffect, useRef, useState } from 'react'; import { Tabs, Checkbox, ScrollArea, Input, Text } from '@rushstack/rush-themed-ui'; import styles from './styles.scss'; -import { type LfxGraphEntry, LfxGraphEntryKind } from '../../packlets/lfx-shared'; -import { ReactNull } from '../../types/ReactNull'; -import { useAppDispatch, useAppSelector } from '../../store/hooks'; +// eslint-disable-next-line @rushstack/packlets/mechanics +import { type LfxGraphEntry, LfxGraphEntryKind } from '../../packlets/lfx-shared/index.ts'; +import { ReactNull } from '../../types/ReactNull.ts'; +import { useAppDispatch, useAppSelector } from '../../store/hooks.ts'; import { pushToStack, selectCurrentEntry, selectFilteredEntries, setFilter as selectFilter -} from '../../store/slices/entrySlice'; -import { getFilterFromLocalStorage, saveFilterToLocalStorage } from '../../helpers/localStorage'; +} from '../../store/slices/entrySlice.ts'; +import { getFilterFromLocalStorage, saveFilterToLocalStorage } from '../../helpers/localStorage.ts'; interface ILockfileEntryGroup { entryName: string; diff --git a/apps/lockfile-explorer-web/src/containers/PackageJsonViewer/index.tsx b/apps/lockfile-explorer-web/src/containers/PackageJsonViewer/index.tsx index 906c58fd0a..997dce5bb0 100644 --- a/apps/lockfile-explorer-web/src/containers/PackageJsonViewer/index.tsx +++ b/apps/lockfile-explorer-web/src/containers/PackageJsonViewer/index.tsx @@ -5,16 +5,17 @@ import React, { useCallback, useEffect, useState } from 'react'; import { ScrollArea, Tabs, Text } from '@rushstack/rush-themed-ui'; -import { readPnpmfileAsync, readPackageSpecAsync, readPackageJsonAsync } from '../../helpers/lfxApiClient'; -import { useAppDispatch, useAppSelector } from '../../store/hooks'; -import { selectCurrentEntry } from '../../store/slices/entrySlice'; -import type { IPackageJson } from '../../types/IPackageJson'; -import { compareSpec } from '../../parsing/compareSpec'; -import { loadSpecChanges } from '../../store/slices/workspaceSlice'; -import { displaySpecChanges } from '../../helpers/displaySpecChanges'; -import { isEntryModified } from '../../helpers/isEntryModified'; -import { LfxGraphEntryKind } from '../../packlets/lfx-shared'; -import { CodeBox } from './CodeBox'; +import { readPnpmfileAsync, readPackageSpecAsync, readPackageJsonAsync } from '../../helpers/lfxApiClient.ts'; +import { useAppDispatch, useAppSelector } from '../../store/hooks.ts'; +import { selectCurrentEntry } from '../../store/slices/entrySlice.ts'; +import type { IPackageJson } from '../../types/IPackageJson.ts'; +import { compareSpec } from '../../parsing/compareSpec.ts'; +import { loadSpecChanges } from '../../store/slices/workspaceSlice.ts'; +import { displaySpecChanges } from '../../helpers/displaySpecChanges.ts'; +import { isEntryModified } from '../../helpers/isEntryModified.ts'; +// eslint-disable-next-line @rushstack/packlets/mechanics +import { LfxGraphEntryKind } from '../../packlets/lfx-shared/index.ts'; +import { CodeBox } from './CodeBox.tsx'; import styles from './styles.scss'; const PackageView: { [key: string]: string } = { diff --git a/apps/lockfile-explorer-web/src/containers/SelectedEntryPreview/index.tsx b/apps/lockfile-explorer-web/src/containers/SelectedEntryPreview/index.tsx index 310b7e3cf7..5b9582aebf 100644 --- a/apps/lockfile-explorer-web/src/containers/SelectedEntryPreview/index.tsx +++ b/apps/lockfile-explorer-web/src/containers/SelectedEntryPreview/index.tsx @@ -6,14 +6,14 @@ import React, { useCallback } from 'react'; import { Button, ScrollArea, Text } from '@rushstack/rush-themed-ui'; import styles from './styles.scss'; -import { useAppDispatch, useAppSelector } from '../../store/hooks'; +import { useAppDispatch, useAppSelector } from '../../store/hooks.ts'; import { addBookmark, forwardStack, popStack, removeBookmark, selectCurrentEntry -} from '../../store/slices/entrySlice'; +} from '../../store/slices/entrySlice.ts'; export const SelectedEntryPreview = (): React.ReactElement => { const selectedEntry = useAppSelector(selectCurrentEntry); diff --git a/apps/lockfile-explorer-web/src/helpers/displaySpecChanges.ts b/apps/lockfile-explorer-web/src/helpers/displaySpecChanges.ts index e10bfb54c1..3e163170de 100644 --- a/apps/lockfile-explorer-web/src/helpers/displaySpecChanges.ts +++ b/apps/lockfile-explorer-web/src/helpers/displaySpecChanges.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { ISpecChange } from '../parsing/compareSpec'; +import type { ISpecChange } from '../parsing/compareSpec.ts'; export const displaySpecChanges = (specChanges: Map, dep: string): string => { switch (specChanges.get(dep)?.type) { diff --git a/apps/lockfile-explorer-web/src/helpers/isEntryModified.ts b/apps/lockfile-explorer-web/src/helpers/isEntryModified.ts index 9750281021..43746c7960 100644 --- a/apps/lockfile-explorer-web/src/helpers/isEntryModified.ts +++ b/apps/lockfile-explorer-web/src/helpers/isEntryModified.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { ISpecChange } from '../parsing/compareSpec'; +import type { ISpecChange } from '../parsing/compareSpec.ts'; import type { LfxGraphEntry } from '../packlets/lfx-shared'; export const isEntryModified = ( diff --git a/apps/lockfile-explorer-web/src/helpers/lfxApiClient.ts b/apps/lockfile-explorer-web/src/helpers/lfxApiClient.ts index 9cc6f46955..268061935d 100644 --- a/apps/lockfile-explorer-web/src/helpers/lfxApiClient.ts +++ b/apps/lockfile-explorer-web/src/helpers/lfxApiClient.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IPackageJson } from '../types/IPackageJson'; +import type { IPackageJson } from '../types/IPackageJson.ts'; import type { IJsonLfxWorkspace } from '../packlets/lfx-shared'; const SERVICE_URL: string = window.appContext.serviceUrl; diff --git a/apps/lockfile-explorer-web/src/helpers/localStorage.ts b/apps/lockfile-explorer-web/src/helpers/localStorage.ts index 5242b4e368..4926662d58 100644 --- a/apps/lockfile-explorer-web/src/helpers/localStorage.ts +++ b/apps/lockfile-explorer-web/src/helpers/localStorage.ts @@ -1,7 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { type LfxGraphEntry, LfxGraphEntryKind } from '../packlets/lfx-shared'; +// eslint-disable-next-line @rushstack/packlets/mechanics +import { type LfxGraphEntry, LfxGraphEntryKind } from '../packlets/lfx-shared/index.ts'; const BOOKMARK_KEY: string = 'LOCKFILE_EXPLORER_BOOKMARKS'; diff --git a/apps/lockfile-explorer-web/src/packlets/lfx-shared/IJsonLfxGraph.ts b/apps/lockfile-explorer-web/src/packlets/lfx-shared/IJsonLfxGraph.ts index 35baa33dac..8b68bff2fb 100644 --- a/apps/lockfile-explorer-web/src/packlets/lfx-shared/IJsonLfxGraph.ts +++ b/apps/lockfile-explorer-web/src/packlets/lfx-shared/IJsonLfxGraph.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IJsonLfxWorkspace } from './IJsonLfxWorkspace'; +import type { IJsonLfxWorkspace } from './IJsonLfxWorkspace.ts'; export enum LfxGraphEntryKind { Project = 1, diff --git a/apps/lockfile-explorer-web/src/packlets/lfx-shared/LfxGraph.ts b/apps/lockfile-explorer-web/src/packlets/lfx-shared/LfxGraph.ts index a45371b7ba..23182fe3d1 100644 --- a/apps/lockfile-explorer-web/src/packlets/lfx-shared/LfxGraph.ts +++ b/apps/lockfile-explorer-web/src/packlets/lfx-shared/LfxGraph.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { LfxDependencyKind, IJsonPeerDependencyMeta, LfxGraphEntryKind } from './IJsonLfxGraph'; -import type { IJsonLfxWorkspace } from './IJsonLfxWorkspace'; +import type { LfxDependencyKind, IJsonPeerDependencyMeta, LfxGraphEntryKind } from './IJsonLfxGraph.ts'; +import type { IJsonLfxWorkspace } from './IJsonLfxWorkspace.ts'; export interface ILfxGraphDependencyOptions { name: string; diff --git a/apps/lockfile-explorer-web/src/packlets/lfx-shared/index.ts b/apps/lockfile-explorer-web/src/packlets/lfx-shared/index.ts index 8b56a5e616..f7163a4b03 100644 --- a/apps/lockfile-explorer-web/src/packlets/lfx-shared/index.ts +++ b/apps/lockfile-explorer-web/src/packlets/lfx-shared/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export type { IAppContext } from './IAppContext'; +export type { IAppContext } from './IAppContext.ts'; export { LfxGraphEntryKind, LfxDependencyKind, @@ -9,13 +9,13 @@ export { type IJsonLfxDependency, type IJsonLfxEntry, type IJsonLfxGraph -} from './IJsonLfxGraph'; -export type { IJsonLfxWorkspaceRushConfig, IJsonLfxWorkspace } from './IJsonLfxWorkspace'; +} from './IJsonLfxGraph.ts'; +export type { IJsonLfxWorkspaceRushConfig, IJsonLfxWorkspace } from './IJsonLfxWorkspace.ts'; export { LfxGraph, LfxGraphDependency, LfxGraphEntry, type ILfxGraphDependencyOptions, type ILfxGraphEntryOptions -} from './LfxGraph'; -export * as lfxGraphSerializer from './lfxGraphSerializer'; +} from './LfxGraph.ts'; +export * as lfxGraphSerializer from './lfxGraphSerializer.ts'; diff --git a/apps/lockfile-explorer-web/src/packlets/lfx-shared/lfxGraphSerializer.ts b/apps/lockfile-explorer-web/src/packlets/lfx-shared/lfxGraphSerializer.ts index f2f4be485e..92693c1fa4 100644 --- a/apps/lockfile-explorer-web/src/packlets/lfx-shared/lfxGraphSerializer.ts +++ b/apps/lockfile-explorer-web/src/packlets/lfx-shared/lfxGraphSerializer.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IJsonLfxDependency, IJsonLfxEntry, IJsonLfxGraph } from './IJsonLfxGraph'; -import { type ILfxGraphEntryOptions, LfxGraph, LfxGraphDependency, LfxGraphEntry } from './LfxGraph'; +import type { IJsonLfxDependency, IJsonLfxEntry, IJsonLfxGraph } from './IJsonLfxGraph.ts'; +import { type ILfxGraphEntryOptions, LfxGraph, LfxGraphDependency, LfxGraphEntry } from './LfxGraph.ts'; export function serializeToJson(graph: LfxGraph): IJsonLfxGraph { const jsonLfxEntries: IJsonLfxEntry[] = []; diff --git a/apps/lockfile-explorer-web/src/parsing/compareSpec.ts b/apps/lockfile-explorer-web/src/parsing/compareSpec.ts index d7a1175917..99adc20800 100644 --- a/apps/lockfile-explorer-web/src/parsing/compareSpec.ts +++ b/apps/lockfile-explorer-web/src/parsing/compareSpec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IPackageJson } from '../types/IPackageJson'; +import type { IPackageJson } from '../types/IPackageJson.ts'; export interface ISpecChange { type: 'add' | 'remove' | 'diff'; diff --git a/apps/lockfile-explorer-web/src/parsing/readLockfile.ts b/apps/lockfile-explorer-web/src/parsing/readLockfile.ts index 5c44f0887c..ba2499b5b7 100644 --- a/apps/lockfile-explorer-web/src/parsing/readLockfile.ts +++ b/apps/lockfile-explorer-web/src/parsing/readLockfile.ts @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. +// eslint-disable-next-line @rushstack/packlets/mechanics import { type LfxGraph, lfxGraphSerializer, type IJsonLfxGraph, type LfxGraphEntry -} from '../packlets/lfx-shared'; +} from '../packlets/lfx-shared/index.ts'; const serviceUrl: string = window.appContext.serviceUrl; diff --git a/apps/lockfile-explorer-web/src/parsing/test/compareSpec.test.ts b/apps/lockfile-explorer-web/src/parsing/test/compareSpec.test.ts index 76af0c0889..859de1f765 100644 --- a/apps/lockfile-explorer-web/src/parsing/test/compareSpec.test.ts +++ b/apps/lockfile-explorer-web/src/parsing/test/compareSpec.test.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { IPackageJson } from '../../types/IPackageJson'; -import { compareSpec } from '../compareSpec'; +import type { IPackageJson } from '../../types/IPackageJson.ts'; +import { compareSpec } from '../compareSpec.ts'; const packageJson: IPackageJson = { name: 'testPackage', diff --git a/apps/lockfile-explorer-web/src/start.tsx b/apps/lockfile-explorer-web/src/start.tsx index 988629a1f6..1124304f75 100644 --- a/apps/lockfile-explorer-web/src/start.tsx +++ b/apps/lockfile-explorer-web/src/start.tsx @@ -5,9 +5,9 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; import { Provider } from 'react-redux'; -import { App } from './App'; +import { App } from './App.tsx'; import './start.css'; -import { store } from './store'; +import { store } from './store/index.ts'; const rootDiv: HTMLElement = document.getElementById('root') as HTMLElement; ReactDOM.createRoot(rootDiv).render( diff --git a/apps/lockfile-explorer-web/src/store/hooks.ts b/apps/lockfile-explorer-web/src/store/hooks.ts index 2dd2721fbb..3c561b8a1f 100644 --- a/apps/lockfile-explorer-web/src/store/hooks.ts +++ b/apps/lockfile-explorer-web/src/store/hooks.ts @@ -3,7 +3,7 @@ import { type TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux'; -import type { RootState, AppDispatch } from '.'; +import type { RootState, AppDispatch } from './index.ts'; // Use throughout your app instead of plain `useDispatch` and `useSelector` export const useAppDispatch: () => AppDispatch = useDispatch; diff --git a/apps/lockfile-explorer-web/src/store/index.ts b/apps/lockfile-explorer-web/src/store/index.ts index 769dcea9e3..cc2fb22e30 100644 --- a/apps/lockfile-explorer-web/src/store/index.ts +++ b/apps/lockfile-explorer-web/src/store/index.ts @@ -3,8 +3,8 @@ import { configureStore } from '@reduxjs/toolkit'; -import { entryReducer } from './slices/entrySlice'; -import { workspaceReducer } from './slices/workspaceSlice'; +import { entryReducer } from './slices/entrySlice.ts'; +import { workspaceReducer } from './slices/workspaceSlice.ts'; /* eslint @rushstack/typedef-var: off */ export const store = configureStore({ diff --git a/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts b/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts index 72f07827db..3bf0177090 100644 --- a/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts +++ b/apps/lockfile-explorer-web/src/store/slices/entrySlice.ts @@ -3,13 +3,14 @@ import { createSlice, type PayloadAction, type Reducer } from '@reduxjs/toolkit'; -import { type LfxGraphEntry, LfxGraphEntryKind } from '../../packlets/lfx-shared'; -import type { RootState } from '../index'; +// eslint-disable-next-line @rushstack/packlets/mechanics +import { type LfxGraphEntry, LfxGraphEntryKind } from '../../packlets/lfx-shared/index.ts'; +import type { RootState } from '../index.ts'; import { getBookmarksFromStorage, removeBookmarkFromLocalStorage, saveBookmarkToLocalStorage -} from '../../helpers/localStorage'; +} from '../../helpers/localStorage.ts'; // eslint-disable-next-line @typescript-eslint/consistent-type-definitions type EntryState = { diff --git a/apps/lockfile-explorer-web/src/store/slices/workspaceSlice.ts b/apps/lockfile-explorer-web/src/store/slices/workspaceSlice.ts index 6b202997ef..e7b13c86ba 100644 --- a/apps/lockfile-explorer-web/src/store/slices/workspaceSlice.ts +++ b/apps/lockfile-explorer-web/src/store/slices/workspaceSlice.ts @@ -3,7 +3,7 @@ import { createSlice, type PayloadAction, type Reducer } from '@reduxjs/toolkit'; -import type { ISpecChange } from '../../parsing/compareSpec'; +import type { ISpecChange } from '../../parsing/compareSpec.ts'; // eslint-disable-next-line @typescript-eslint/consistent-type-definitions type WorkspaceState = { diff --git a/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts b/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts index 1add863add..b1977bfbb0 100644 --- a/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts +++ b/apps/lockfile-explorer/src/cli/explorer/ExplorerCommandLineParser.ts @@ -24,12 +24,12 @@ import { type IAppContext, type IJsonLfxGraph, type IJsonLfxWorkspace -} from '../../../build/lfx-shared'; -import * as lockfilePath from '../../graph/lockfilePath'; -import type { IAppState } from '../../state'; -import { init } from '../../utils/init'; -import { PnpmfileRunner } from '../../graph/PnpmfileRunner'; -import * as lfxGraphLoader from '../../graph/lfxGraphLoader'; +} from '../../../build/lfx-shared/index.js'; +import * as lockfilePath from '../../graph/lockfilePath.ts'; +import type { IAppState } from '../../state/index.ts'; +import { init } from '../../utils/init.ts'; +import { PnpmfileRunner } from '../../graph/PnpmfileRunner.ts'; +import * as lfxGraphLoader from '../../graph/lfxGraphLoader.ts'; const EXPLORER_TOOL_FILENAME: 'lockfile-explorer' = 'lockfile-explorer'; diff --git a/apps/lockfile-explorer/src/cli/lint/LintCommandLineParser.ts b/apps/lockfile-explorer/src/cli/lint/LintCommandLineParser.ts index dfd9ae1b4e..64a59816e3 100644 --- a/apps/lockfile-explorer/src/cli/lint/LintCommandLineParser.ts +++ b/apps/lockfile-explorer/src/cli/lint/LintCommandLineParser.ts @@ -5,8 +5,8 @@ import { ConsoleTerminalProvider, type ITerminal, Terminal, Colorize } from '@ru import { CommandLineParser } from '@rushstack/ts-command-line'; import { type IPackageJson, JsonFile, PackageJsonLookup } from '@rushstack/node-core-library'; -import { InitAction } from './actions/InitAction'; -import { CheckAction } from './actions/CheckAction'; +import { InitAction } from './actions/InitAction.ts'; +import { CheckAction } from './actions/CheckAction.ts'; const LINT_TOOL_FILENAME: 'lockfile-lint' = 'lockfile-lint'; diff --git a/apps/lockfile-explorer/src/cli/lint/actions/CheckAction.ts b/apps/lockfile-explorer/src/cli/lint/actions/CheckAction.ts index 261af43cf7..d5da6e7fa3 100644 --- a/apps/lockfile-explorer/src/cli/lint/actions/CheckAction.ts +++ b/apps/lockfile-explorer/src/cli/lint/actions/CheckAction.ts @@ -14,13 +14,13 @@ import { Colorize, type ITerminal } from '@rushstack/terminal'; import { AlreadyReportedError, Async, FileSystem, JsonFile, JsonSchema } from '@rushstack/node-core-library'; import lockfileLintSchema from '../../../schemas/lockfile-lint.schema.json'; -import { LOCKFILE_EXPLORER_FOLDERNAME, LOCKFILE_LINT_JSON_FILENAME } from '../../../constants/common'; -import type { LintCommandLineParser } from '../LintCommandLineParser'; +import { LOCKFILE_EXPLORER_FOLDERNAME, LOCKFILE_LINT_JSON_FILENAME } from '../../../constants/common.ts'; +import type { LintCommandLineParser } from '../LintCommandLineParser.ts'; import { getShrinkwrapFileMajorVersion, parseDependencyPath, splicePackageWithVersion -} from '../../../utils/shrinkwrap'; +} from '../../../utils/shrinkwrap.ts'; export interface ILintRule { rule: 'restrict-versions'; diff --git a/apps/lockfile-explorer/src/cli/lint/actions/InitAction.ts b/apps/lockfile-explorer/src/cli/lint/actions/InitAction.ts index c848dc4773..cd7b56620f 100644 --- a/apps/lockfile-explorer/src/cli/lint/actions/InitAction.ts +++ b/apps/lockfile-explorer/src/cli/lint/actions/InitAction.ts @@ -8,8 +8,8 @@ import { Colorize, type ITerminal } from '@rushstack/terminal'; import { RushConfiguration } from '@rushstack/rush-sdk'; import { FileSystem } from '@rushstack/node-core-library'; -import type { LintCommandLineParser } from '../LintCommandLineParser'; -import { LOCKFILE_EXPLORER_FOLDERNAME, LOCKFILE_LINT_JSON_FILENAME } from '../../../constants/common'; +import type { LintCommandLineParser } from '../LintCommandLineParser.ts'; +import { LOCKFILE_EXPLORER_FOLDERNAME, LOCKFILE_LINT_JSON_FILENAME } from '../../../constants/common.ts'; export class InitAction extends CommandLineAction { private readonly _terminal: ITerminal; diff --git a/apps/lockfile-explorer/src/graph/PnpmfileRunner.ts b/apps/lockfile-explorer/src/graph/PnpmfileRunner.ts index 10c09e7d40..4bdaf5b368 100644 --- a/apps/lockfile-explorer/src/graph/PnpmfileRunner.ts +++ b/apps/lockfile-explorer/src/graph/PnpmfileRunner.ts @@ -6,7 +6,7 @@ import * as path from 'node:path'; import type { IPackageJson } from '@rushstack/node-core-library'; -import type { IRequestMessage, ResponseMessage } from './pnpmfileRunnerWorkerThread'; +import type { IRequestMessage, ResponseMessage } from './pnpmfileRunnerWorkerThread.ts'; interface IPromise { resolve: (r: IPackageJson) => void; diff --git a/apps/lockfile-explorer/src/graph/lfxGraphLoader.ts b/apps/lockfile-explorer/src/graph/lfxGraphLoader.ts index 732548d974..c3725d5744 100644 --- a/apps/lockfile-explorer/src/graph/lfxGraphLoader.ts +++ b/apps/lockfile-explorer/src/graph/lfxGraphLoader.ts @@ -15,8 +15,8 @@ import { LfxDependencyKind, LfxGraphDependency, type IJsonLfxWorkspace -} from '../../build/lfx-shared'; -import * as lockfilePath from './lockfilePath'; +} from '../../build/lfx-shared/index.js'; +import * as lockfilePath from './lockfilePath.ts'; type PnpmLockfileVersion = 54 | 60 | 90; type PeerDependenciesMeta = lockfileTypes.LockfilePackageInfo['peerDependenciesMeta']; diff --git a/apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts b/apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts index a49ff655aa..1a2b3220ee 100644 --- a/apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts +++ b/apps/lockfile-explorer/src/graph/pnpmfileRunnerWorkerThread.ts @@ -6,7 +6,7 @@ import * as path from 'node:path'; import type { IPackageJson } from '@rushstack/node-core-library'; -import type { IPnpmfileModule, IReadPackageContext } from './IPnpmfileModule'; +import type { IPnpmfileModule, IReadPackageContext } from './IPnpmfileModule.ts'; export interface IRequestMessage { id: number; diff --git a/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts b/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts index b56becb620..08df779d0c 100644 --- a/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts +++ b/apps/lockfile-explorer/src/graph/test/PnpmfileRunner.test.ts @@ -3,7 +3,7 @@ import inspector from 'node:inspector'; import { Path } from '@rushstack/node-core-library'; -import { PnpmfileRunner } from '../PnpmfileRunner'; +import { PnpmfileRunner } from '../PnpmfileRunner.ts'; const isDebuggerAttached: boolean = inspector.url() !== undefined; diff --git a/apps/lockfile-explorer/src/graph/test/graphTestHelpers.ts b/apps/lockfile-explorer/src/graph/test/graphTestHelpers.ts index 3c270234e7..c45a696e5c 100644 --- a/apps/lockfile-explorer/src/graph/test/graphTestHelpers.ts +++ b/apps/lockfile-explorer/src/graph/test/graphTestHelpers.ts @@ -12,8 +12,8 @@ import { type IJsonLfxWorkspace, lfxGraphSerializer, type LfxGraph -} from '../../../build/lfx-shared'; -import * as lfxGraphLoader from '../lfxGraphLoader'; +} from '../../../build/lfx-shared/index.js'; +import * as lfxGraphLoader from '../lfxGraphLoader.ts'; const FIXTURES_FOLDER: string = path.resolve(__dirname, '../../../src/graph/test/fixtures/'); diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v5.4.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v5.4.test.ts index be8ce686c4..e0a7442c43 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v5.4.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v5.4.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v6.0.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v6.0.test.ts index 06ed7a48b0..4533cd8bc4 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v6.0.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v6.0.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v9.0.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v9.0.test.ts index 2e27262e8c..f90f66311c 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v9.0.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-edge-cases-v9.0.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v5.4.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v5.4.test.ts index 874661d6d1..6c6f5fb085 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v5.4.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v5.4.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v6.0.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v6.0.test.ts index 12503e6492..d8bff06e67 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v6.0.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v6.0.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v9.0.test.ts b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v9.0.test.ts index 70986c66c8..f94ae9f7f5 100644 --- a/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v9.0.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lfxGraph-website-sample-1-v9.0.test.ts @@ -3,7 +3,7 @@ import type { IJsonLfxWorkspace } from '../../../build/lfx-shared'; -import * as graphTestHelpers from './graphTestHelpers'; +import * as graphTestHelpers from './graphTestHelpers.ts'; export const workspace: IJsonLfxWorkspace = { workspaceRootFullPath: '/repo', diff --git a/apps/lockfile-explorer/src/graph/test/lockfile.test.ts b/apps/lockfile-explorer/src/graph/test/lockfile.test.ts index 7e1a92a090..e37df2d593 100644 --- a/apps/lockfile-explorer/src/graph/test/lockfile.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lockfile.test.ts @@ -3,8 +3,8 @@ import type { LfxGraphEntry } from '../../../build/lfx-shared'; -import { TEST_WORKSPACE, TEST_LOCKFILE } from './testLockfile'; -import * as lfxGraphLoader from '../lfxGraphLoader'; +import { TEST_WORKSPACE, TEST_LOCKFILE } from './testLockfile.ts'; +import * as lfxGraphLoader from '../lfxGraphLoader.ts'; describe('LockfileGeneration', () => { it('creates a valid bi-directional graph', () => { diff --git a/apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts b/apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts index 008e3b848f..72411ac3d8 100644 --- a/apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts +++ b/apps/lockfile-explorer/src/graph/test/lockfilePath.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import * as lockfilePath from '../lockfilePath'; +import * as lockfilePath from '../lockfilePath.ts'; describe('lockfilePath', () => { it('getBaseNameOf', () => { diff --git a/apps/lockfile-explorer/src/graph/test/serializeToJson.test.ts b/apps/lockfile-explorer/src/graph/test/serializeToJson.test.ts index a6be195f84..d6cb6a13a7 100644 --- a/apps/lockfile-explorer/src/graph/test/serializeToJson.test.ts +++ b/apps/lockfile-explorer/src/graph/test/serializeToJson.test.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { lfxGraphSerializer, type LfxGraph } from '../../../build/lfx-shared'; +import { lfxGraphSerializer, type LfxGraph } from '../../../build/lfx-shared/index.js'; -import * as lfxGraphLoader from '../lfxGraphLoader'; -import { TEST_WORKSPACE, TEST_LOCKFILE } from './testLockfile'; +import * as lfxGraphLoader from '../lfxGraphLoader.ts'; +import { TEST_WORKSPACE, TEST_LOCKFILE } from './testLockfile.ts'; describe('serializeToJson', () => { it('serializes a simple graph', () => { diff --git a/apps/lockfile-explorer/src/start-explorer.ts b/apps/lockfile-explorer/src/start-explorer.ts index 217080ff9d..6f1d6438c9 100644 --- a/apps/lockfile-explorer/src/start-explorer.ts +++ b/apps/lockfile-explorer/src/start-explorer.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ExplorerCommandLineParser } from './cli/explorer/ExplorerCommandLineParser'; +import { ExplorerCommandLineParser } from './cli/explorer/ExplorerCommandLineParser.ts'; const parser: ExplorerCommandLineParser = new ExplorerCommandLineParser(); diff --git a/apps/lockfile-explorer/src/start-lint.ts b/apps/lockfile-explorer/src/start-lint.ts index f911d04dfd..73a9fea20d 100644 --- a/apps/lockfile-explorer/src/start-lint.ts +++ b/apps/lockfile-explorer/src/start-lint.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { LintCommandLineParser } from './cli/lint/LintCommandLineParser'; +import { LintCommandLineParser } from './cli/lint/LintCommandLineParser.ts'; const parser: LintCommandLineParser = new LintCommandLineParser(); diff --git a/apps/lockfile-explorer/src/utils/init.ts b/apps/lockfile-explorer/src/utils/init.ts index 0fe6c7f9eb..393abe7d81 100644 --- a/apps/lockfile-explorer/src/utils/init.ts +++ b/apps/lockfile-explorer/src/utils/init.ts @@ -10,8 +10,8 @@ import { FileSystem, Path } from '@rushstack/node-core-library'; import { RushConfiguration } from '@microsoft/rush-lib/lib/api/RushConfiguration'; import type { Subspace } from '@microsoft/rush-lib/lib/api/Subspace'; -import * as lockfilePath from '../graph/lockfilePath'; -import type { IAppState } from '../state'; +import * as lockfilePath from '../graph/lockfilePath.ts'; +import type { IAppState } from '../state/index.ts'; export const init = (options: { lockfileExplorerProjectRoot: string; diff --git a/apps/playwright-browser-tunnel/src/PlaywrightBrowserTunnel.ts b/apps/playwright-browser-tunnel/src/PlaywrightBrowserTunnel.ts index 6b5a084eab..5ee54158cb 100644 --- a/apps/playwright-browser-tunnel/src/PlaywrightBrowserTunnel.ts +++ b/apps/playwright-browser-tunnel/src/PlaywrightBrowserTunnel.ts @@ -16,8 +16,8 @@ import { getWebSocketCloseReason, getWebSocketReadyStateString, WebSocketCloseCode -} from './utilities'; -import { LaunchOptionsValidator, type ILaunchOptionsValidationResult } from './LaunchOptionsValidator'; +} from './utilities.ts'; +import { LaunchOptionsValidator, type ILaunchOptionsValidationResult } from './LaunchOptionsValidator.ts'; /** * Allowed Playwright browser names. diff --git a/apps/playwright-browser-tunnel/src/index.ts b/apps/playwright-browser-tunnel/src/index.ts index cf8bc6f420..d5b384af7c 100644 --- a/apps/playwright-browser-tunnel/src/index.ts +++ b/apps/playwright-browser-tunnel/src/index.ts @@ -17,22 +17,22 @@ * @packageDocumentation */ -export { PlaywrightTunnel } from './PlaywrightBrowserTunnel'; +export { PlaywrightTunnel } from './PlaywrightBrowserTunnel.ts'; export type { BrowserName, TunnelStatus, IPlaywrightTunnelOptions, IHandshake -} from './PlaywrightBrowserTunnel'; -export { createTunneledBrowserAsync, tunneledBrowserConnection } from './tunneledBrowserConnection'; +} from './PlaywrightBrowserTunnel.ts'; +export { createTunneledBrowserAsync, tunneledBrowserConnection } from './tunneledBrowserConnection/index.ts'; export type { IDisposableTunneledBrowserConnection, IDisposableTunneledBrowser -} from './tunneledBrowserConnection'; +} from './tunneledBrowserConnection/index.ts'; export { isExtensionInstalledAsync, EXTENSION_INSTALLED_FILENAME, getNormalizedErrorString -} from './utilities'; -export { LaunchOptionsValidator, LAUNCH_OPTIONS_ALLOWLIST_FILENAME } from './LaunchOptionsValidator'; -export type { ILaunchOptionsAllowlist, ILaunchOptionsValidationResult } from './LaunchOptionsValidator'; +} from './utilities.ts'; +export { LaunchOptionsValidator, LAUNCH_OPTIONS_ALLOWLIST_FILENAME } from './LaunchOptionsValidator.ts'; +export type { ILaunchOptionsAllowlist, ILaunchOptionsValidationResult } from './LaunchOptionsValidator.ts'; diff --git a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/ITunneledBrowserConnection.ts b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/ITunneledBrowserConnection.ts index 986641372f..9cb2ff50bd 100644 --- a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/ITunneledBrowserConnection.ts +++ b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/ITunneledBrowserConnection.ts @@ -3,7 +3,7 @@ import type { LaunchOptions } from 'playwright-core'; -import type { BrowserName } from '../PlaywrightBrowserTunnel'; +import type { BrowserName } from '../PlaywrightBrowserTunnel.ts'; export interface IHandshake { action: 'handshake'; diff --git a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowser.ts b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowser.ts index 3875e2e513..62ca54a4ee 100644 --- a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowser.ts +++ b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowser.ts @@ -7,11 +7,11 @@ import playwright from 'playwright-core'; import type { ITerminal } from '@rushstack/terminal'; import { ConsoleTerminalProvider, Terminal } from '@rushstack/terminal'; -import type { BrowserName } from '../PlaywrightBrowserTunnel'; -import { DEFAULT_LISTEN_PORT } from './constants'; -import type { IDisposableTunneledBrowser } from './ITunneledBrowser'; -import type { IDisposableTunneledBrowserConnection } from './ITunneledBrowserConnection'; -import { tunneledBrowserConnection } from './TunneledBrowserConnection'; +import type { BrowserName } from '../PlaywrightBrowserTunnel.ts'; +import { DEFAULT_LISTEN_PORT } from './constants.ts'; +import type { IDisposableTunneledBrowser } from './ITunneledBrowser.ts'; +import type { IDisposableTunneledBrowserConnection } from './ITunneledBrowserConnection.ts'; +import { tunneledBrowserConnection } from './TunneledBrowserConnection.ts'; /** * Creates a Playwright Browser instance connected via a tunneled WebSocket connection. diff --git a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowserConnection.ts b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowserConnection.ts index 0d466c6067..4e92c7e5af 100644 --- a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowserConnection.ts +++ b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/TunneledBrowserConnection.ts @@ -8,20 +8,20 @@ import { WebSocket, WebSocketServer } from 'ws'; import type { ITerminal } from '@rushstack/terminal'; -import { HttpServer } from '../HttpServer'; -import type { BrowserName } from '../PlaywrightBrowserTunnel'; +import { HttpServer } from '../HttpServer.ts'; +import type { BrowserName } from '../PlaywrightBrowserTunnel.ts'; import { getNormalizedErrorString, getWebSocketCloseReason, getWebSocketReadyStateString, WebSocketCloseCode -} from '../utilities'; +} from '../utilities.ts'; import type { IDisposableTunneledBrowserConnection, IHandshake, IHandshakeAck -} from './ITunneledBrowserConnection'; -import { DEFAULT_LISTEN_PORT, SUPPORTED_BROWSER_NAMES } from './constants'; +} from './ITunneledBrowserConnection.ts'; +import { DEFAULT_LISTEN_PORT, SUPPORTED_BROWSER_NAMES } from './constants.ts'; const { version: playwrightVersion } = playwrightPackageJson; diff --git a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/index.ts b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/index.ts index 87c6e342f6..b76b0fee1b 100644 --- a/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/index.ts +++ b/apps/playwright-browser-tunnel/src/tunneledBrowserConnection/index.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { createTunneledBrowserAsync } from './TunneledBrowser'; -export { tunneledBrowserConnection } from './TunneledBrowserConnection'; +export { createTunneledBrowserAsync } from './TunneledBrowser.ts'; +export { tunneledBrowserConnection } from './TunneledBrowserConnection.ts'; -export type { IDisposableTunneledBrowser } from './ITunneledBrowser'; -export type { IDisposableTunneledBrowserConnection } from './ITunneledBrowserConnection'; +export type { IDisposableTunneledBrowser } from './ITunneledBrowser.ts'; +export type { IDisposableTunneledBrowserConnection } from './ITunneledBrowserConnection.ts'; diff --git a/apps/playwright-browser-tunnel/tests/demo.spec.ts b/apps/playwright-browser-tunnel/tests/demo.spec.ts index 52b381c23d..ae93fc07b5 100644 --- a/apps/playwright-browser-tunnel/tests/demo.spec.ts +++ b/apps/playwright-browser-tunnel/tests/demo.spec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { test } from './testFixture'; +import { test } from './testFixture.ts'; import { expect } from '@playwright/test'; test('woohoo!', async ({ page }) => { diff --git a/apps/playwright-browser-tunnel/tests/testFixture.ts b/apps/playwright-browser-tunnel/tests/testFixture.ts index 0f0e0dafc9..b4b568d328 100644 --- a/apps/playwright-browser-tunnel/tests/testFixture.ts +++ b/apps/playwright-browser-tunnel/tests/testFixture.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import { test as base } from '@playwright/test'; -import { tunneledBrowser } from '../src/tunneledBrowserConnection'; +import { tunneledBrowser } from '../src/tunneledBrowserConnection/index.ts'; export const test = base.extend({ browser: [ diff --git a/apps/rundown/src/Rundown.ts b/apps/rundown/src/Rundown.ts index 9b63ac8438..8cebbcfc4e 100644 --- a/apps/rundown/src/Rundown.ts +++ b/apps/rundown/src/Rundown.ts @@ -8,7 +8,7 @@ import stringArgv from 'string-argv'; import { FileSystem, PackageJsonLookup, Sort, Text } from '@rushstack/node-core-library'; -import type { IpcMessage } from './LauncherTypes'; +import type { IpcMessage } from './LauncherTypes.ts'; export class Rundown { // Map from required path --> caller path diff --git a/apps/rundown/src/cli/InspectAction.ts b/apps/rundown/src/cli/InspectAction.ts index 9c14086c55..a0c786f518 100644 --- a/apps/rundown/src/cli/InspectAction.ts +++ b/apps/rundown/src/cli/InspectAction.ts @@ -3,8 +3,8 @@ import type { CommandLineFlagParameter } from '@rushstack/ts-command-line'; -import { BaseReportAction } from './BaseReportAction'; -import { Rundown } from '../Rundown'; +import { BaseReportAction } from './BaseReportAction.ts'; +import { Rundown } from '../Rundown.ts'; export class InspectAction extends BaseReportAction { private readonly _traceParameter: CommandLineFlagParameter; diff --git a/apps/rundown/src/cli/RundownCommandLine.ts b/apps/rundown/src/cli/RundownCommandLine.ts index 60c054c4eb..28a24a163d 100644 --- a/apps/rundown/src/cli/RundownCommandLine.ts +++ b/apps/rundown/src/cli/RundownCommandLine.ts @@ -3,8 +3,8 @@ import { CommandLineParser } from '@rushstack/ts-command-line'; -import { SnapshotAction } from './SnapshotAction'; -import { InspectAction } from './InspectAction'; +import { SnapshotAction } from './SnapshotAction.ts'; +import { InspectAction } from './InspectAction.ts'; export class RundownCommandLine extends CommandLineParser { public constructor() { diff --git a/apps/rundown/src/cli/SnapshotAction.ts b/apps/rundown/src/cli/SnapshotAction.ts index 3d5983a637..20df046325 100644 --- a/apps/rundown/src/cli/SnapshotAction.ts +++ b/apps/rundown/src/cli/SnapshotAction.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { BaseReportAction } from './BaseReportAction'; -import { Rundown } from '../Rundown'; +import { BaseReportAction } from './BaseReportAction.ts'; +import { Rundown } from '../Rundown.ts'; export class SnapshotAction extends BaseReportAction { public constructor() { diff --git a/apps/rundown/src/launcher.ts b/apps/rundown/src/launcher.ts index 0804e45661..139e38142d 100644 --- a/apps/rundown/src/launcher.ts +++ b/apps/rundown/src/launcher.ts @@ -4,8 +4,8 @@ import moduleApi = require('module'); import process from 'node:process'; -import { LauncherAction } from './LauncherTypes'; // "import type" doesn't work with const enums -import type { IIpcTrace, IIpcDone, IIpcTraceRecord } from './LauncherTypes'; +import { LauncherAction } from './LauncherTypes.ts'; // "import type" doesn't work with const enums +import type { IIpcTrace, IIpcDone, IIpcTraceRecord } from './LauncherTypes.ts'; // The _ipcTraceRecordsBatch will get transmitted when this many items are accumulated const IPC_BATCH_SIZE: number = 300; diff --git a/apps/rundown/src/start.ts b/apps/rundown/src/start.ts index fa246c0968..2297ecc22c 100644 --- a/apps/rundown/src/start.ts +++ b/apps/rundown/src/start.ts @@ -3,7 +3,7 @@ import { PackageJsonLookup } from '@rushstack/node-core-library'; -import { RundownCommandLine } from './cli/RundownCommandLine'; +import { RundownCommandLine } from './cli/RundownCommandLine.ts'; const toolVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version; diff --git a/apps/rush-mcp-server/src/index.ts b/apps/rush-mcp-server/src/index.ts index fb2982cfe0..a5da32c18a 100644 --- a/apps/rush-mcp-server/src/index.ts +++ b/apps/rush-mcp-server/src/index.ts @@ -6,7 +6,7 @@ * @packageDocumentation */ -export { type IRushMcpPlugin, type RushMcpPluginFactory } from './pluginFramework/IRushMcpPlugin'; -export type { IRushMcpTool } from './pluginFramework/IRushMcpTool'; -export { type IRegisterToolOptions, RushMcpPluginSession } from './pluginFramework/RushMcpPluginSession'; -export { CallToolResultSchema, type CallToolResult, type zodModule } from './pluginFramework/zodTypes'; +export { type IRushMcpPlugin, type RushMcpPluginFactory } from './pluginFramework/IRushMcpPlugin.ts'; +export type { IRushMcpTool } from './pluginFramework/IRushMcpTool.ts'; +export { type IRegisterToolOptions, RushMcpPluginSession } from './pluginFramework/RushMcpPluginSession.ts'; +export { CallToolResultSchema, type CallToolResult, type zodModule } from './pluginFramework/zodTypes.ts'; diff --git a/apps/rush-mcp-server/src/pluginFramework/IRushMcpPlugin.ts b/apps/rush-mcp-server/src/pluginFramework/IRushMcpPlugin.ts index 0f52c3272c..f27809926e 100644 --- a/apps/rush-mcp-server/src/pluginFramework/IRushMcpPlugin.ts +++ b/apps/rush-mcp-server/src/pluginFramework/IRushMcpPlugin.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { RushMcpPluginSession } from './RushMcpPluginSession'; +import type { RushMcpPluginSession } from './RushMcpPluginSession.ts'; /** * MCP plugins should implement this interface. diff --git a/apps/rush-mcp-server/src/pluginFramework/IRushMcpTool.ts b/apps/rush-mcp-server/src/pluginFramework/IRushMcpTool.ts index 46f325b027..1feada839e 100644 --- a/apps/rush-mcp-server/src/pluginFramework/IRushMcpTool.ts +++ b/apps/rush-mcp-server/src/pluginFramework/IRushMcpTool.ts @@ -3,7 +3,7 @@ import type * as zod from 'zod'; -import type { CallToolResult } from './zodTypes'; +import type { CallToolResult } from './zodTypes.ts'; /** * MCP plugins should implement this interface. diff --git a/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginLoader.ts b/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginLoader.ts index 3360321634..2a64c1c1bd 100644 --- a/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginLoader.ts +++ b/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginLoader.ts @@ -10,8 +10,8 @@ import { Autoinstaller } from '@rushstack/rush-sdk/lib/logic/Autoinstaller'; import { RushGlobalFolder } from '@rushstack/rush-sdk/lib/api/RushGlobalFolder'; import { RushConfiguration } from '@rushstack/rush-sdk/lib/api/RushConfiguration'; -import type { IRushMcpPlugin, RushMcpPluginFactory } from './IRushMcpPlugin'; -import { RushMcpPluginSessionInternal } from './RushMcpPluginSession'; +import type { IRushMcpPlugin, RushMcpPluginFactory } from './IRushMcpPlugin.ts'; +import { RushMcpPluginSessionInternal } from './RushMcpPluginSession.ts'; import rushMcpJsonSchemaObject from '../schemas/rush-mcp.schema.json'; import rushMcpPluginSchemaObject from '../schemas/rush-mcp-plugin.schema.json'; diff --git a/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginSession.ts b/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginSession.ts index aa46003a8c..76c1205c1e 100644 --- a/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginSession.ts +++ b/apps/rush-mcp-server/src/pluginFramework/RushMcpPluginSession.ts @@ -4,8 +4,8 @@ import * as zod from 'zod'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp'; -import type { IRushMcpTool } from './IRushMcpTool'; -import type { zodModule } from './zodTypes'; +import type { IRushMcpTool } from './IRushMcpTool.ts'; +import type { zodModule } from './zodTypes.ts'; /** * Each plugin gets its own session. diff --git a/apps/rush-mcp-server/src/server.ts b/apps/rush-mcp-server/src/server.ts index 5eceb11601..689a5868d3 100644 --- a/apps/rush-mcp-server/src/server.ts +++ b/apps/rush-mcp-server/src/server.ts @@ -10,8 +10,8 @@ import { RushCommandValidatorTool, RushWorkspaceDetailsTool, RushProjectDetailsTool -} from './tools'; -import { RushMcpPluginLoader } from './pluginFramework/RushMcpPluginLoader'; +} from './tools/index.ts'; +import { RushMcpPluginLoader } from './pluginFramework/RushMcpPluginLoader.ts'; export class RushMCPServer extends McpServer { private _rushWorkspacePath: string; diff --git a/apps/rush-mcp-server/src/start.ts b/apps/rush-mcp-server/src/start.ts index 7c191e1558..bc3ad201d0 100644 --- a/apps/rush-mcp-server/src/start.ts +++ b/apps/rush-mcp-server/src/start.ts @@ -9,8 +9,8 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js' import { FileSystem } from '@rushstack/node-core-library'; import { RushSdkLoader } from '@rushstack/rush-sdk/loader'; -import { log } from './utilities/log'; -import type { RushMCPServer } from './server'; +import { log } from './utilities/log.ts'; +import type { RushMCPServer } from './server.ts'; const main = async (): Promise => { const rushWorkspacePath: string | undefined = process.argv[2]; @@ -31,7 +31,7 @@ const main = async (): Promise => { rushJsonSearchFolder: rushWorkspaceFullPath }); - const RushMCPServerClass: typeof RushMCPServer = (await import('./server')).RushMCPServer; + const RushMCPServerClass: typeof RushMCPServer = (await import('./server.ts')).RushMCPServer; const server: RushMCPServer = new RushMCPServerClass(rushWorkspaceFullPath); await server.startAsync(); diff --git a/apps/rush-mcp-server/src/tools/conflict-resolver.tool.ts b/apps/rush-mcp-server/src/tools/conflict-resolver.tool.ts index 3c9a085b9f..2161f0e721 100644 --- a/apps/rush-mcp-server/src/tools/conflict-resolver.tool.ts +++ b/apps/rush-mcp-server/src/tools/conflict-resolver.tool.ts @@ -6,8 +6,8 @@ import { z } from 'zod'; import type { RushConfiguration } from '@rushstack/rush-sdk'; import type { IExecutableSpawnSyncOptions } from '@rushstack/node-core-library'; -import { CommandRunner } from '../utilities/command-runner'; -import { getRushConfiguration } from '../utilities/common'; +import { CommandRunner } from '../utilities/command-runner.ts'; +import { getRushConfiguration } from '../utilities/common.ts'; import { BaseTool, type CallToolResult } from './base.tool'; export class RushConflictResolverTool extends BaseTool { diff --git a/apps/rush-mcp-server/src/tools/index.ts b/apps/rush-mcp-server/src/tools/index.ts index 7fdc2dbd2b..cff7f015b6 100644 --- a/apps/rush-mcp-server/src/tools/index.ts +++ b/apps/rush-mcp-server/src/tools/index.ts @@ -5,5 +5,5 @@ export { BaseTool, type IBaseToolOptions, type CallToolResult } from './base.too export { RushMigrateProjectTool } from './migrate-project.tool'; export { RushProjectDetailsTool } from './project-details.tool'; export { RushCommandValidatorTool } from './rush-command-validator.tool'; -export { RushWorkspaceDetailsTool } from './workspace-details'; +export { RushWorkspaceDetailsTool } from './workspace-details.ts'; export { RushConflictResolverTool } from './conflict-resolver.tool'; diff --git a/apps/rush-mcp-server/src/tools/migrate-project.tool.ts b/apps/rush-mcp-server/src/tools/migrate-project.tool.ts index d4069a1d79..138d906cb1 100644 --- a/apps/rush-mcp-server/src/tools/migrate-project.tool.ts +++ b/apps/rush-mcp-server/src/tools/migrate-project.tool.ts @@ -12,7 +12,7 @@ import type { IRushConfigurationProjectJson } from '@rushstack/rush-sdk/lib/api/ import type { IRushConfigurationJson } from '@rushstack/rush-sdk/lib/api/RushConfiguration'; import { BaseTool, type CallToolResult } from './base.tool'; -import { getRushConfiguration } from '../utilities/common'; +import { getRushConfiguration } from '../utilities/common.ts'; export class RushMigrateProjectTool extends BaseTool { private _rushWorkspacePath: string; diff --git a/apps/rush-mcp-server/src/tools/project-details.tool.ts b/apps/rush-mcp-server/src/tools/project-details.tool.ts index b78227398d..c1fecf23c0 100644 --- a/apps/rush-mcp-server/src/tools/project-details.tool.ts +++ b/apps/rush-mcp-server/src/tools/project-details.tool.ts @@ -5,7 +5,7 @@ import { z } from 'zod'; import type { RushConfiguration, RushConfigurationProject } from '@rushstack/rush-sdk'; -import { getRushConfiguration } from '../utilities/common'; +import { getRushConfiguration } from '../utilities/common.ts'; import { BaseTool, type CallToolResult } from './base.tool'; export class RushProjectDetailsTool extends BaseTool { diff --git a/apps/rush-mcp-server/src/tools/rush-command-validator.tool.ts b/apps/rush-mcp-server/src/tools/rush-command-validator.tool.ts index 196f5570d3..154ce2cef9 100644 --- a/apps/rush-mcp-server/src/tools/rush-command-validator.tool.ts +++ b/apps/rush-mcp-server/src/tools/rush-command-validator.tool.ts @@ -9,7 +9,7 @@ import { JsonFile } from '@rushstack/node-core-library'; import type { ICommandLineJson } from '@rushstack/rush-sdk/lib/api/CommandLineJson'; import type { RushConfiguration } from '@rushstack/rush-sdk'; -import { getRushConfiguration } from '../utilities/common'; +import { getRushConfiguration } from '../utilities/common.ts'; import { BaseTool, type CallToolResult } from './base.tool'; export const selectionParamsSet: ReadonlySet = new Set([ diff --git a/apps/rush-mcp-server/src/tools/workspace-details.ts b/apps/rush-mcp-server/src/tools/workspace-details.ts index da93f38abb..eaa2681877 100644 --- a/apps/rush-mcp-server/src/tools/workspace-details.ts +++ b/apps/rush-mcp-server/src/tools/workspace-details.ts @@ -4,7 +4,7 @@ import type { RushConfiguration, RushConfigurationProject } from '@rushstack/rush-sdk'; import type { IRushConfigurationJson } from '@rushstack/rush-sdk/lib/api/RushConfiguration'; -import { getRushConfiguration } from '../utilities/common'; +import { getRushConfiguration } from '../utilities/common.ts'; import { BaseTool, type CallToolResult } from './base.tool'; export class RushWorkspaceDetailsTool extends BaseTool { diff --git a/apps/rush/src/RushVersionSelector.ts b/apps/rush/src/RushVersionSelector.ts index 1b87e66e5f..9be94bff0d 100644 --- a/apps/rush/src/RushVersionSelector.ts +++ b/apps/rush/src/RushVersionSelector.ts @@ -9,8 +9,8 @@ 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'; -import { RushCommandSelector } from './RushCommandSelector'; -import type { MinimalRushConfiguration } from './MinimalRushConfiguration'; +import { RushCommandSelector } from './RushCommandSelector.ts'; +import type { MinimalRushConfiguration } from './MinimalRushConfiguration.ts'; const MAX_INSTALL_ATTEMPTS: number = 3; diff --git a/apps/rush/src/start-dev.ts b/apps/rush/src/start-dev.ts index 927fae7670..10ef38ef7f 100644 --- a/apps/rush/src/start-dev.ts +++ b/apps/rush/src/start-dev.ts @@ -7,7 +7,7 @@ import * as rushLib from '@microsoft/rush-lib'; import { PackageJsonLookup, Import } from '@rushstack/node-core-library'; -import { RushCommandSelector } from './RushCommandSelector'; +import { RushCommandSelector } from './RushCommandSelector.ts'; const builtInPluginConfigurations: rushLib._IBuiltInPluginConfiguration[] = []; diff --git a/apps/rush/src/start.ts b/apps/rush/src/start.ts index bf8d592723..02f24e34e0 100644 --- a/apps/rush/src/start.ts +++ b/apps/rush/src/start.ts @@ -29,9 +29,9 @@ import { EnvironmentVariableNames } from '@microsoft/rush-lib'; import type { ILaunchOptions } from '@microsoft/rush-lib'; import * as rushLib from '@microsoft/rush-lib'; -import { RushCommandSelector } from './RushCommandSelector'; -import { RushVersionSelector } from './RushVersionSelector'; -import { MinimalRushConfiguration } from './MinimalRushConfiguration'; +import { RushCommandSelector } from './RushCommandSelector.ts'; +import { RushVersionSelector } from './RushVersionSelector.ts'; +import { MinimalRushConfiguration } from './MinimalRushConfiguration.ts'; // Load the configuration const configuration: MinimalRushConfiguration | undefined = diff --git a/apps/rush/src/test/MinimalRushConfiguration.test.ts b/apps/rush/src/test/MinimalRushConfiguration.test.ts index 391c9feeeb..36f2033bad 100644 --- a/apps/rush/src/test/MinimalRushConfiguration.test.ts +++ b/apps/rush/src/test/MinimalRushConfiguration.test.ts @@ -3,7 +3,7 @@ import * as path from 'node:path'; -import { MinimalRushConfiguration } from '../MinimalRushConfiguration'; +import { MinimalRushConfiguration } from '../MinimalRushConfiguration.ts'; describe(MinimalRushConfiguration.name, () => { afterEach(() => { diff --git a/apps/trace-import/src/TraceImportCommandLineParser.ts b/apps/trace-import/src/TraceImportCommandLineParser.ts index f34cec4a90..c4ee679136 100644 --- a/apps/trace-import/src/TraceImportCommandLineParser.ts +++ b/apps/trace-import/src/TraceImportCommandLineParser.ts @@ -11,7 +11,7 @@ import { import { InternalError } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { type ResolutionType, traceImport } from './traceImport'; +import { type ResolutionType, traceImport } from './traceImport.ts'; export class TraceImportCommandLineParser extends CommandLineParser { private readonly _debugParameter: CommandLineFlagParameter; diff --git a/apps/trace-import/src/start.ts b/apps/trace-import/src/start.ts index a14bfe9247..cd41a6305a 100644 --- a/apps/trace-import/src/start.ts +++ b/apps/trace-import/src/start.ts @@ -4,7 +4,7 @@ import { PackageJsonLookup } from '@rushstack/node-core-library'; import { Colorize } from '@rushstack/terminal'; -import { TraceImportCommandLineParser } from './TraceImportCommandLineParser'; +import { TraceImportCommandLineParser } from './TraceImportCommandLineParser.ts'; const toolVersion: string = PackageJsonLookup.loadOwnPackageJson(__dirname).version; diff --git a/apps/zipsync/src/cli/ZipSyncCommandLineParser.ts b/apps/zipsync/src/cli/ZipSyncCommandLineParser.ts index 594ad4c9ab..9e002d68a9 100644 --- a/apps/zipsync/src/cli/ZipSyncCommandLineParser.ts +++ b/apps/zipsync/src/cli/ZipSyncCommandLineParser.ts @@ -11,8 +11,8 @@ import type { import type { ConsoleTerminalProvider } from '@rushstack/terminal/lib/ConsoleTerminalProvider'; import type { ITerminal } from '@rushstack/terminal/lib/ITerminal'; -import type { IZipSyncMode, ZipSyncOptionCompression } from '../zipSyncUtils'; -import { pack, unpack } from '../index'; +import type { IZipSyncMode, ZipSyncOptionCompression } from '../zipSyncUtils.ts'; +import { pack, unpack } from '../index.ts'; export class ZipSyncCommandLineParser extends CommandLineParser { private readonly _debugParameter: CommandLineFlagParameter; diff --git a/apps/zipsync/src/index.ts b/apps/zipsync/src/index.ts index 11913cee85..0e2f73b798 100644 --- a/apps/zipsync/src/index.ts +++ b/apps/zipsync/src/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { pack, type IZipSyncPackResult, type IZipSyncPackOptions } from './pack'; -export { unpack, type IZipSyncUnpackResult, type IZipSyncUnpackOptions } from './unpack'; +export { pack, type IZipSyncPackResult, type IZipSyncPackOptions } from './pack.ts'; +export { unpack, type IZipSyncUnpackResult, type IZipSyncUnpackOptions } from './unpack.ts'; diff --git a/apps/zipsync/src/pack.ts b/apps/zipsync/src/pack.ts index 177fc6fec6..574e522f01 100644 --- a/apps/zipsync/src/pack.ts +++ b/apps/zipsync/src/pack.ts @@ -8,10 +8,10 @@ import * as zlib from 'node:zlib'; import type { ITerminal } from '@rushstack/terminal/lib/ITerminal'; -import { crc32Builder } from './crc32'; -import { DISPOSE_SYMBOL, getDisposableFileHandle, type IDisposableFileHandle } from './fs'; -import { type IIncrementalZlib, type IncrementalZlibMode, createIncrementalZlib } from './compress'; -import { markStart, markEnd, getDuration, emitSummary, formatDuration } from './perf'; +import { crc32Builder } from './crc32.ts'; +import { DISPOSE_SYMBOL, getDisposableFileHandle, type IDisposableFileHandle } from './fs.ts'; +import { type IIncrementalZlib, type IncrementalZlibMode, createIncrementalZlib } from './compress.ts'; +import { markStart, markEnd, getDuration, emitSummary, formatDuration } from './perf.ts'; import { writeLocalFileHeader, writeDataDescriptor, @@ -23,8 +23,8 @@ import { type ZipMetaCompressionMethod, type IFileEntry, dosDateTime -} from './zipUtils'; -import { calculateSHA1 } from './hash'; +} from './zipUtils.ts'; +import { calculateSHA1 } from './hash.ts'; import { type ZipSyncOptionCompression, type IMetadata, @@ -32,7 +32,7 @@ import { METADATA_VERSION, METADATA_FILENAME, defaultBufferSize -} from './zipSyncUtils'; +} from './zipSyncUtils.ts'; /** * File extensions for which additional DEFLATE/ZSTD compression is unlikely to help. diff --git a/apps/zipsync/src/packWorker.ts b/apps/zipsync/src/packWorker.ts index 39e82fe817..5365c1de87 100644 --- a/apps/zipsync/src/packWorker.ts +++ b/apps/zipsync/src/packWorker.ts @@ -6,10 +6,10 @@ import { parentPort as rawParentPort, type MessagePort } from 'node:worker_threa import { Terminal } from '@rushstack/terminal/lib/Terminal'; import { StringBufferTerminalProvider } from '@rushstack/terminal/lib/StringBufferTerminalProvider'; -import { type IZipSyncPackOptions, type IZipSyncPackResult, pack } from './pack'; -import { defaultBufferSize } from './zipSyncUtils'; +import { type IZipSyncPackOptions, type IZipSyncPackResult, pack } from './pack.ts'; +import { defaultBufferSize } from './zipSyncUtils.ts'; -export { type IZipSyncPackOptions, type IZipSyncPackResult } from './pack'; +export { type IZipSyncPackOptions, type IZipSyncPackResult } from './pack.ts'; export interface IHashWorkerData { basePath: string; diff --git a/apps/zipsync/src/packWorkerAsync.ts b/apps/zipsync/src/packWorkerAsync.ts index 71e7b1db06..373b787607 100644 --- a/apps/zipsync/src/packWorkerAsync.ts +++ b/apps/zipsync/src/packWorkerAsync.ts @@ -8,9 +8,9 @@ import type { IHostToWorkerMessage, IZipSyncPackWorkerResult, IZipSyncPackOptions -} from './packWorker'; +} from './packWorker.ts'; -export type { IZipSyncPackWorkerResult } from './packWorker'; +export type { IZipSyncPackWorkerResult } from './packWorker.ts'; export async function packWorkerAsync( options: Omit diff --git a/apps/zipsync/src/start.ts b/apps/zipsync/src/start.ts index 14e23e5340..e7718081c0 100644 --- a/apps/zipsync/src/start.ts +++ b/apps/zipsync/src/start.ts @@ -5,7 +5,7 @@ import { ConsoleTerminalProvider } from '@rushstack/terminal/lib/ConsoleTerminal import { Terminal } from '@rushstack/terminal/lib/Terminal'; import { version } from '../package.json'; -import { ZipSyncCommandLineParser } from './cli/ZipSyncCommandLineParser'; +import { ZipSyncCommandLineParser } from './cli/ZipSyncCommandLineParser.ts'; const toolVersion: string = version; diff --git a/apps/zipsync/src/test/benchmark.test.ts b/apps/zipsync/src/test/benchmark.test.ts index 244b30ab20..2fc31fed5f 100644 --- a/apps/zipsync/src/test/benchmark.test.ts +++ b/apps/zipsync/src/test/benchmark.test.ts @@ -11,9 +11,9 @@ import { createHash, randomUUID } from 'node:crypto'; import { NoOpTerminalProvider, Terminal } from '@rushstack/terminal'; -import type { ZipSyncOptionCompression } from '../zipSyncUtils'; -import { pack } from '../pack'; -import { unpack } from '../unpack'; +import type { ZipSyncOptionCompression } from '../zipSyncUtils.ts'; +import { pack } from '../pack.ts'; +import { unpack } from '../unpack.ts'; const compressionOptions = ['store', 'deflate', 'zstd', 'auto'] satisfies ZipSyncOptionCompression[]; diff --git a/apps/zipsync/src/test/crc32.test.ts b/apps/zipsync/src/test/crc32.test.ts index 67ccbb9180..3230527761 100644 --- a/apps/zipsync/src/test/crc32.test.ts +++ b/apps/zipsync/src/test/crc32.test.ts @@ -3,7 +3,7 @@ import * as zlib from 'node:zlib'; -import { fallbackCrc32 } from '../crc32'; +import { fallbackCrc32 } from '../crc32.ts'; describe('crc32', () => { it('fallbackCrc32 should match zlib.crc32', () => { diff --git a/apps/zipsync/src/test/index.test.ts b/apps/zipsync/src/test/index.test.ts index 42dd8d9633..ef573dca52 100644 --- a/apps/zipsync/src/test/index.test.ts +++ b/apps/zipsync/src/test/index.test.ts @@ -7,10 +7,10 @@ import * as fs from 'node:fs'; import { NoOpTerminalProvider } from '@rushstack/terminal/lib/NoOpTerminalProvider'; import { Terminal } from '@rushstack/terminal/lib/Terminal'; -import { pack } from '../pack'; -import { unpack } from '../unpack'; -import { getDemoDataDirectoryDisposable } from './testUtils'; -import type { ZipSyncOptionCompression } from '../zipSyncUtils'; +import { pack } from '../pack.ts'; +import { unpack } from '../unpack.ts'; +import { getDemoDataDirectoryDisposable } from './testUtils.ts'; +import type { ZipSyncOptionCompression } from '../zipSyncUtils.ts'; describe('zipSync tests', () => { it(`basic pack test`, () => { diff --git a/apps/zipsync/src/test/testUtils.ts b/apps/zipsync/src/test/testUtils.ts index 6d75dbcfdf..9a4710b887 100644 --- a/apps/zipsync/src/test/testUtils.ts +++ b/apps/zipsync/src/test/testUtils.ts @@ -6,7 +6,7 @@ import * as path from 'node:path'; import * as fs from 'node:fs'; import * as crypto from 'node:crypto'; -import type { IMetadata } from '../zipSyncUtils'; +import type { IMetadata } from '../zipSyncUtils.ts'; export function getTempDir(): string { const randomId: string = crypto.randomUUID(); diff --git a/apps/zipsync/src/test/workerAsync.test.ts b/apps/zipsync/src/test/workerAsync.test.ts index 07a0935725..935fb45ab5 100644 --- a/apps/zipsync/src/test/workerAsync.test.ts +++ b/apps/zipsync/src/test/workerAsync.test.ts @@ -4,9 +4,9 @@ import * as path from 'node:path'; import * as fs from 'node:fs'; -import { unpackWorkerAsync } from '../unpackWorkerAsync'; -import { packWorkerAsync } from '../packWorkerAsync'; -import { getDemoDataDirectoryDisposable } from './testUtils'; +import { unpackWorkerAsync } from '../unpackWorkerAsync.ts'; +import { packWorkerAsync } from '../packWorkerAsync.ts'; +import { getDemoDataDirectoryDisposable } from './testUtils.ts'; describe('zipSyncWorkerAsync tests', () => { it('basic pack test', async () => { diff --git a/apps/zipsync/src/unpack.ts b/apps/zipsync/src/unpack.ts index f4592c34d1..e0835564d6 100644 --- a/apps/zipsync/src/unpack.ts +++ b/apps/zipsync/src/unpack.ts @@ -8,9 +8,9 @@ import * as zlib from 'node:zlib'; import { type IReadonlyPathTrieNode, LookupByPath } from '@rushstack/lookup-by-path/lib/LookupByPath'; import type { ITerminal } from '@rushstack/terminal'; -import { getDisposableFileHandle, rmdirSync, unlinkSync, type IDisposableFileHandle } from './fs'; -import { type IIncrementalZlib, type IncrementalZlibMode, createIncrementalZlib } from './compress'; -import { markStart, markEnd, getDuration, emitSummary, formatDuration } from './perf'; +import { getDisposableFileHandle, rmdirSync, unlinkSync, type IDisposableFileHandle } from './fs.ts'; +import { type IIncrementalZlib, type IncrementalZlibMode, createIncrementalZlib } from './compress.ts'; +import { markStart, markEnd, getDuration, emitSummary, formatDuration } from './perf.ts'; import { findEndOfCentralDirectory, parseCentralDirectoryHeader, @@ -21,15 +21,15 @@ import { type IEndOfCentralDirectory, type ICentralDirectoryHeaderParseResult, type ZipMetaCompressionMethod -} from './zipUtils'; -import { computeFileHash } from './hash'; +} from './zipUtils.ts'; +import { computeFileHash } from './hash.ts'; import { defaultBufferSize, METADATA_FILENAME, METADATA_VERSION, type IDirQueueItem, type IMetadata -} from './zipSyncUtils'; +} from './zipSyncUtils.ts'; const zlibUnpackModes: Record = { [ZSTD_COMPRESSION]: 'zstd-decompress', diff --git a/apps/zipsync/src/unpackWorker.ts b/apps/zipsync/src/unpackWorker.ts index b8ddedb5fa..45c0d81764 100644 --- a/apps/zipsync/src/unpackWorker.ts +++ b/apps/zipsync/src/unpackWorker.ts @@ -6,10 +6,10 @@ import { parentPort as rawParentPort, type MessagePort } from 'node:worker_threa import { Terminal } from '@rushstack/terminal/lib/Terminal'; import { StringBufferTerminalProvider } from '@rushstack/terminal/lib/StringBufferTerminalProvider'; -import { type IZipSyncUnpackOptions, type IZipSyncUnpackResult, unpack } from './unpack'; -import { defaultBufferSize } from './zipSyncUtils'; +import { type IZipSyncUnpackOptions, type IZipSyncUnpackResult, unpack } from './unpack.ts'; +import { defaultBufferSize } from './zipSyncUtils.ts'; -export { type IZipSyncUnpackOptions, type IZipSyncUnpackResult } from './unpack'; +export { type IZipSyncUnpackOptions, type IZipSyncUnpackResult } from './unpack.ts'; export interface IHashWorkerData { basePath: string; diff --git a/apps/zipsync/src/unpackWorkerAsync.ts b/apps/zipsync/src/unpackWorkerAsync.ts index 73714a016b..a64081830b 100644 --- a/apps/zipsync/src/unpackWorkerAsync.ts +++ b/apps/zipsync/src/unpackWorkerAsync.ts @@ -8,9 +8,9 @@ import type { IHostToWorkerMessage, IZipSyncUnpackWorkerResult, IZipSyncUnpackOptions -} from './unpackWorker'; +} from './unpackWorker.ts'; -export type { IZipSyncUnpackWorkerResult } from './unpackWorker'; +export type { IZipSyncUnpackWorkerResult } from './unpackWorker.ts'; export async function unpackWorkerAsync( options: Omit diff --git a/build-tests-samples/heft-node-jest-tutorial/src/guide/01-automatic-mock.test.ts b/build-tests-samples/heft-node-jest-tutorial/src/guide/01-automatic-mock.test.ts index c3a6e1a4d9..2b20cabeb6 100644 --- a/build-tests-samples/heft-node-jest-tutorial/src/guide/01-automatic-mock.test.ts +++ b/build-tests-samples/heft-node-jest-tutorial/src/guide/01-automatic-mock.test.ts @@ -6,8 +6,8 @@ jest.mock('./SoundPlayer'); // SoundPlayer is now a mock constructor -import { SoundPlayer } from './SoundPlayer'; -import { SoundPlayerConsumer } from './SoundPlayerConsumer'; +import { SoundPlayer } from './SoundPlayer.ts'; +import { SoundPlayerConsumer } from './SoundPlayerConsumer.ts'; beforeEach(() => { // Clear all instances and calls to constructor and all methods: diff --git a/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.test.ts b/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.test.ts index af79f63945..6de9b49074 100644 --- a/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.test.ts +++ b/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.test.ts @@ -6,9 +6,9 @@ jest.mock('./SoundPlayer'); // SoundPlayer is now a mock constructor -import { SoundPlayer } from './SoundPlayer'; -import { mockPlaySoundFile } from './__mocks__/SoundPlayer'; -import { SoundPlayerConsumer } from './SoundPlayerConsumer'; +import { SoundPlayer } from './SoundPlayer.ts'; +import { mockPlaySoundFile } from './__mocks__/SoundPlayer.ts'; +import { SoundPlayerConsumer } from './SoundPlayerConsumer.ts'; beforeEach(() => { // Clear all instances and calls to constructor and all methods: @@ -29,7 +29,7 @@ it('We can check if the consumer called a method on the class instance', () => { }); // The test below validates that jest-improved-resolver.js is working correctly -import { SoundPlayer as MockSoundPlayer } from './__mocks__/SoundPlayer'; +import { SoundPlayer as MockSoundPlayer } from './__mocks__/SoundPlayer.ts'; it('Importing ./__mocks__/SoundPlayer returns the same object as importing ./SoundPlayer', () => { expect(SoundPlayer).toBe(MockSoundPlayer); diff --git a/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.ts b/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.ts index c860b9f816..c170721197 100644 --- a/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.ts +++ b/build-tests-samples/heft-node-jest-tutorial/src/guide/02-manual-mock/SoundPlayerConsumer.ts @@ -4,7 +4,7 @@ // This example is adapted from the Jest guide here: // https://jestjs.io/docs/en/es6-class-mocks -import { SoundPlayer } from './SoundPlayer'; +import { SoundPlayer } from './SoundPlayer.ts'; export class SoundPlayerConsumer { private _soundPlayer: SoundPlayer; diff --git a/build-tests-samples/heft-node-jest-tutorial/src/guide/03-factory-constructor-mock.test.ts b/build-tests-samples/heft-node-jest-tutorial/src/guide/03-factory-constructor-mock.test.ts index bcd44bb804..37789772a4 100644 --- a/build-tests-samples/heft-node-jest-tutorial/src/guide/03-factory-constructor-mock.test.ts +++ b/build-tests-samples/heft-node-jest-tutorial/src/guide/03-factory-constructor-mock.test.ts @@ -14,8 +14,8 @@ jest.mock('./SoundPlayer', () => { }; }); -import { SoundPlayerConsumer } from './SoundPlayerConsumer'; -import { SoundPlayer } from './SoundPlayer'; +import { SoundPlayerConsumer } from './SoundPlayerConsumer.ts'; +import { SoundPlayer } from './SoundPlayer.ts'; beforeEach(() => { mocked(SoundPlayer).mockClear(); diff --git a/build-tests-samples/heft-node-jest-tutorial/src/guide/SoundPlayerConsumer.ts b/build-tests-samples/heft-node-jest-tutorial/src/guide/SoundPlayerConsumer.ts index c860b9f816..c170721197 100644 --- a/build-tests-samples/heft-node-jest-tutorial/src/guide/SoundPlayerConsumer.ts +++ b/build-tests-samples/heft-node-jest-tutorial/src/guide/SoundPlayerConsumer.ts @@ -4,7 +4,7 @@ // This example is adapted from the Jest guide here: // https://jestjs.io/docs/en/es6-class-mocks -import { SoundPlayer } from './SoundPlayer'; +import { SoundPlayer } from './SoundPlayer.ts'; export class SoundPlayerConsumer { private _soundPlayer: SoundPlayer; diff --git a/build-tests-samples/heft-serverless-stack-tutorial/src/stacks/index.ts b/build-tests-samples/heft-serverless-stack-tutorial/src/stacks/index.ts index d8e9f7ecc7..5b0bb5e20f 100644 --- a/build-tests-samples/heft-serverless-stack-tutorial/src/stacks/index.ts +++ b/build-tests-samples/heft-serverless-stack-tutorial/src/stacks/index.ts @@ -3,7 +3,7 @@ import type * as sst from '@serverless-stack/resources'; -import MyStack from './MyStack'; +import MyStack from './MyStack.ts'; export default function main(app: sst.App): void { // Set default runtime for all functions diff --git a/build-tests-samples/heft-serverless-stack-tutorial/src/test/MyStack.test.ts b/build-tests-samples/heft-serverless-stack-tutorial/src/test/MyStack.test.ts index 74785d4607..003a2f567c 100644 --- a/build-tests-samples/heft-serverless-stack-tutorial/src/test/MyStack.test.ts +++ b/build-tests-samples/heft-serverless-stack-tutorial/src/test/MyStack.test.ts @@ -6,7 +6,7 @@ // import { Template } from 'aws-cdk-lib/assertions'; // import * as sst from '@serverless-stack/resources'; -// import MyStack from '../stacks/MyStack'; +// import MyStack from '../stacks/MyStack.ts'; test('Test Stack', () => { // const app = new sst.App(); diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/src/ExampleApp.tsx b/build-tests-samples/heft-storybook-v6-react-tutorial/src/ExampleApp.tsx index d81154eaef..52326492b0 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/src/ExampleApp.tsx +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/src/ExampleApp.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; -import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch'; +import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch.tsx'; /** * This React component renders the application page. diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/src/ToggleSwitch.stories.tsx b/build-tests-samples/heft-storybook-v6-react-tutorial/src/ToggleSwitch.stories.tsx index 364bf6e036..8b17bf72db 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/src/ToggleSwitch.stories.tsx +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/src/ToggleSwitch.stories.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import type { ComponentStory, ComponentMeta } from 'heft-storybook-v6-react-tutorial-storykit'; -import { ToggleSwitch } from './ToggleSwitch'; +import { ToggleSwitch } from './ToggleSwitch.tsx'; export default { title: 'Octogonz/ToggleSwitch', diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/src/index.tsx b/build-tests-samples/heft-storybook-v6-react-tutorial/src/index.tsx index d2a345895c..2674b9ed2f 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/src/index.tsx +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/src/index.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import { ExampleApp } from './ExampleApp'; +import { ExampleApp } from './ExampleApp.tsx'; import './index.css'; diff --git a/build-tests-samples/heft-storybook-v6-react-tutorial/src/test/ToggleSwitch.test.ts b/build-tests-samples/heft-storybook-v6-react-tutorial/src/test/ToggleSwitch.test.ts index 0891628cc5..0dae1bce33 100644 --- a/build-tests-samples/heft-storybook-v6-react-tutorial/src/test/ToggleSwitch.test.ts +++ b/build-tests-samples/heft-storybook-v6-react-tutorial/src/test/ToggleSwitch.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ToggleSwitch } from '../ToggleSwitch'; +import { ToggleSwitch } from '../ToggleSwitch.tsx'; describe('ToggleSwitch', () => { it('can be tested', () => { diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/src/ExampleApp.tsx b/build-tests-samples/heft-storybook-v9-react-tutorial/src/ExampleApp.tsx index d81154eaef..52326492b0 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/src/ExampleApp.tsx +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/src/ExampleApp.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; -import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch'; +import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch.tsx'; /** * This React component renders the application page. diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/src/ToggleSwitch.stories.tsx b/build-tests-samples/heft-storybook-v9-react-tutorial/src/ToggleSwitch.stories.tsx index 83befb9fff..13d36b0a2f 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/src/ToggleSwitch.stories.tsx +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/src/ToggleSwitch.stories.tsx @@ -3,7 +3,7 @@ import type { Meta, StoryObj } from 'heft-storybook-v9-react-tutorial-storykit'; -import { ToggleSwitch } from './ToggleSwitch'; +import { ToggleSwitch } from './ToggleSwitch.tsx'; export default { title: 'Octogonz/ToggleSwitch', diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/src/index.tsx b/build-tests-samples/heft-storybook-v9-react-tutorial/src/index.tsx index 71c8197d79..d347148a73 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/src/index.tsx +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/src/index.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { createRoot } from 'react-dom/client'; -import { ExampleApp } from './ExampleApp'; +import { ExampleApp } from './ExampleApp.tsx'; import './index.css'; diff --git a/build-tests-samples/heft-storybook-v9-react-tutorial/src/test/ToggleSwitch.test.ts b/build-tests-samples/heft-storybook-v9-react-tutorial/src/test/ToggleSwitch.test.ts index 0891628cc5..0dae1bce33 100644 --- a/build-tests-samples/heft-storybook-v9-react-tutorial/src/test/ToggleSwitch.test.ts +++ b/build-tests-samples/heft-storybook-v9-react-tutorial/src/test/ToggleSwitch.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ToggleSwitch } from '../ToggleSwitch'; +import { ToggleSwitch } from '../ToggleSwitch.tsx'; describe('ToggleSwitch', () => { it('can be tested', () => { diff --git a/build-tests-samples/heft-web-rig-app-tutorial/src/start.tsx b/build-tests-samples/heft-web-rig-app-tutorial/src/start.tsx index bfd75db458..1c3c018349 100644 --- a/build-tests-samples/heft-web-rig-app-tutorial/src/start.tsx +++ b/build-tests-samples/heft-web-rig-app-tutorial/src/start.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; -import { ExampleApp } from './ExampleApp'; +import { ExampleApp } from './ExampleApp.tsx'; import './start.css'; diff --git a/build-tests-samples/heft-web-rig-library-tutorial/src/index.ts b/build-tests-samples/heft-web-rig-library-tutorial/src/index.ts index 1976762f2c..df1843fd97 100644 --- a/build-tests-samples/heft-web-rig-library-tutorial/src/index.ts +++ b/build-tests-samples/heft-web-rig-library-tutorial/src/index.ts @@ -2,4 +2,4 @@ // See LICENSE in the project root for license information. // eslint-disable-next-line no-restricted-syntax -export * from './ToggleSwitch'; +export * from './ToggleSwitch.tsx'; diff --git a/build-tests-samples/heft-web-rig-library-tutorial/src/test/ToggleSwitch.test.ts b/build-tests-samples/heft-web-rig-library-tutorial/src/test/ToggleSwitch.test.ts index 0891628cc5..0dae1bce33 100644 --- a/build-tests-samples/heft-web-rig-library-tutorial/src/test/ToggleSwitch.test.ts +++ b/build-tests-samples/heft-web-rig-library-tutorial/src/test/ToggleSwitch.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ToggleSwitch } from '../ToggleSwitch'; +import { ToggleSwitch } from '../ToggleSwitch.tsx'; describe('ToggleSwitch', () => { it('can be tested', () => { diff --git a/build-tests-samples/heft-webpack-basic-tutorial/src/ExampleApp.tsx b/build-tests-samples/heft-webpack-basic-tutorial/src/ExampleApp.tsx index d81154eaef..52326492b0 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/src/ExampleApp.tsx +++ b/build-tests-samples/heft-webpack-basic-tutorial/src/ExampleApp.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; -import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch'; +import { ToggleSwitch, type IToggleEventArgs } from './ToggleSwitch.tsx'; /** * This React component renders the application page. diff --git a/build-tests-samples/heft-webpack-basic-tutorial/src/index.tsx b/build-tests-samples/heft-webpack-basic-tutorial/src/index.tsx index eb3afe5d1e..a8ec16f0c8 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/src/index.tsx +++ b/build-tests-samples/heft-webpack-basic-tutorial/src/index.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; -import { ExampleApp } from './ExampleApp'; +import { ExampleApp } from './ExampleApp.tsx'; import './index.css'; diff --git a/build-tests-samples/heft-webpack-basic-tutorial/src/test/ToggleSwitch.test.ts b/build-tests-samples/heft-webpack-basic-tutorial/src/test/ToggleSwitch.test.ts index 0891628cc5..0dae1bce33 100644 --- a/build-tests-samples/heft-webpack-basic-tutorial/src/test/ToggleSwitch.test.ts +++ b/build-tests-samples/heft-webpack-basic-tutorial/src/test/ToggleSwitch.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ToggleSwitch } from '../ToggleSwitch'; +import { ToggleSwitch } from '../ToggleSwitch.tsx'; describe('ToggleSwitch', () => { it('can be tested', () => { diff --git a/build-tests-samples/packlets-tutorial/src/packlets/data-model/ExampleModel.ts b/build-tests-samples/packlets-tutorial/src/packlets/data-model/ExampleModel.ts index 61ad61c935..86b601e964 100644 --- a/build-tests-samples/packlets-tutorial/src/packlets/data-model/ExampleModel.ts +++ b/build-tests-samples/packlets-tutorial/src/packlets/data-model/ExampleModel.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { DataModel, IDataRecord } from './DataModel'; +import { DataModel, IDataRecord } from './DataModel.ts'; export class ExampleModel extends DataModel { public queryRecords(): IDataRecord[] { diff --git a/build-tests-samples/packlets-tutorial/src/packlets/data-model/index.ts b/build-tests-samples/packlets-tutorial/src/packlets/data-model/index.ts index 44c5344075..b8fde13b4d 100644 --- a/build-tests-samples/packlets-tutorial/src/packlets/data-model/index.ts +++ b/build-tests-samples/packlets-tutorial/src/packlets/data-model/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './DataModel'; -export * from './ExampleModel'; +export * from './DataModel.ts'; +export * from './ExampleModel.ts'; diff --git a/build-tests-samples/packlets-tutorial/src/packlets/logging/Logger.ts b/build-tests-samples/packlets-tutorial/src/packlets/logging/Logger.ts index f752379289..d9088ecb42 100644 --- a/build-tests-samples/packlets-tutorial/src/packlets/logging/Logger.ts +++ b/build-tests-samples/packlets-tutorial/src/packlets/logging/Logger.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { MessageType } from './MessageType'; +import { MessageType } from './MessageType.ts'; export class Logger { public log(messageType: MessageType, message: string): void { diff --git a/build-tests-samples/packlets-tutorial/src/packlets/logging/index.ts b/build-tests-samples/packlets-tutorial/src/packlets/logging/index.ts index a9cb7beac4..bb7e400245 100644 --- a/build-tests-samples/packlets-tutorial/src/packlets/logging/index.ts +++ b/build-tests-samples/packlets-tutorial/src/packlets/logging/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './Logger'; -export * from './MessageType'; +export * from './Logger.ts'; +export * from './MessageType.ts'; diff --git a/build-tests-samples/packlets-tutorial/src/packlets/reports/index.ts b/build-tests-samples/packlets-tutorial/src/packlets/reports/index.ts index 447a3eb6c4..b9a77876f6 100644 --- a/build-tests-samples/packlets-tutorial/src/packlets/reports/index.ts +++ b/build-tests-samples/packlets-tutorial/src/packlets/reports/index.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './MainReport'; +export * from './MainReport.ts'; diff --git a/build-tests-samples/packlets-tutorial/src/start.ts b/build-tests-samples/packlets-tutorial/src/start.ts index b36a51c36a..2be7b3e5bf 100644 --- a/build-tests-samples/packlets-tutorial/src/start.ts +++ b/build-tests-samples/packlets-tutorial/src/start.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { App } from './app/App'; +import { App } from './app/App.ts'; const app: App = new App(); app.run(); diff --git a/build-tests/api-documenter-test/src/index.ts b/build-tests/api-documenter-test/src/index.ts index b4a1fefa50..da06fa0d6b 100644 --- a/build-tests/api-documenter-test/src/index.ts +++ b/build-tests/api-documenter-test/src/index.ts @@ -11,14 +11,14 @@ */ // eslint-disable-next-line no-restricted-syntax -export * from './DocClass1'; +export * from './DocClass1.ts'; // eslint-disable-next-line no-restricted-syntax -export * from './DocEnums'; -import type { IDocInterface1, IDocInterface3, SystemEvent } from './DocClass1'; +export * from './DocEnums.ts'; +import type { IDocInterface1, IDocInterface3, SystemEvent } from './DocClass1.ts'; -export { DecoratorExample } from './DecoratorExample'; +export { DecoratorExample } from './DecoratorExample.ts'; -export { AbstractClass } from './AbstractClass'; +export { AbstractClass } from './AbstractClass.ts'; /** * A type alias diff --git a/build-tests/api-extractor-scenarios/etc/bundlerModuleResolution/api-extractor-scenarios.api.json b/build-tests/api-extractor-scenarios/etc/bundlerModuleResolution/api-extractor-scenarios.api.json index 440de9656f..d3b2082460 100644 --- a/build-tests/api-extractor-scenarios/etc/bundlerModuleResolution/api-extractor-scenarios.api.json +++ b/build-tests/api-extractor-scenarios/etc/bundlerModuleResolution/api-extractor-scenarios.api.json @@ -199,7 +199,7 @@ }, { "kind": "Content", - "text": "import(\"./other\")." + "text": "import(\"./other.ts\")." }, { "kind": "Reference", diff --git a/build-tests/api-extractor-scenarios/etc/dynamicImportType/api-extractor-scenarios.api.json b/build-tests/api-extractor-scenarios/etc/dynamicImportType/api-extractor-scenarios.api.json index f9ae5ecf13..5a0fc43b8a 100644 --- a/build-tests/api-extractor-scenarios/etc/dynamicImportType/api-extractor-scenarios.api.json +++ b/build-tests/api-extractor-scenarios/etc/dynamicImportType/api-extractor-scenarios.api.json @@ -320,7 +320,7 @@ }, { "kind": "Content", - "text": "import('./Options')." + "text": "import('./Options.ts')." }, { "kind": "Reference", @@ -355,7 +355,7 @@ }, { "kind": "Content", - "text": "import('./re-export')." + "text": "import('./re-export.ts')." }, { "kind": "Reference", diff --git a/build-tests/api-extractor-scenarios/src/ambientNameConflict/index.ts b/build-tests/api-extractor-scenarios/src/ambientNameConflict/index.ts index 4c1ade0aa8..86345516f0 100644 --- a/build-tests/api-extractor-scenarios/src/ambientNameConflict/index.ts +++ b/build-tests/api-extractor-scenarios/src/ambientNameConflict/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { Promise as MyPromise } from './localFile'; +import { Promise as MyPromise } from './localFile.ts'; /** * @public diff --git a/build-tests/api-extractor-scenarios/src/ambientNameConflict2/index.ts b/build-tests/api-extractor-scenarios/src/ambientNameConflict2/index.ts index 61430f46c8..1bb36584e1 100644 --- a/build-tests/api-extractor-scenarios/src/ambientNameConflict2/index.ts +++ b/build-tests/api-extractor-scenarios/src/ambientNameConflict2/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { getDate } from './getDate'; -export { Date } from './Date'; +export { getDate } from './getDate.ts'; +export { Date } from './Date.ts'; diff --git a/build-tests/api-extractor-scenarios/src/apiItemKinds/index.ts b/build-tests/api-extractor-scenarios/src/apiItemKinds/index.ts index a380574a7e..2fe2cb591f 100644 --- a/build-tests/api-extractor-scenarios/src/apiItemKinds/index.ts +++ b/build-tests/api-extractor-scenarios/src/apiItemKinds/index.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './classes'; -export * from './enums'; -export * from './functions'; -export * from './interfaces'; -export * from './namespaces'; -export * from './typeAliases'; -export * from './variables'; +export * from './classes.ts'; +export * from './enums.ts'; +export * from './functions.ts'; +export * from './interfaces.ts'; +export * from './namespaces.ts'; +export * from './typeAliases.ts'; +export * from './variables.ts'; diff --git a/build-tests/api-extractor-scenarios/src/bundlerModuleResolution/index.ts b/build-tests/api-extractor-scenarios/src/bundlerModuleResolution/index.ts index 5587838462..043bdb18d9 100644 --- a/build-tests/api-extractor-scenarios/src/bundlerModuleResolution/index.ts +++ b/build-tests/api-extractor-scenarios/src/bundlerModuleResolution/index.ts @@ -1,4 +1,4 @@ -import { foo } from './other'; +import { foo } from './other.ts'; /** * @public diff --git a/build-tests/api-extractor-scenarios/src/circularImport/IFile.ts b/build-tests/api-extractor-scenarios/src/circularImport/IFile.ts index 8137ec7a37..7a82b42954 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport/IFile.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport/IFile.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IFolder } from './IFolder'; +import { IFolder } from './IFolder.ts'; /** @public */ export class IFile { diff --git a/build-tests/api-extractor-scenarios/src/circularImport/IFolder.ts b/build-tests/api-extractor-scenarios/src/circularImport/IFolder.ts index d8ac129b32..e5f789f788 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport/IFolder.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport/IFolder.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IFile } from './IFile'; +import { IFile } from './IFile.ts'; /** @public */ export class IFolder { diff --git a/build-tests/api-extractor-scenarios/src/circularImport/index.ts b/build-tests/api-extractor-scenarios/src/circularImport/index.ts index d08c310c3b..3a6c92632c 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport/index.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { IFile } from './IFile'; -export { IFolder } from './IFolder'; +export { IFile } from './IFile.ts'; +export { IFolder } from './IFolder.ts'; diff --git a/build-tests/api-extractor-scenarios/src/circularImport2/IFile.ts b/build-tests/api-extractor-scenarios/src/circularImport2/IFile.ts index 3ef9e76c9b..70bf02f912 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport2/IFile.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport2/IFile.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './IFolder'; -import { IFolder } from './IFolder'; +export * from './IFolder.ts'; +import { IFolder } from './IFolder.ts'; /** @public */ export class IFile { diff --git a/build-tests/api-extractor-scenarios/src/circularImport2/IFolder.ts b/build-tests/api-extractor-scenarios/src/circularImport2/IFolder.ts index cc1723a85c..d78e6841b6 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport2/IFolder.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport2/IFolder.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './IFile'; -import { IFile } from './IFile'; +export * from './IFile.ts'; +import { IFile } from './IFile.ts'; /** @public */ export class IFolder { diff --git a/build-tests/api-extractor-scenarios/src/circularImport2/index.ts b/build-tests/api-extractor-scenarios/src/circularImport2/index.ts index eac1858f93..d7de79a113 100644 --- a/build-tests/api-extractor-scenarios/src/circularImport2/index.ts +++ b/build-tests/api-extractor-scenarios/src/circularImport2/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './IFile'; -export * from './IFolder'; +export * from './IFile.ts'; +export * from './IFolder.ts'; diff --git a/build-tests/api-extractor-scenarios/src/docReferencesAlias/Item.ts b/build-tests/api-extractor-scenarios/src/docReferencesAlias/Item.ts index fd9fe5ecfe..ec71084100 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesAlias/Item.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesAlias/Item.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import Options from './Options'; +import Options from './Options.ts'; /** @public */ export default class Item { diff --git a/build-tests/api-extractor-scenarios/src/docReferencesAlias/index.ts b/build-tests/api-extractor-scenarios/src/docReferencesAlias/index.ts index 889570c330..8db3bdec28 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesAlias/index.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesAlias/index.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export type { default as renamed_Options } from './Options'; -export { default as Item } from './Item'; +export type { default as renamed_Options } from './Options.ts'; +export { default as Item } from './Item.ts'; diff --git a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/Item.ts b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/Item.ts index 247b3f4883..d394a38687 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/Item.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/Item.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import Options from './renamed/Options'; +import Options from './renamed/Options.ts'; /** @public */ export default class Item { diff --git a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/index.ts b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/index.ts index e5ae676d35..67afc792c1 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/index.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/index.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import * as renamed from './renamed'; +import * as renamed from './renamed/index.ts'; export { renamed }; -export { default as Item } from './Item'; +export { default as Item } from './Item.ts'; diff --git a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/Options.ts b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/Options.ts index d58c03679a..591c431312 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/Options.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/Options.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import SubOptions from './sub/SubOptions'; +import SubOptions from './sub/SubOptions.ts'; /** @public */ export default interface Options { diff --git a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/index.ts b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/index.ts index 1066c9b2a0..95c25ee1af 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/index.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/index.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import * as sub from './sub'; +import * as sub from './sub/index.ts'; export { sub }; -export { default as Options } from './Options'; +export { default as Options } from './Options.ts'; diff --git a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/sub/index.ts b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/sub/index.ts index 1c21a1ed30..3f9d0ec929 100644 --- a/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/sub/index.ts +++ b/build-tests/api-extractor-scenarios/src/docReferencesNamespaceAlias/renamed/sub/index.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export type { default as SubOptions } from './SubOptions'; +export type { default as SubOptions } from './SubOptions.ts'; diff --git a/build-tests/api-extractor-scenarios/src/dynamicImportType/Item.ts b/build-tests/api-extractor-scenarios/src/dynamicImportType/Item.ts index 5f638c0854..3dd916a3a3 100644 --- a/build-tests/api-extractor-scenarios/src/dynamicImportType/Item.ts +++ b/build-tests/api-extractor-scenarios/src/dynamicImportType/Item.ts @@ -3,9 +3,9 @@ /** @public */ export class Item { - options: import('./Options').Options; + options: import('./Options.ts').Options; lib1: import('api-extractor-lib1-test').Lib1Interface; lib2: import('api-extractor-lib2-test').Lib2Interface; lib3: import('api-extractor-lib3-test').Lib1Class; - reExport: import('./re-export').Lib2Class; + reExport: import('./re-export.ts').Lib2Class; } diff --git a/build-tests/api-extractor-scenarios/src/dynamicImportType/index.ts b/build-tests/api-extractor-scenarios/src/dynamicImportType/index.ts index 49797b5dcf..600e060607 100644 --- a/build-tests/api-extractor-scenarios/src/dynamicImportType/index.ts +++ b/build-tests/api-extractor-scenarios/src/dynamicImportType/index.ts @@ -5,4 +5,4 @@ import * as Lib1 from 'api-extractor-lib1-test'; import { Lib2Interface } from 'api-extractor-lib2-test'; export { Lib1, Lib2Interface }; -export { Item } from './Item'; +export { Item } from './Item.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator.ts index 17df6809b4..d13c4634a4 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator.ts @@ -20,4 +20,4 @@ export function subtract(a: number, b: number): number { return a - b; } -export * from './common'; +export * from './common.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator2.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator2.ts index 38b5ef6950..c607328a36 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator2.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs/calculator2.ts @@ -20,4 +20,4 @@ export function subtract(a: bigint, b: bigint): bigint { return a - b; } -export * from './common'; +export * from './common.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs/index.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs/index.ts index f2b5496029..be5b4098cd 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs/index.ts @@ -1,5 +1,5 @@ -import * as calculator from './calculator'; +import * as calculator from './calculator.ts'; export { calculator }; -import * as calculator2 from './calculator2'; +import * as calculator2 from './calculator2.ts'; export { calculator2 }; diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs2/index.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs2/index.ts index 2e3ab2c86c..e74e38806e 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs2/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs2/index.ts @@ -1,2 +1,2 @@ -import * as ns from './ns'; +import * as ns from './ns.ts'; export { ns }; diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs2/ns.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs2/ns.ts index 5ea39d1dc1..a30b6afa19 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs2/ns.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs2/ns.ts @@ -1,4 +1,4 @@ -import * as forgottenNs from './forgottenNs'; +import * as forgottenNs from './forgottenNs.ts'; /** * @public diff --git a/build-tests/api-extractor-scenarios/src/exportImportStarAs3/index.ts b/build-tests/api-extractor-scenarios/src/exportImportStarAs3/index.ts index 0afcd1c27e..eeb39315e3 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportStarAs3/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportStarAs3/index.ts @@ -2,5 +2,5 @@ * Test that when exporting namespaces, we don't export members that got trimmed. * See this issue: https://github.com/microsoft/rushstack/issues/2791 */ -import * as NS from './NamespaceWithTrimming'; +import * as NS from './NamespaceWithTrimming.ts'; export { NS }; diff --git a/build-tests/api-extractor-scenarios/src/exportImportedExternalDefault/index.ts b/build-tests/api-extractor-scenarios/src/exportImportedExternalDefault/index.ts index a759cbbd7c..cee1fdd426 100644 --- a/build-tests/api-extractor-scenarios/src/exportImportedExternalDefault/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportImportedExternalDefault/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { default, Lib2Class } from './importer'; +export { default, Lib2Class } from './importer.ts'; import { default as Base } from 'api-extractor-lib2-test'; diff --git a/build-tests/api-extractor-scenarios/src/exportStar/index.ts b/build-tests/api-extractor-scenarios/src/exportStar/index.ts index 4fb1ad380c..8e34e217d0 100644 --- a/build-tests/api-extractor-scenarios/src/exportStar/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStar/index.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './reexportStar'; +export * from './reexportStar.ts'; // TODO: "Internal Error: The symbol A was also exported as B; this is not supported yet" -// export { A as B } from './localFile'; +// export { A as B } from './localFile.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStar/reexportStar.ts b/build-tests/api-extractor-scenarios/src/exportStar/reexportStar.ts index 10f0fc318f..c31dbc35ef 100644 --- a/build-tests/api-extractor-scenarios/src/exportStar/reexportStar.ts +++ b/build-tests/api-extractor-scenarios/src/exportStar/reexportStar.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './localFile'; +export * from './localFile.ts'; /** @public */ export class C {} diff --git a/build-tests/api-extractor-scenarios/src/exportStar2/index.ts b/build-tests/api-extractor-scenarios/src/exportStar2/index.ts index 0c69d7b4ab..03ab8a56b8 100644 --- a/build-tests/api-extractor-scenarios/src/exportStar2/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStar2/index.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export * from './reexportStar'; +export * from './reexportStar.ts'; export * from 'api-extractor-lib2-test'; diff --git a/build-tests/api-extractor-scenarios/src/exportStar3/index.ts b/build-tests/api-extractor-scenarios/src/exportStar3/index.ts index c99fb5bab9..3d603cdd8b 100644 --- a/build-tests/api-extractor-scenarios/src/exportStar3/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStar3/index.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -export { A, Lib1Class, Lib2Interface as RenamedLib2Interface } from './reexportStar'; +export { A, Lib1Class, Lib2Interface as RenamedLib2Interface } from './reexportStar.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs/calculator.ts b/build-tests/api-extractor-scenarios/src/exportStarAs/calculator.ts index 17df6809b4..d13c4634a4 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs/calculator.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs/calculator.ts @@ -20,4 +20,4 @@ export function subtract(a: number, b: number): number { return a - b; } -export * from './common'; +export * from './common.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs/calculator2.ts b/build-tests/api-extractor-scenarios/src/exportStarAs/calculator2.ts index 38b5ef6950..c607328a36 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs/calculator2.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs/calculator2.ts @@ -20,4 +20,4 @@ export function subtract(a: bigint, b: bigint): bigint { return a - b; } -export * from './common'; +export * from './common.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs/index.ts b/build-tests/api-extractor-scenarios/src/exportStarAs/index.ts index 22ebe390dc..6310a9522d 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs/index.ts @@ -1,2 +1,2 @@ -export * as calculator from './calculator'; -export * as calculator2 from './calculator2'; +export * as calculator from './calculator.ts'; +export * as calculator2 from './calculator2.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs2/index.ts b/build-tests/api-extractor-scenarios/src/exportStarAs2/index.ts index 497daa5907..d23e13b3bb 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs2/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs2/index.ts @@ -1 +1 @@ -export * as ns from './ns'; +export * as ns from './ns.ts'; diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs2/ns.ts b/build-tests/api-extractor-scenarios/src/exportStarAs2/ns.ts index 5ea39d1dc1..a30b6afa19 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs2/ns.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs2/ns.ts @@ -1,4 +1,4 @@ -import * as forgottenNs from './forgottenNs'; +import * as forgottenNs from './forgottenNs.ts'; /** * @public diff --git a/build-tests/api-extractor-scenarios/src/exportStarAs3/index.ts b/build-tests/api-extractor-scenarios/src/exportStarAs3/index.ts index 6bd5a26a26..84c5ebd939 100644 --- a/build-tests/api-extractor-scenarios/src/exportStarAs3/index.ts +++ b/build-tests/api-extractor-scenarios/src/exportStarAs3/index.ts @@ -2,4 +2,4 @@ * Test that when exporting namespaces, we don't export members that got trimmed. * See this issue: https://github.com/microsoft/rushstack/issues/2791 */ -export * as NS from './NamespaceWithTrimming'; +export * as NS from './NamespaceWithTrimming.ts'; diff --git a/build-tests/api-extractor-scenarios/src/includeForgottenExports/index.ts b/build-tests/api-extractor-scenarios/src/includeForgottenExports/index.ts index 908200b297..82df5d419a 100644 --- a/build-tests/api-extractor-scenarios/src/includeForgottenExports/index.ts +++ b/build-tests/api-extractor-scenarios/src/includeForgottenExports/index.ts @@ -1,4 +1,4 @@ -import * as internal2 from './internal2'; +import * as internal2 from './internal2.ts'; /** * `ForgottenExport2` wants to inherit this doc comment, but unfortunately this isn't @@ -29,7 +29,7 @@ export function someFunction1(): ForgottenExport1 { */ export type DuplicateName = boolean; -export { someFunction2 } from './internal1'; +export { someFunction2 } from './internal1.ts'; /** @public */ export namespace SomeNamespace1 { @@ -67,4 +67,4 @@ export function someFunction6(): AnotherDuplicateName { return new AnotherDuplicateName(); } -export { someFunction7 } from './internal1'; +export { someFunction7 } from './internal1.ts'; diff --git a/build-tests/api-extractor-scenarios/src/namedDefaultImport/index.ts b/build-tests/api-extractor-scenarios/src/namedDefaultImport/index.ts index 46104f65f5..d21419c537 100644 --- a/build-tests/api-extractor-scenarios/src/namedDefaultImport/index.ts +++ b/build-tests/api-extractor-scenarios/src/namedDefaultImport/index.ts @@ -1,5 +1,5 @@ import { default as DefaultClass_namedImport } from 'api-extractor-lib2-test'; -import { DefaultClass_reExport } from './re-export'; +import { DefaultClass_reExport } from './re-export.ts'; /** @public */ export interface DefaultImportTypes { diff --git a/build-tests/api-extractor-scenarios/src/namespaceImports/index.ts b/build-tests/api-extractor-scenarios/src/namespaceImports/index.ts index 5376cd3499..e6b4e6efd9 100644 --- a/build-tests/api-extractor-scenarios/src/namespaceImports/index.ts +++ b/build-tests/api-extractor-scenarios/src/namespaceImports/index.ts @@ -1,8 +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 i1 from './intermediate1'; -import * as i2 from './intermediate2'; +import * as i1 from './intermediate1.ts'; +import * as i2 from './intermediate2.ts'; export { i1, i2 }; diff --git a/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate1.ts b/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate1.ts index 59eb9ff7bc..badef12f36 100644 --- a/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate1.ts +++ b/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate1.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import * as internal from './internal'; +import * as internal from './internal.ts'; export { internal }; diff --git a/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate2.ts b/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate2.ts index 59eb9ff7bc..badef12f36 100644 --- a/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate2.ts +++ b/build-tests/api-extractor-scenarios/src/namespaceImports/intermediate2.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import * as internal from './internal'; +import * as internal from './internal.ts'; export { internal }; diff --git a/build-tests/api-extractor-scenarios/src/namespaceImports2/index.ts b/build-tests/api-extractor-scenarios/src/namespaceImports2/index.ts index 03b57b5c9a..d89586d4a5 100644 --- a/build-tests/api-extractor-scenarios/src/namespaceImports2/index.ts +++ b/build-tests/api-extractor-scenarios/src/namespaceImports2/index.ts @@ -1,8 +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 internal from './internal'; -import { SomeClass } from './internal'; +import * as internal from './internal.ts'; +import { SomeClass } from './internal.ts'; export { internal, SomeClass }; diff --git a/build-tests/api-extractor-scenarios/src/referenceTokens/index.ts b/build-tests/api-extractor-scenarios/src/referenceTokens/index.ts index 4646cbef91..34535057ed 100644 --- a/build-tests/api-extractor-scenarios/src/referenceTokens/index.ts +++ b/build-tests/api-extractor-scenarios/src/referenceTokens/index.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import { Lib2Class } from 'api-extractor-lib2-test'; -import { SomeClass5 } from './internal'; +import { SomeClass5 } from './internal.ts'; /** * Various namespace scenarios. diff --git a/build-tests/api-extractor-test-01/src/ReexportedClass2.ts b/build-tests/api-extractor-test-01/src/ReexportedClass2.ts index 17b6562f7e..cca8c2570e 100644 --- a/build-tests/api-extractor-test-01/src/ReexportedClass2.ts +++ b/build-tests/api-extractor-test-01/src/ReexportedClass2.ts @@ -4,4 +4,4 @@ /** * This class gets aliased twice before being exported from the package. */ -export { ReexportedClass1 as ReexportedClass2 } from './ReexportedClass1'; +export { ReexportedClass1 as ReexportedClass2 } from './ReexportedClass1.ts'; diff --git a/build-tests/api-extractor-test-01/src/ReexportedClass3/ReexportedClass3.ts b/build-tests/api-extractor-test-01/src/ReexportedClass3/ReexportedClass3.ts index f995a018f6..c6e1db2717 100644 --- a/build-tests/api-extractor-test-01/src/ReexportedClass3/ReexportedClass3.ts +++ b/build-tests/api-extractor-test-01/src/ReexportedClass3/ReexportedClass3.ts @@ -1 +1 @@ -export { ReexportedClass2 as ReexportedClass3 } from '.'; +export { ReexportedClass2 as ReexportedClass3 } from './index.ts'; diff --git a/build-tests/api-extractor-test-01/src/ReexportedClass3/index.ts b/build-tests/api-extractor-test-01/src/ReexportedClass3/index.ts index 02904c4af2..bb54afa932 100644 --- a/build-tests/api-extractor-test-01/src/ReexportedClass3/index.ts +++ b/build-tests/api-extractor-test-01/src/ReexportedClass3/index.ts @@ -1 +1 @@ -export { ReexportedClass2 } from '../ReexportedClass2'; +export { ReexportedClass2 } from '../ReexportedClass2.ts'; diff --git a/build-tests/api-extractor-test-01/src/index.ts b/build-tests/api-extractor-test-01/src/index.ts index 7f45cb7eb0..e7d5eb832c 100644 --- a/build-tests/api-extractor-test-01/src/index.ts +++ b/build-tests/api-extractor-test-01/src/index.ts @@ -84,18 +84,18 @@ export class DecoratorTest { } } -export { default as AbstractClass } from './AbstractClass'; -export { default as AbstractClass2, AbstractClass3 } from './AbstractClass2'; +export { default as AbstractClass } from './AbstractClass.ts'; +export { default as AbstractClass2, AbstractClass3 } from './AbstractClass2.ts'; -export { ClassWithAccessModifiers } from './AccessModifiers'; +export { ClassWithAccessModifiers } from './AccessModifiers.ts'; -export { ClassWithTypeLiterals } from './ClassWithTypeLiterals'; +export { ClassWithTypeLiterals } from './ClassWithTypeLiterals.ts'; -export * from './DeclarationMerging'; +export * from './DeclarationMerging.ts'; -export * from './Enums'; +export * from './Enums.ts'; -export { DefaultExportEdgeCase, default as ClassExportedAsDefault } from './DefaultExportEdgeCase'; +export { DefaultExportEdgeCase, default as ClassExportedAsDefault } from './DefaultExportEdgeCase.ts'; /** * Test that we can correctly carry default imports into the rollup .d.ts file @@ -107,21 +107,21 @@ export declare class UseLong { use_long(): Long; } -export { ClassWithSymbols, fullyExportedCustomSymbol } from './EcmaScriptSymbols'; +export { ClassWithSymbols, fullyExportedCustomSymbol } from './EcmaScriptSymbols.ts'; -export { ForgottenExportConsumer1 } from './ForgottenExportConsumer1'; -export { ForgottenExportConsumer2 } from './ForgottenExportConsumer2'; -export { ForgottenExportConsumer3 } from './ForgottenExportConsumer3'; +export { ForgottenExportConsumer1 } from './ForgottenExportConsumer1.ts'; +export { ForgottenExportConsumer2 } from './ForgottenExportConsumer2.ts'; +export { ForgottenExportConsumer3 } from './ForgottenExportConsumer3.ts'; -export type { default as IInterfaceAsDefaultExport } from './IInterfaceAsDefaultExport'; +export type { default as IInterfaceAsDefaultExport } from './IInterfaceAsDefaultExport.ts'; /** * Test the alias-following logic: This class gets aliased twice before being * exported from the package. */ -export { ReexportedClass3 as ReexportedClass } from './ReexportedClass3/ReexportedClass3'; +export { ReexportedClass3 as ReexportedClass } from './ReexportedClass3/ReexportedClass3.ts'; -export { TypeReferencesInAedoc } from './TypeReferencesInAedoc'; -export { ReferenceLibDirective } from './ReferenceLibDirective'; +export { TypeReferencesInAedoc } from './TypeReferencesInAedoc.ts'; +export { ReferenceLibDirective } from './ReferenceLibDirective.ts'; -export { VARIABLE, NamespaceContainingVariable } from './variableDeclarations'; +export { VARIABLE, NamespaceContainingVariable } from './variableDeclarations.ts'; diff --git a/build-tests/api-extractor-test-02/src/SubclassWithImport.ts b/build-tests/api-extractor-test-02/src/SubclassWithImport.ts index 6c5203abdb..5c22f32992 100644 --- a/build-tests/api-extractor-test-02/src/SubclassWithImport.ts +++ b/build-tests/api-extractor-test-02/src/SubclassWithImport.ts @@ -3,7 +3,7 @@ import { virtual, ISimpleInterface } from 'api-extractor-test-01'; -import { RenamedReexportedClass } from './RenamedReexportedClass'; +import { RenamedReexportedClass } from './RenamedReexportedClass.ts'; /** * Example of a class that inherits from an externally imported class. diff --git a/build-tests/api-extractor-test-02/src/index.ts b/build-tests/api-extractor-test-02/src/index.ts index b70d3bd1b7..00fdcaaf13 100644 --- a/build-tests/api-extractor-test-02/src/index.ts +++ b/build-tests/api-extractor-test-02/src/index.ts @@ -12,12 +12,12 @@ * * @packageDocumentation */ -export { SubclassWithImport } from './SubclassWithImport'; +export { SubclassWithImport } from './SubclassWithImport.ts'; -export type * from './TypeFromImportedModule'; +export type * from './TypeFromImportedModule.ts'; -export { importDeduping1 } from './ImportDeduping1'; -export { importDeduping2 } from './ImportDeduping2'; +export { importDeduping1 } from './ImportDeduping1.ts'; +export { importDeduping2 } from './ImportDeduping2.ts'; export { ReexportedClass as RenamedReexportedClass3 } from 'api-extractor-test-01'; -export * from './Ambient'; +export * from './Ambient.ts'; diff --git a/build-tests/api-extractor-test-04/src/BetaClass.ts b/build-tests/api-extractor-test-04/src/BetaClass.ts index 2a8251ec1a..4db8b9dad7 100644 --- a/build-tests/api-extractor-test-04/src/BetaClass.ts +++ b/build-tests/api-extractor-test-04/src/BetaClass.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { BetaInterface } from './BetaInterface'; +import { BetaInterface } from './BetaInterface.ts'; /** * This is a beta class diff --git a/build-tests/api-extractor-test-04/src/IPublicComplexInterface.ts b/build-tests/api-extractor-test-04/src/IPublicComplexInterface.ts index 7c689feebe..cac5f852c4 100644 --- a/build-tests/api-extractor-test-04/src/IPublicComplexInterface.ts +++ b/build-tests/api-extractor-test-04/src/IPublicComplexInterface.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IPublicClassInternalParameters } from './PublicClass'; +import { IPublicClassInternalParameters } from './PublicClass.ts'; /** * This is a public class diff --git a/build-tests/api-extractor-test-04/src/index.ts b/build-tests/api-extractor-test-04/src/index.ts index 29d8a6df35..fcb1cbd8b7 100644 --- a/build-tests/api-extractor-test-04/src/index.ts +++ b/build-tests/api-extractor-test-04/src/index.ts @@ -9,15 +9,15 @@ * @packageDocumentation */ -export { AlphaClass } from './AlphaClass'; -export { BetaClass } from './BetaClass'; -export { PublicClass, type IPublicClassInternalParameters } from './PublicClass'; -export { InternalClass } from './InternalClass'; -export { EntangledNamespace } from './EntangledNamespace'; +export { AlphaClass } from './AlphaClass.ts'; +export { BetaClass } from './BetaClass.ts'; +export { PublicClass, type IPublicClassInternalParameters } from './PublicClass.ts'; +export { InternalClass } from './InternalClass.ts'; +export { EntangledNamespace } from './EntangledNamespace.ts'; -export * from './EnumExamples'; +export * from './EnumExamples.ts'; -export type { BetaInterface } from './BetaInterface'; +export type { BetaInterface } from './BetaInterface.ts'; /** * This is a module-scoped variable. @@ -25,7 +25,7 @@ export type { BetaInterface } from './BetaInterface'; */ export const variableDeclaration: string = 'hello'; -import { AlphaClass } from './AlphaClass'; +import { AlphaClass } from './AlphaClass.ts'; /** * This is an exported type alias. @@ -33,6 +33,6 @@ import { AlphaClass } from './AlphaClass'; */ export type ExportedAlias = AlphaClass; -export type { IPublicComplexInterface } from './IPublicComplexInterface'; +export type { IPublicComplexInterface } from './IPublicComplexInterface.ts'; export type { Lib1Interface } from 'api-extractor-lib1-test'; 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 35d9370827..2054b56163 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.57.0" + "packageVersion": "7.57.1" } ] } diff --git a/build-tests/hashed-folder-copy-plugin-webpack5-test/src/index.ts b/build-tests/hashed-folder-copy-plugin-webpack5-test/src/index.ts index 72f4cd93c9..e93b1aca9b 100644 --- a/build-tests/hashed-folder-copy-plugin-webpack5-test/src/index.ts +++ b/build-tests/hashed-folder-copy-plugin-webpack5-test/src/index.ts @@ -1,4 +1,4 @@ -import { ASSETS_BASE_URL2 } from './submodule'; +import { ASSETS_BASE_URL2 } from './submodule.ts'; const ASSETS_BASE_URL: string = requireFolder({ outputFolder: 'assets_[hash]', diff --git a/build-tests/heft-jest-preset-test/src/test/index.test.ts b/build-tests/heft-jest-preset-test/src/test/index.test.ts index af48b27f97..7c03c7488e 100644 --- a/build-tests/heft-jest-preset-test/src/test/index.test.ts +++ b/build-tests/heft-jest-preset-test/src/test/index.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { addThreeStars } from '..'; +import { addThreeStars } from '../index.ts'; describe(addThreeStars.name, () => { it('adds three stars', () => { diff --git a/build-tests/heft-jest-reporters-test/src/test/index.test.ts b/build-tests/heft-jest-reporters-test/src/test/index.test.ts index af48b27f97..7c03c7488e 100644 --- a/build-tests/heft-jest-reporters-test/src/test/index.test.ts +++ b/build-tests/heft-jest-reporters-test/src/test/index.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { addThreeStars } from '..'; +import { addThreeStars } from '../index.ts'; describe(addThreeStars.name, () => { it('adds three stars', () => { diff --git a/build-tests/heft-minimal-rig-usage-test/src/test/example.test.ts b/build-tests/heft-minimal-rig-usage-test/src/test/example.test.ts index 042c99d819..43e7ca0be5 100644 --- a/build-tests/heft-minimal-rig-usage-test/src/test/example.test.ts +++ b/build-tests/heft-minimal-rig-usage-test/src/test/example.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { TestClass } from '../index'; +import { TestClass } from '../index.ts'; describe('An example test', () => { it('Is able to import things', () => { diff --git a/build-tests/heft-rspack-everything-test/src/test/ExampleTest.test.ts b/build-tests/heft-rspack-everything-test/src/test/ExampleTest.test.ts index 565432eacf..1bc362e155 100644 --- a/build-tests/heft-rspack-everything-test/src/test/ExampleTest.test.ts +++ b/build-tests/heft-rspack-everything-test/src/test/ExampleTest.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ChunkClass } from '../chunks/ChunkClass'; +import { ChunkClass } from '../chunks/ChunkClass.ts'; describe('Example Test', () => { it('Correctly tests stuff', () => { diff --git a/build-tests/heft-sass-test/src/index.tsx b/build-tests/heft-sass-test/src/index.tsx index 83eba2aa72..e55937f9b2 100644 --- a/build-tests/heft-sass-test/src/index.tsx +++ b/build-tests/heft-sass-test/src/index.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom/client'; -import { ExampleApp } from './ExampleApp'; +import { ExampleApp } from './ExampleApp.tsx'; const rootDiv: HTMLElement = document.getElementById('root')!; ReactDOM.createRoot(rootDiv).render(); diff --git a/build-tests/heft-sass-test/src/test/ExampleApp.test.ts b/build-tests/heft-sass-test/src/test/ExampleApp.test.ts index bbc51e195e..dc3bedde36 100644 --- a/build-tests/heft-sass-test/src/test/ExampleApp.test.ts +++ b/build-tests/heft-sass-test/src/test/ExampleApp.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ExampleApp } from '../ExampleApp'; +import { ExampleApp } from '../ExampleApp.tsx'; describe('ExampleApp', () => { it('can be tested', () => { diff --git a/build-tests/heft-sass-test/src/test/lib-commonjs.test.ts b/build-tests/heft-sass-test/src/test/lib-commonjs.test.ts index 93bf6191ae..9fe8ad779c 100644 --- a/build-tests/heft-sass-test/src/test/lib-commonjs.test.ts +++ b/build-tests/heft-sass-test/src/test/lib-commonjs.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { validateSnapshots, getScssFiles } from './validateSnapshots'; +import { validateSnapshots, getScssFiles } from './validateSnapshots.ts'; describe('SASS CJS Shims', () => { const libFolder: string = path.join(__dirname, '../../lib-commonjs'); diff --git a/build-tests/heft-sass-test/src/test/lib-css.test.ts b/build-tests/heft-sass-test/src/test/lib-css.test.ts index d80ff02015..1b8d12b0d0 100644 --- a/build-tests/heft-sass-test/src/test/lib-css.test.ts +++ b/build-tests/heft-sass-test/src/test/lib-css.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { validateSnapshots, getScssFiles } from './validateSnapshots'; +import { validateSnapshots, getScssFiles } from './validateSnapshots.ts'; describe('SASS No Shims', () => { const libFolder: string = path.join(__dirname, '../../lib-css'); 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 55a3215465..3e05763aaf 100644 --- a/build-tests/heft-sass-test/src/test/lib.test.ts +++ b/build-tests/heft-sass-test/src/test/lib.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { validateSnapshots, getScssFiles } from './validateSnapshots'; +import { validateSnapshots, getScssFiles } from './validateSnapshots.ts'; describe('SASS ESM Shims', () => { const libFolder: string = path.join(__dirname, '../../lib-esm'); diff --git a/build-tests/heft-sass-test/src/test/sass-ts.test.ts b/build-tests/heft-sass-test/src/test/sass-ts.test.ts index 1055956639..e84ce70daa 100644 --- a/build-tests/heft-sass-test/src/test/sass-ts.test.ts +++ b/build-tests/heft-sass-test/src/test/sass-ts.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { validateSnapshots, getScssFiles } from './validateSnapshots'; +import { validateSnapshots, getScssFiles } from './validateSnapshots.ts'; describe('SASS Typings', () => { const libFolder: string = path.join(__dirname, '../../temp/sass-ts'); diff --git a/build-tests/heft-typescript-composite-test/eslint.config.js b/build-tests/heft-typescript-composite-test/eslint.config.js index 0b09ea9f25..16b6a38952 100644 --- a/build-tests/heft-typescript-composite-test/eslint.config.js +++ b/build-tests/heft-typescript-composite-test/eslint.config.js @@ -12,6 +12,11 @@ module.exports = [ tsconfigRootDir: __dirname, project: './tsconfig-eslint.json' } + }, + rules: { + // This project uses TypeScript composite mode with moduleResolution: "node", + // which doesn't support rewriteRelativeImportExtensions or allowImportingTsExtensions + 'import/extensions': 'off' } } ]; diff --git a/build-tests/heft-web-rig-library-test/src/test/example.test.ts b/build-tests/heft-web-rig-library-test/src/test/example.test.ts index 042c99d819..43e7ca0be5 100644 --- a/build-tests/heft-web-rig-library-test/src/test/example.test.ts +++ b/build-tests/heft-web-rig-library-test/src/test/example.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { TestClass } from '../index'; +import { TestClass } from '../index.ts'; describe('An example test', () => { it('Is able to import things', () => { diff --git a/build-tests/heft-webpack4-everything-test/src/test/ExampleTest.test.ts b/build-tests/heft-webpack4-everything-test/src/test/ExampleTest.test.ts index 565432eacf..1bc362e155 100644 --- a/build-tests/heft-webpack4-everything-test/src/test/ExampleTest.test.ts +++ b/build-tests/heft-webpack4-everything-test/src/test/ExampleTest.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ChunkClass } from '../chunks/ChunkClass'; +import { ChunkClass } from '../chunks/ChunkClass.ts'; describe('Example Test', () => { it('Correctly tests stuff', () => { diff --git a/build-tests/heft-webpack5-everything-test/src/test/ExampleTest.test.ts b/build-tests/heft-webpack5-everything-test/src/test/ExampleTest.test.ts index 565432eacf..1bc362e155 100644 --- a/build-tests/heft-webpack5-everything-test/src/test/ExampleTest.test.ts +++ b/build-tests/heft-webpack5-everything-test/src/test/ExampleTest.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { ChunkClass } from '../chunks/ChunkClass'; +import { ChunkClass } from '../chunks/ChunkClass.ts'; describe('Example Test', () => { it('Correctly tests stuff', () => { diff --git a/build-tests/localization-plugin-test-01/eslint.config.js b/build-tests/localization-plugin-test-01/eslint.config.js index c15e607731..3b6b13bbd8 100644 --- a/build-tests/localization-plugin-test-01/eslint.config.js +++ b/build-tests/localization-plugin-test-01/eslint.config.js @@ -13,6 +13,12 @@ module.exports = [ parserOptions: { tsconfigRootDir: __dirname } + }, + rules: { + // This project uses ts-loader, so imports must remain extensionless. + // Adding .ts extensions would cause rewriteRelativeImportExtensions to emit .js, + // which webpack can't resolve since only .ts source files exist on disk. + 'import/extensions': 'off' } } ]; diff --git a/build-tests/localization-plugin-test-01/src/indexA.ts b/build-tests/localization-plugin-test-01/src/indexA.ts index 5aaba8afbc..b4a4deaeb5 100644 --- a/build-tests/localization-plugin-test-01/src/indexA.ts +++ b/build-tests/localization-plugin-test-01/src/indexA.ts @@ -4,7 +4,7 @@ import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithoutStringsClass }) => { - const chunk: import('./chunks/chunkWithoutStrings').ChunkWithoutStringsClass = + const chunk: import('./chunks/chunkWithoutStrings.ts').ChunkWithoutStringsClass = new ChunkWithoutStringsClass(); chunk.doStuff(); }) diff --git a/build-tests/localization-plugin-test-02/eslint.config.js b/build-tests/localization-plugin-test-02/eslint.config.js index c15e607731..3b6b13bbd8 100644 --- a/build-tests/localization-plugin-test-02/eslint.config.js +++ b/build-tests/localization-plugin-test-02/eslint.config.js @@ -13,6 +13,12 @@ module.exports = [ parserOptions: { tsconfigRootDir: __dirname } + }, + rules: { + // This project uses ts-loader, so imports must remain extensionless. + // Adding .ts extensions would cause rewriteRelativeImportExtensions to emit .js, + // which webpack can't resolve since only .ts source files exist on disk. + 'import/extensions': 'off' } } ]; diff --git a/build-tests/localization-plugin-test-02/src/indexA.ts b/build-tests/localization-plugin-test-02/src/indexA.ts index 65816657a4..c5af7ed8d7 100644 --- a/build-tests/localization-plugin-test-02/src/indexA.ts +++ b/build-tests/localization-plugin-test-02/src/indexA.ts @@ -22,7 +22,7 @@ console.log(strings3.string2); import(/* webpackChunkName: 'chunk-with-strings' */ './chunks/chunkWithStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithStringsClass }) => { - const chunk: import('./chunks/chunkWithStrings').ChunkWithStringsClass = new ChunkWithStringsClass(); + const chunk: import('./chunks/chunkWithStrings.ts').ChunkWithStringsClass = new ChunkWithStringsClass(); chunk.doStuff(); }) .catch((e) => { @@ -33,7 +33,7 @@ import(/* webpackChunkName: 'chunk-with-strings' */ './chunks/chunkWithStrings') import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithoutStringsClass }) => { - const chunk: import('./chunks/chunkWithoutStrings').ChunkWithoutStringsClass = + const chunk: import('./chunks/chunkWithoutStrings.ts').ChunkWithoutStringsClass = new ChunkWithoutStringsClass(); chunk.doStuff(); }) diff --git a/build-tests/localization-plugin-test-02/src/indexC.ts b/build-tests/localization-plugin-test-02/src/indexC.ts index 012f244687..7469497482 100644 --- a/build-tests/localization-plugin-test-02/src/indexC.ts +++ b/build-tests/localization-plugin-test-02/src/indexC.ts @@ -4,7 +4,7 @@ import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithoutStringsClass }) => { - const chunk: import('./chunks/chunkWithoutStrings').ChunkWithoutStringsClass = + const chunk: import('./chunks/chunkWithoutStrings.ts').ChunkWithoutStringsClass = new ChunkWithoutStringsClass(); chunk.doStuff(); }) diff --git a/build-tests/localization-plugin-test-03/eslint.config.js b/build-tests/localization-plugin-test-03/eslint.config.js index c15e607731..3b6b13bbd8 100644 --- a/build-tests/localization-plugin-test-03/eslint.config.js +++ b/build-tests/localization-plugin-test-03/eslint.config.js @@ -13,6 +13,12 @@ module.exports = [ parserOptions: { tsconfigRootDir: __dirname } + }, + rules: { + // This project uses ts-loader, so imports must remain extensionless. + // Adding .ts extensions would cause rewriteRelativeImportExtensions to emit .js, + // which webpack can't resolve since only .ts source files exist on disk. + 'import/extensions': 'off' } } ]; diff --git a/build-tests/localization-plugin-test-03/src/indexA.ts b/build-tests/localization-plugin-test-03/src/indexA.ts index 37d82ce98d..b394bbd1eb 100644 --- a/build-tests/localization-plugin-test-03/src/indexA.ts +++ b/build-tests/localization-plugin-test-03/src/indexA.ts @@ -14,7 +14,7 @@ console.log(strings3.string2); import(/* webpackChunkName: 'chunk-with-strings' */ './chunks/chunkWithStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithStringsClass }) => { - const chunk: import('./chunks/chunkWithStrings').ChunkWithStringsClass = new ChunkWithStringsClass(); + const chunk: import('./chunks/chunkWithStrings.ts').ChunkWithStringsClass = new ChunkWithStringsClass(); chunk.doStuff(); }) .catch((e) => { @@ -25,7 +25,7 @@ import(/* webpackChunkName: 'chunk-with-strings' */ './chunks/chunkWithStrings') import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithoutStringsClass }) => { - const chunk: import('./chunks/chunkWithoutStrings').ChunkWithoutStringsClass = + const chunk: import('./chunks/chunkWithoutStrings.ts').ChunkWithoutStringsClass = new ChunkWithoutStringsClass(); chunk.doStuff(); }) @@ -37,7 +37,7 @@ import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStr import('./chunks/unnamedChunkWithStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ UnnamedChunkWithStringsClass }) => { - const chunk: import('./chunks/unnamedChunkWithStrings').UnnamedChunkWithStringsClass = + const chunk: import('./chunks/unnamedChunkWithStrings.ts').UnnamedChunkWithStringsClass = new UnnamedChunkWithStringsClass(); chunk.doStuff(); }) diff --git a/build-tests/localization-plugin-test-03/src/indexC.ts b/build-tests/localization-plugin-test-03/src/indexC.ts index e26a7272c6..1f91143c8e 100644 --- a/build-tests/localization-plugin-test-03/src/indexC.ts +++ b/build-tests/localization-plugin-test-03/src/indexC.ts @@ -4,7 +4,7 @@ import(/* webpackChunkName: 'chunk-with-strings' */ './chunks/chunkWithStrings') // eslint-disable-next-line @typescript-eslint/naming-convention .then(({ ChunkWithStringsClass }) => { - const chunk: import('./chunks/chunkWithStrings').ChunkWithStringsClass = new ChunkWithStringsClass(); + const chunk: import('./chunks/chunkWithStrings.ts').ChunkWithStringsClass = new ChunkWithStringsClass(); chunk.doStuff(); }) .catch((e) => { diff --git a/build-tests/localization-plugin-test-03/src/indexD.ts b/build-tests/localization-plugin-test-03/src/indexD.ts index e887b69021..b0037068a7 100644 --- a/build-tests/localization-plugin-test-03/src/indexD.ts +++ b/build-tests/localization-plugin-test-03/src/indexD.ts @@ -5,7 +5,7 @@ import(/* webpackChunkName: 'chunk-without-strings' */ './chunks/chunkWithoutStr .then( // eslint-disable-next-line @typescript-eslint/naming-convention ({ ChunkWithoutStringsClass }) => { - const chunk: import('./chunks/chunkWithoutStrings').ChunkWithoutStringsClass = + const chunk: import('./chunks/chunkWithoutStrings.ts').ChunkWithoutStringsClass = new ChunkWithoutStringsClass(); chunk.doStuff(); } diff --git a/build-tests/rush-mcp-example-plugin/src/ExamplePlugin.ts b/build-tests/rush-mcp-example-plugin/src/ExamplePlugin.ts index d706e8c9a5..8ed9c0fc87 100644 --- a/build-tests/rush-mcp-example-plugin/src/ExamplePlugin.ts +++ b/build-tests/rush-mcp-example-plugin/src/ExamplePlugin.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import type { IRushMcpPlugin, RushMcpPluginSession } from '@rushstack/mcp-server'; -import { StateCapitalTool } from './StateCapitalTool'; +import { StateCapitalTool } from './StateCapitalTool.ts'; export interface IExamplePluginConfigFile { capitalsByState: Record; diff --git a/build-tests/rush-mcp-example-plugin/src/StateCapitalTool.ts b/build-tests/rush-mcp-example-plugin/src/StateCapitalTool.ts index f6ad8ce681..55ec047401 100644 --- a/build-tests/rush-mcp-example-plugin/src/StateCapitalTool.ts +++ b/build-tests/rush-mcp-example-plugin/src/StateCapitalTool.ts @@ -3,7 +3,7 @@ import type { IRushMcpTool, RushMcpPluginSession, CallToolResult, zodModule } from '@rushstack/mcp-server'; -import type { ExamplePlugin } from './ExamplePlugin'; +import type { ExamplePlugin } from './ExamplePlugin.ts'; export class StateCapitalTool implements IRushMcpTool { public readonly plugin: ExamplePlugin; diff --git a/build-tests/rush-mcp-example-plugin/src/index.ts b/build-tests/rush-mcp-example-plugin/src/index.ts index 8866a23e56..6186e55542 100644 --- a/build-tests/rush-mcp-example-plugin/src/index.ts +++ b/build-tests/rush-mcp-example-plugin/src/index.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import type { RushMcpPluginSession, RushMcpPluginFactory } from '@rushstack/mcp-server'; -import { ExamplePlugin, type IExamplePluginConfigFile } from './ExamplePlugin'; +import { ExamplePlugin, type IExamplePluginConfigFile } from './ExamplePlugin.ts'; function createPlugin( session: RushMcpPluginSession, diff --git a/build-tests/rush-package-manager-integration-test/src/runTests.ts b/build-tests/rush-package-manager-integration-test/src/runTests.ts index e531c6251b..5c633cb1f1 100644 --- a/build-tests/rush-package-manager-integration-test/src/runTests.ts +++ b/build-tests/rush-package-manager-integration-test/src/runTests.ts @@ -3,8 +3,8 @@ import { Terminal, ConsoleTerminalProvider } from '@rushstack/terminal'; -import { testNpmModeAsync } from './testNpmMode'; -import { testYarnModeAsync } from './testYarnMode'; +import { testNpmModeAsync } from './testNpmMode.ts'; +import { testYarnModeAsync } from './testYarnMode.ts'; /** * Main test runner that executes all package manager integration tests diff --git a/build-tests/rush-package-manager-integration-test/src/testNpmMode.ts b/build-tests/rush-package-manager-integration-test/src/testNpmMode.ts index 3392e90eac..db023b7704 100644 --- a/build-tests/rush-package-manager-integration-test/src/testNpmMode.ts +++ b/build-tests/rush-package-manager-integration-test/src/testNpmMode.ts @@ -6,7 +6,7 @@ import * as path from 'node:path'; import type { ITerminal } from '@rushstack/terminal'; -import { TestHelper } from './TestHelper'; +import { TestHelper } from './TestHelper.ts'; /** * Integration test for Rush npm mode with tar 7.x diff --git a/build-tests/rush-package-manager-integration-test/src/testYarnMode.ts b/build-tests/rush-package-manager-integration-test/src/testYarnMode.ts index 5a097c6168..54e356d954 100644 --- a/build-tests/rush-package-manager-integration-test/src/testYarnMode.ts +++ b/build-tests/rush-package-manager-integration-test/src/testYarnMode.ts @@ -6,7 +6,7 @@ import * as path from 'node:path'; import type { ITerminal } from '@rushstack/terminal'; -import { TestHelper } from './TestHelper'; +import { TestHelper } from './TestHelper.ts'; /** * Integration test for Rush yarn mode with tar 7.x diff --git a/eslint/eslint-patch/src/custom-config-package-names.ts b/eslint/eslint-patch/src/custom-config-package-names.ts index 6184b774b8..f549b39988 100644 --- a/eslint/eslint-patch/src/custom-config-package-names.ts +++ b/eslint/eslint-patch/src/custom-config-package-names.ts @@ -8,7 +8,7 @@ // // require("@rushstack/eslint-patch/custom-config-package-names"); // -import { configArrayFactory, ModuleResolver, Naming } from './_patch-base'; +import { configArrayFactory, ModuleResolver, Naming } from './_patch-base.ts'; if (!configArrayFactory.__loadExtendedShareableConfigPatched) { configArrayFactory.__loadExtendedShareableConfigPatched = true; diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-file.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-file.ts index 2526196eca..b8e8275f34 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-file.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-file.ts @@ -3,7 +3,7 @@ import fs from 'node:fs'; -import { VSCODE_PID_ENV_VAR_NAME } from './constants'; +import { VSCODE_PID_ENV_VAR_NAME } from './constants.ts'; export interface ISuppression { file: string; diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-patch.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-patch.ts index 549ad21b2b..9ca9ff9ee3 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-patch.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/bulk-suppressions-patch.ts @@ -5,13 +5,13 @@ import fs from 'node:fs'; import type { TSESTree } from '@typescript-eslint/types'; -import * as Guards from './ast-guards'; -import { eslintFolder } from '../_patch-base'; +import * as Guards from './ast-guards.ts'; +import { eslintFolder } from '../_patch-base.ts'; import { ESLINT_BULK_ENABLE_ENV_VAR_NAME, ESLINT_BULK_PRUNE_ENV_VAR_NAME, ESLINT_BULK_SUPPRESS_ENV_VAR_NAME -} from './constants'; +} from './constants.ts'; import { getSuppressionsConfigForEslintConfigFolderPath, serializeSuppression, @@ -19,7 +19,7 @@ import { type ISuppression, writeSuppressionsJsonToFile, getAllBulkSuppressionsConfigsByEslintConfigFolderPath -} from './bulk-suppressions-file'; +} from './bulk-suppressions-file.ts'; const ESLINT_CONFIG_FILENAMES: string[] = [ 'eslint.config.js', diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/prune.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/prune.ts index ecbc702a63..d6a5b32dff 100755 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/prune.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/prune.ts @@ -3,13 +3,13 @@ import fs from 'node:fs'; -import { printPruneHelp } from './utils/print-help'; -import { runEslintAsync } from './runEslint'; -import { ESLINT_BULK_PRUNE_ENV_VAR_NAME } from '../constants'; +import { printPruneHelp } from './utils/print-help.ts'; +import { runEslintAsync } from './runEslint.ts'; +import { ESLINT_BULK_PRUNE_ENV_VAR_NAME } from '../constants.ts'; import { deleteBulkSuppressionsFileInEslintConfigFolder, getSuppressionsConfigForEslintConfigFolderPath -} from '../bulk-suppressions-file'; +} from '../bulk-suppressions-file.ts'; export async function pruneAsync(): Promise { const args: string[] = process.argv.slice(3); diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/runEslint.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/runEslint.ts index 8d73302aa8..a97cba3cd8 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/runEslint.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/runEslint.ts @@ -4,7 +4,7 @@ import type { ESLint as TEslintLegacy } from 'eslint-8'; import type { ESLint as TEslint } from 'eslint-9'; -import { getEslintPathAndVersion } from './utils/get-eslint-cli'; +import { getEslintPathAndVersion } from './utils/get-eslint-cli.ts'; export async function runEslintAsync(files: string[], mode: 'suppress' | 'prune'): Promise { const cwd: string = process.cwd(); @@ -26,7 +26,7 @@ export async function runEslintAsync(files: string[], mode: 'suppress' | 'prune' throw new Error(`@rushstack/eslint-bulk execution error: ${e.message}`); } - const { write, prune } = await import('../bulk-suppressions-patch'); + const { write, prune } = await import('../bulk-suppressions-patch.ts'); switch (mode) { case 'suppress': { await write(); diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/start.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/start.ts index b871a6149f..e5362abca1 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/start.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/start.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { pruneAsync } from './prune'; -import { suppressAsync } from './suppress'; -import { isCorrectCwd } from './utils/is-correct-cwd'; -import { printHelp } from './utils/print-help'; +import { pruneAsync } from './prune.ts'; +import { suppressAsync } from './suppress.ts'; +import { isCorrectCwd } from './utils/is-correct-cwd.ts'; +import { printHelp } from './utils/print-help.ts'; if (process.argv.includes('-h') || process.argv.includes('-H') || process.argv.includes('--help')) { printHelp(); diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/suppress.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/suppress.ts index c8ba1eafa4..8223ab3e33 100755 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/suppress.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/suppress.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { printSuppressHelp } from './utils/print-help'; -import { runEslintAsync } from './runEslint'; -import { ESLINT_BULK_SUPPRESS_ENV_VAR_NAME } from '../constants'; +import { printSuppressHelp } from './utils/print-help.ts'; +import { runEslintAsync } from './runEslint.ts'; +import { ESLINT_BULK_SUPPRESS_ENV_VAR_NAME } from '../constants.ts'; interface IParsedArgs { rules: string[]; diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/get-eslint-cli.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/get-eslint-cli.ts index be55dea24c..1c3cf7fc32 100755 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/get-eslint-cli.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/get-eslint-cli.ts @@ -3,7 +3,7 @@ import path from 'node:path'; -import { BULK_SUPPRESSIONS_CLI_ESLINT_PACKAGE_NAME } from '../../constants'; +import { BULK_SUPPRESSIONS_CLI_ESLINT_PACKAGE_NAME } from '../../constants.ts'; // When this list is updated, update the `eslint-bulk-suppressions-newest-test` // and/or the `eslint-bulk-suppressions-newest-test` projects' eslint dependencies. diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/print-help.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/print-help.ts index a0a8212dea..934b6d21a8 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/print-help.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/cli/utils/print-help.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { wrapWordsToLines } from './wrap-words-to-lines'; +import { wrapWordsToLines } from './wrap-words-to-lines.ts'; export function printPruneHelp(): void { const help: string = `eslint-bulk prune diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/generate-patched-file.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/generate-patched-file.ts index 5a0107537a..c5fe0b325d 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/generate-patched-file.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/generate-patched-file.ts @@ -6,7 +6,7 @@ import fs from 'node:fs'; import { ESLINT_BULK_FORCE_REGENERATE_PATCH_ENV_VAR_NAME, ESLINT_BULK_PATCH_PATH_ENV_VAR_NAME -} from './constants'; +} from './constants.ts'; /** * Dynamically generate file to properly patch many versions of ESLint diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/index.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/index.ts index c11870137a..18027c20c8 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/index.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/index.ts @@ -1,11 +1,15 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { eslintFolder, eslintPackageVersion } from '../_patch-base'; -import { findAndConsoleLogPatchPathCli, getPathToLinterJS, ensurePathToGeneratedPatch } from './path-utils'; -import { patchClass, extendVerifyFunction } from './bulk-suppressions-patch'; -import { generatePatchedLinterJsFileIfDoesNotExist } from './generate-patched-file'; -import { ESLINT_BULK_DETECT_ENV_VAR_NAME, ESLINT_BULK_PATCH_PATH_ENV_VAR_NAME } from './constants'; +import { eslintFolder, eslintPackageVersion } from '../_patch-base.ts'; +import { + findAndConsoleLogPatchPathCli, + getPathToLinterJS, + ensurePathToGeneratedPatch +} from './path-utils.ts'; +import { patchClass, extendVerifyFunction } from './bulk-suppressions-patch.ts'; +import { generatePatchedLinterJsFileIfDoesNotExist } from './generate-patched-file.ts'; +import { ESLINT_BULK_DETECT_ENV_VAR_NAME, ESLINT_BULK_PATCH_PATH_ENV_VAR_NAME } from './constants.ts'; if (!eslintFolder) { console.error( diff --git a/eslint/eslint-patch/src/eslint-bulk-suppressions/path-utils.ts b/eslint/eslint-patch/src/eslint-bulk-suppressions/path-utils.ts index 62e54bcd31..d012ee5e3a 100644 --- a/eslint/eslint-patch/src/eslint-bulk-suppressions/path-utils.ts +++ b/eslint/eslint-patch/src/eslint-bulk-suppressions/path-utils.ts @@ -4,12 +4,12 @@ import fs from 'node:fs'; import os from 'node:os'; -import { eslintFolder, eslintPackageVersion } from '../_patch-base'; +import { eslintFolder, eslintPackageVersion } from '../_patch-base.ts'; import { ESLINT_BULK_DETECT_ENV_VAR_NAME, ESLINT_BULK_STDOUT_END_DELIMETER, ESLINT_BULK_STDOUT_START_DELIMETER -} from './constants'; +} from './constants.ts'; import currentPackageJson from '../../package.json'; interface IConfiguration { diff --git a/eslint/eslint-patch/src/exports/eslint-bulk.ts b/eslint/eslint-patch/src/exports/eslint-bulk.ts index b096074c20..c1ec612f2c 100644 --- a/eslint/eslint-patch/src/exports/eslint-bulk.ts +++ b/eslint/eslint-patch/src/exports/eslint-bulk.ts @@ -3,4 +3,4 @@ // "lib/exports/eslint-bulk" is the entry point for the @rushstack/eslint-bulk command line front end. -import '../eslint-bulk-suppressions/cli/start'; +import '../eslint-bulk-suppressions/cli/start.ts'; diff --git a/eslint/eslint-patch/src/modern-module-resolution.ts b/eslint/eslint-patch/src/modern-module-resolution.ts index 3b0e0003dd..bc6cca1e3f 100644 --- a/eslint/eslint-patch/src/modern-module-resolution.ts +++ b/eslint/eslint-patch/src/modern-module-resolution.ts @@ -13,7 +13,7 @@ import { ModuleResolver, isModuleResolutionError, ESLINT_MAJOR_VERSION -} from './_patch-base'; +} from './_patch-base.ts'; // error: "The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received ''" const isInvalidImporterPath: (ex: unknown) => boolean = (ex) => diff --git a/eslint/eslint-plugin-packlets/src/DependencyAnalyzer.ts b/eslint/eslint-plugin-packlets/src/DependencyAnalyzer.ts index 02f7d33b21..1e177e0e4b 100644 --- a/eslint/eslint-plugin-packlets/src/DependencyAnalyzer.ts +++ b/eslint/eslint-plugin-packlets/src/DependencyAnalyzer.ts @@ -3,8 +3,8 @@ import type * as ts from 'typescript'; -import { Path } from './Path'; -import type { PackletAnalyzer } from './PackletAnalyzer'; +import { Path } from './Path.ts'; +import type { PackletAnalyzer } from './PackletAnalyzer.ts'; enum RefFileKind { Import, diff --git a/eslint/eslint-plugin-packlets/src/PackletAnalyzer.ts b/eslint/eslint-plugin-packlets/src/PackletAnalyzer.ts index b0149b2451..9c57c22912 100644 --- a/eslint/eslint-plugin-packlets/src/PackletAnalyzer.ts +++ b/eslint/eslint-plugin-packlets/src/PackletAnalyzer.ts @@ -3,7 +3,7 @@ import * as fs from 'node:fs'; -import { Path } from './Path'; +import { Path } from './Path.ts'; export type InputFileMessageIds = | 'file-in-packets-folder' diff --git a/eslint/eslint-plugin-packlets/src/circular-deps.ts b/eslint/eslint-plugin-packlets/src/circular-deps.ts index e36b0546e2..8f9e52d962 100644 --- a/eslint/eslint-plugin-packlets/src/circular-deps.ts +++ b/eslint/eslint-plugin-packlets/src/circular-deps.ts @@ -5,9 +5,9 @@ import type * as ts from 'typescript'; import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import { ESLintUtils } from '@typescript-eslint/utils'; -import { PackletAnalyzer } from './PackletAnalyzer'; -import { DependencyAnalyzer, type IPackletImport } from './DependencyAnalyzer'; -import { Path } from './Path'; +import { PackletAnalyzer } from './PackletAnalyzer.ts'; +import { DependencyAnalyzer, type IPackletImport } from './DependencyAnalyzer.ts'; +import { Path } from './Path.ts'; export type MessageIds = 'circular-import'; type Options = []; diff --git a/eslint/eslint-plugin-packlets/src/index.ts b/eslint/eslint-plugin-packlets/src/index.ts index 7958fa842d..403d6e20c8 100644 --- a/eslint/eslint-plugin-packlets/src/index.ts +++ b/eslint/eslint-plugin-packlets/src/index.ts @@ -3,9 +3,9 @@ import type { TSESLint } from '@typescript-eslint/utils'; -import { mechanics } from './mechanics'; -import { circularDeps } from './circular-deps'; -import { readme } from './readme'; +import { mechanics } from './mechanics.ts'; +import { circularDeps } from './circular-deps.ts'; +import { readme } from './readme.ts'; interface IPlugin { rules: { [ruleName: string]: TSESLint.RuleModule }; diff --git a/eslint/eslint-plugin-packlets/src/mechanics.ts b/eslint/eslint-plugin-packlets/src/mechanics.ts index 1c299d8811..520c2d2cb5 100644 --- a/eslint/eslint-plugin-packlets/src/mechanics.ts +++ b/eslint/eslint-plugin-packlets/src/mechanics.ts @@ -9,7 +9,7 @@ import { type IAnalyzerError, type InputFileMessageIds, type ImportMessageIds -} from './PackletAnalyzer'; +} from './PackletAnalyzer.ts'; export type MessageIds = InputFileMessageIds | ImportMessageIds; type Options = []; diff --git a/eslint/eslint-plugin-packlets/src/readme.ts b/eslint/eslint-plugin-packlets/src/readme.ts index 20ceb014c0..4ecef61d93 100644 --- a/eslint/eslint-plugin-packlets/src/readme.ts +++ b/eslint/eslint-plugin-packlets/src/readme.ts @@ -7,7 +7,7 @@ import * as fs from 'node:fs'; import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import { ESLintUtils } from '@typescript-eslint/utils'; -import { PackletAnalyzer } from './PackletAnalyzer'; +import { PackletAnalyzer } from './PackletAnalyzer.ts'; export type MessageIds = 'missing-readme' | 'error-reading-file' | 'readme-too-short'; type Options = [ diff --git a/eslint/eslint-plugin-packlets/src/test/Path.test.ts b/eslint/eslint-plugin-packlets/src/test/Path.test.ts index 57d75b1be1..abd2e7703d 100644 --- a/eslint/eslint-plugin-packlets/src/test/Path.test.ts +++ b/eslint/eslint-plugin-packlets/src/test/Path.test.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import * as path from 'node:path'; -import { Path } from '../Path'; +import { Path } from '../Path.ts'; function toPosixPath(value: string): string { return value.replace(/[\\\/]/g, '/'); diff --git a/eslint/eslint-plugin-security/src/index.ts b/eslint/eslint-plugin-security/src/index.ts index 8e2d433001..f216672012 100644 --- a/eslint/eslint-plugin-security/src/index.ts +++ b/eslint/eslint-plugin-security/src/index.ts @@ -3,7 +3,7 @@ import type { TSESLint } from '@typescript-eslint/utils'; -import { noUnsafeRegExp } from './no-unsafe-regexp'; +import { noUnsafeRegExp } from './no-unsafe-regexp.ts'; interface IPlugin { rules: { [ruleName: string]: TSESLint.RuleModule }; diff --git a/eslint/eslint-plugin-security/src/test/no-unsafe-regexp.test.ts b/eslint/eslint-plugin-security/src/test/no-unsafe-regexp.test.ts index d321eb0361..a57ee1854f 100644 --- a/eslint/eslint-plugin-security/src/test/no-unsafe-regexp.test.ts +++ b/eslint/eslint-plugin-security/src/test/no-unsafe-regexp.test.ts @@ -3,7 +3,7 @@ import * as parser from '@typescript-eslint/parser'; import { RuleTester } from '@typescript-eslint/rule-tester'; -import { noUnsafeRegExp } from '../no-unsafe-regexp'; +import { noUnsafeRegExp } from '../no-unsafe-regexp.ts'; const ruleTester = new RuleTester({ languageOptions: { parser } }); ruleTester.run('no-unsafe-regexp', noUnsafeRegExp, { diff --git a/eslint/eslint-plugin/src/hoist-jest-mock.ts b/eslint/eslint-plugin/src/hoist-jest-mock.ts index 4178cab0d1..229b42eec8 100644 --- a/eslint/eslint-plugin/src/hoist-jest-mock.ts +++ b/eslint/eslint-plugin/src/hoist-jest-mock.ts @@ -4,7 +4,7 @@ import type { TSESLint, TSESTree } from '@typescript-eslint/utils'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; -import * as hoistJestMockPatterns from './hoistJestMockPatterns'; +import * as hoistJestMockPatterns from './hoistJestMockPatterns.ts'; type MessageIds = 'error-unhoisted-jest-mock'; type Options = []; diff --git a/eslint/eslint-plugin/src/index.ts b/eslint/eslint-plugin/src/index.ts index 61f0c64f23..b988414e01 100644 --- a/eslint/eslint-plugin/src/index.ts +++ b/eslint/eslint-plugin/src/index.ts @@ -3,17 +3,17 @@ import type { TSESLint } from '@typescript-eslint/utils'; -import { hoistJestMock } from './hoist-jest-mock'; -import { noBackslashImportsRule } from './no-backslash-imports'; -import { noExternalLocalImportsRule } from './no-external-local-imports'; -import { noNewNullRule } from './no-new-null'; -import { noNullRule } from './no-null'; -import { noTransitiveDependencyImportsRule } from './no-transitive-dependency-imports'; -import { noUntypedUnderscoreRule } from './no-untyped-underscore'; -import { normalizedImportsRule } from './normalized-imports'; -import { typedefVar } from './typedef-var'; -import { importRequiresChunkNameRule } from './import-requires-chunk-name'; -import { pairReactDomRenderUnmountRule } from './pair-react-dom-render-unmount'; +import { hoistJestMock } from './hoist-jest-mock.ts'; +import { noBackslashImportsRule } from './no-backslash-imports.ts'; +import { noExternalLocalImportsRule } from './no-external-local-imports.ts'; +import { noNewNullRule } from './no-new-null.ts'; +import { noNullRule } from './no-null.ts'; +import { noTransitiveDependencyImportsRule } from './no-transitive-dependency-imports.ts'; +import { noUntypedUnderscoreRule } from './no-untyped-underscore.ts'; +import { normalizedImportsRule } from './normalized-imports.ts'; +import { typedefVar } from './typedef-var.ts'; +import { importRequiresChunkNameRule } from './import-requires-chunk-name.ts'; +import { pairReactDomRenderUnmountRule } from './pair-react-dom-render-unmount.ts'; interface IPlugin { rules: { [ruleName: string]: TSESLint.RuleModule }; diff --git a/eslint/eslint-plugin/src/no-backslash-imports.ts b/eslint/eslint-plugin/src/no-backslash-imports.ts index 82fbb1bb79..b080323db2 100644 --- a/eslint/eslint-plugin/src/no-backslash-imports.ts +++ b/eslint/eslint-plugin/src/no-backslash-imports.ts @@ -7,7 +7,7 @@ import { parseImportSpecifierFromExpression, serializeImportSpecifier, type IParsedImportSpecifier -} from './LintUtilities'; +} from './LintUtilities.ts'; export const MESSAGE_ID: 'no-backslash-imports' = 'no-backslash-imports'; type RuleModule = TSESLint.RuleModule; diff --git a/eslint/eslint-plugin/src/no-external-local-imports.ts b/eslint/eslint-plugin/src/no-external-local-imports.ts index e4ae7bae20..962cf39c95 100644 --- a/eslint/eslint-plugin/src/no-external-local-imports.ts +++ b/eslint/eslint-plugin/src/no-external-local-imports.ts @@ -5,7 +5,7 @@ import * as path from 'node:path'; import type { TSESTree, TSESLint } from '@typescript-eslint/utils'; -import { getRootDirectoryFromContext, getImportAbsolutePathFromExpression } from './LintUtilities'; +import { getRootDirectoryFromContext, getImportAbsolutePathFromExpression } from './LintUtilities.ts'; export const MESSAGE_ID: 'error-external-local-imports' = 'error-external-local-imports'; type RuleModule = TSESLint.RuleModule; diff --git a/eslint/eslint-plugin/src/no-transitive-dependency-imports.ts b/eslint/eslint-plugin/src/no-transitive-dependency-imports.ts index e7677826f1..afc3162487 100644 --- a/eslint/eslint-plugin/src/no-transitive-dependency-imports.ts +++ b/eslint/eslint-plugin/src/no-transitive-dependency-imports.ts @@ -3,7 +3,7 @@ import type { TSESTree, TSESLint } from '@typescript-eslint/utils'; -import { parseImportSpecifierFromExpression, type IParsedImportSpecifier } from './LintUtilities'; +import { parseImportSpecifierFromExpression, type IParsedImportSpecifier } from './LintUtilities.ts'; export const MESSAGE_ID: 'error-transitive-dependency-imports' = 'error-transitive-dependency-imports'; type RuleModule = TSESLint.RuleModule; diff --git a/eslint/eslint-plugin/src/normalized-imports.ts b/eslint/eslint-plugin/src/normalized-imports.ts index 1534642a20..ec8e781811 100644 --- a/eslint/eslint-plugin/src/normalized-imports.ts +++ b/eslint/eslint-plugin/src/normalized-imports.ts @@ -10,7 +10,7 @@ import { parseImportSpecifierFromExpression, serializeImportSpecifier, type IParsedImportSpecifier -} from './LintUtilities'; +} from './LintUtilities.ts'; export const MESSAGE_ID: 'error-normalized-imports' = 'error-normalized-imports'; type RuleModule = TSESLint.RuleModule; diff --git a/eslint/eslint-plugin/src/test/hoist-jest-mock.test.ts b/eslint/eslint-plugin/src/test/hoist-jest-mock.test.ts index 49e4af553c..800613a0d2 100644 --- a/eslint/eslint-plugin/src/test/hoist-jest-mock.test.ts +++ b/eslint/eslint-plugin/src/test/hoist-jest-mock.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { hoistJestMock } from '../hoist-jest-mock'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { hoistJestMock } from '../hoist-jest-mock.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/eslint/eslint-plugin/src/test/import-requires-chunk-name.test.ts b/eslint/eslint-plugin/src/test/import-requires-chunk-name.test.ts index c06d477130..0842805719 100644 --- a/eslint/eslint-plugin/src/test/import-requires-chunk-name.test.ts +++ b/eslint/eslint-plugin/src/test/import-requires-chunk-name.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { importRequiresChunkNameRule } from '../import-requires-chunk-name'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { importRequiresChunkNameRule } from '../import-requires-chunk-name.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/eslint/eslint-plugin/src/test/no-backslash-imports.test.ts b/eslint/eslint-plugin/src/test/no-backslash-imports.test.ts index a508ff6013..ff442da485 100644 --- a/eslint/eslint-plugin/src/test/no-backslash-imports.test.ts +++ b/eslint/eslint-plugin/src/test/no-backslash-imports.test.ts @@ -3,8 +3,8 @@ import type { RuleTester, TestCaseError } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { noBackslashImportsRule, MESSAGE_ID } from '../no-backslash-imports'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { noBackslashImportsRule, MESSAGE_ID } from '../no-backslash-imports.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); const expectedErrors: TestCaseError[] = [{ messageId: MESSAGE_ID }]; diff --git a/eslint/eslint-plugin/src/test/no-external-local-imports.test.ts b/eslint/eslint-plugin/src/test/no-external-local-imports.test.ts index c18b995dac..f91b8201bd 100644 --- a/eslint/eslint-plugin/src/test/no-external-local-imports.test.ts +++ b/eslint/eslint-plugin/src/test/no-external-local-imports.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithoutProject } from './ruleTester'; -import { noExternalLocalImportsRule } from '../no-external-local-imports'; +import { getRuleTesterWithoutProject } from './ruleTester.ts'; +import { noExternalLocalImportsRule } from '../no-external-local-imports.ts'; const ruleTester: RuleTester = getRuleTesterWithoutProject(); diff --git a/eslint/eslint-plugin/src/test/no-new-null.test.ts b/eslint/eslint-plugin/src/test/no-new-null.test.ts index 7ae2fdf804..c246281abf 100644 --- a/eslint/eslint-plugin/src/test/no-new-null.test.ts +++ b/eslint/eslint-plugin/src/test/no-new-null.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { noNewNullRule } from '../no-new-null'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { noNewNullRule } from '../no-new-null.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/eslint/eslint-plugin/src/test/no-transitive-dependency-imports.test.ts b/eslint/eslint-plugin/src/test/no-transitive-dependency-imports.test.ts index 9d61892ce3..9cdfb80138 100644 --- a/eslint/eslint-plugin/src/test/no-transitive-dependency-imports.test.ts +++ b/eslint/eslint-plugin/src/test/no-transitive-dependency-imports.test.ts @@ -3,8 +3,8 @@ import type { RuleTester, TestCaseError } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { noTransitiveDependencyImportsRule, MESSAGE_ID } from '../no-transitive-dependency-imports'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { noTransitiveDependencyImportsRule, MESSAGE_ID } from '../no-transitive-dependency-imports.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); const expectedErrors: TestCaseError[] = [{ messageId: MESSAGE_ID }]; diff --git a/eslint/eslint-plugin/src/test/no-untyped-underscore.test.ts b/eslint/eslint-plugin/src/test/no-untyped-underscore.test.ts index 388646d7ec..f68f4c943f 100644 --- a/eslint/eslint-plugin/src/test/no-untyped-underscore.test.ts +++ b/eslint/eslint-plugin/src/test/no-untyped-underscore.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { noUntypedUnderscoreRule } from '../no-untyped-underscore'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { noUntypedUnderscoreRule } from '../no-untyped-underscore.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/eslint/eslint-plugin/src/test/normalized-imports.test.ts b/eslint/eslint-plugin/src/test/normalized-imports.test.ts index b65a88565c..4b7577c450 100644 --- a/eslint/eslint-plugin/src/test/normalized-imports.test.ts +++ b/eslint/eslint-plugin/src/test/normalized-imports.test.ts @@ -3,8 +3,8 @@ import type { RuleTester, TestCaseError } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithoutProject } from './ruleTester'; -import { normalizedImportsRule, MESSAGE_ID } from '../normalized-imports'; +import { getRuleTesterWithoutProject } from './ruleTester.ts'; +import { normalizedImportsRule, MESSAGE_ID } from '../normalized-imports.ts'; const ruleTester: RuleTester = getRuleTesterWithoutProject(); diff --git a/eslint/eslint-plugin/src/test/pair-react-dom-render-unmount.test.ts b/eslint/eslint-plugin/src/test/pair-react-dom-render-unmount.test.ts index a5027f0780..8b50b4f8b5 100644 --- a/eslint/eslint-plugin/src/test/pair-react-dom-render-unmount.test.ts +++ b/eslint/eslint-plugin/src/test/pair-react-dom-render-unmount.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { pairReactDomRenderUnmountRule } from '../pair-react-dom-render-unmount'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { pairReactDomRenderUnmountRule } from '../pair-react-dom-render-unmount.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/eslint/eslint-plugin/src/test/typedef-var.test.ts b/eslint/eslint-plugin/src/test/typedef-var.test.ts index 7f7b9b69bf..d9dcf64de0 100644 --- a/eslint/eslint-plugin/src/test/typedef-var.test.ts +++ b/eslint/eslint-plugin/src/test/typedef-var.test.ts @@ -3,8 +3,8 @@ import type { RuleTester } from '@typescript-eslint/rule-tester'; -import { getRuleTesterWithProject } from './ruleTester'; -import { typedefVar } from '../typedef-var'; +import { getRuleTesterWithProject } from './ruleTester.ts'; +import { typedefVar } from '../typedef-var.ts'; const ruleTester: RuleTester = getRuleTesterWithProject(); diff --git a/heft-plugins/heft-api-extractor-plugin/src/ApiExtractorPlugin.ts b/heft-plugins/heft-api-extractor-plugin/src/ApiExtractorPlugin.ts index 8ab77d4680..8319f21587 100644 --- a/heft-plugins/heft-api-extractor-plugin/src/ApiExtractorPlugin.ts +++ b/heft-plugins/heft-api-extractor-plugin/src/ApiExtractorPlugin.ts @@ -11,7 +11,7 @@ import type { ConfigurationFile } from '@rushstack/heft'; -import { invokeApiExtractorAsync } from './ApiExtractorRunner'; +import { invokeApiExtractorAsync } from './ApiExtractorRunner.ts'; import apiExtractorConfigSchema from './schemas/api-extractor-task.schema.json'; // eslint-disable-next-line @rushstack/no-new-null diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/SwcIsolatedTranspilePlugin.ts b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/SwcIsolatedTranspilePlugin.ts index 2dd940fc34..2cc077f2d8 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/SwcIsolatedTranspilePlugin.ts +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/SwcIsolatedTranspilePlugin.ts @@ -39,7 +39,7 @@ import type { ITransformTask, IEmitKind, ITransformModulesRequestMessage -} from './types'; +} from './types.ts'; /** * @public diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/TranspileWorker.ts b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/TranspileWorker.ts index 06c119173f..8a74319f2b 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/TranspileWorker.ts +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/TranspileWorker.ts @@ -9,7 +9,7 @@ import { transformFile } from '@swc/core/binding'; import { Async } from '@rushstack/node-core-library/lib/Async'; -import type { IWorkerResult, ITransformTask, ITransformModulesRequestMessage } from './types'; +import type { IWorkerResult, ITransformTask, ITransformModulesRequestMessage } from './types.ts'; interface ISourceMap { version: 3; diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/index.ts b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/index.ts index 80befe57c8..31897f4ecc 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/index.ts +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/index.ts @@ -5,4 +5,4 @@ export type { ISwcIsolatedTranspilePluginAccessor, ModuleKind, ScriptTarget -} from './SwcIsolatedTranspilePlugin'; +} from './SwcIsolatedTranspilePlugin.ts'; diff --git a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/types.ts b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/types.ts index 0926fba7f7..492d5e97c9 100644 --- a/heft-plugins/heft-isolated-typescript-transpile-plugin/src/types.ts +++ b/heft-plugins/heft-isolated-typescript-transpile-plugin/src/types.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import type { ModuleKind, ScriptTarget } from './SwcIsolatedTranspilePlugin'; +import type { ModuleKind, ScriptTarget } from './SwcIsolatedTranspilePlugin.ts'; export interface IProjectOptions { buildFolder: string; diff --git a/heft-plugins/heft-jest-plugin/src/JestPlugin.ts b/heft-plugins/heft-jest-plugin/src/JestPlugin.ts index 5bf31ed257..238d80317b 100644 --- a/heft-plugins/heft-jest-plugin/src/JestPlugin.ts +++ b/heft-plugins/heft-jest-plugin/src/JestPlugin.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. // Load the Jest patches before anything else loads -import './patches/jestWorkerPatch'; +import './patches/jestWorkerPatch.ts'; import type { EventEmitter } from 'node:events'; import * as path from 'node:path'; @@ -34,9 +34,9 @@ import { import { FileSystem, Path, Import, JsonFile, PackageName } from '@rushstack/node-core-library'; import type { ITerminal } from '@rushstack/terminal'; -import type { IHeftJestReporterOptions } from './HeftJestReporter'; -import { jestResolve } from './JestUtils'; -import { TerminalWritableStream } from './TerminalWritableStream'; +import type { IHeftJestReporterOptions } from './HeftJestReporter.ts'; +import { jestResolve } from './JestUtils.ts'; +import { TerminalWritableStream } from './TerminalWritableStream.ts'; import anythingSchema from './schemas/anything.schema.json'; const jestPluginSymbol: unique symbol = Symbol('heft-jest-plugin'); diff --git a/heft-plugins/heft-jest-plugin/src/exports/jest-identity-mock-transform.ts b/heft-plugins/heft-jest-plugin/src/exports/jest-identity-mock-transform.ts index 3f2aff47b9..dd101c0e69 100644 --- a/heft-plugins/heft-jest-plugin/src/exports/jest-identity-mock-transform.ts +++ b/heft-plugins/heft-jest-plugin/src/exports/jest-identity-mock-transform.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { IdentityMockTransformer } from '../transformers/IdentityMockTransformer'; +import { IdentityMockTransformer } from '../transformers/IdentityMockTransformer.ts'; export = new IdentityMockTransformer(); diff --git a/heft-plugins/heft-jest-plugin/src/exports/jest-improved-resolver.ts b/heft-plugins/heft-jest-plugin/src/exports/jest-improved-resolver.ts index d16ddfc011..c20fa8d5f7 100644 --- a/heft-plugins/heft-jest-plugin/src/exports/jest-improved-resolver.ts +++ b/heft-plugins/heft-jest-plugin/src/exports/jest-improved-resolver.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import resolver = require('../HeftJestResolver'); +import resolver = require('../HeftJestResolver.ts'); export = resolver; diff --git a/heft-plugins/heft-jest-plugin/src/exports/jest-node-modules-symlink-resolver.ts b/heft-plugins/heft-jest-plugin/src/exports/jest-node-modules-symlink-resolver.ts index 5c4f9fb6e7..d3eca818c6 100644 --- a/heft-plugins/heft-jest-plugin/src/exports/jest-node-modules-symlink-resolver.ts +++ b/heft-plugins/heft-jest-plugin/src/exports/jest-node-modules-symlink-resolver.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import '../JestRealPathPatch'; +import '../JestRealPathPatch.ts'; // Using this syntax because HeftJestResolver uses `export =` syntax. -import resolver = require('../HeftJestResolver'); +import resolver = require('../HeftJestResolver.ts'); export = resolver; diff --git a/heft-plugins/heft-jest-plugin/src/exports/jest-source-map-snapshot-resolver.ts b/heft-plugins/heft-jest-plugin/src/exports/jest-source-map-snapshot-resolver.ts index a91c56443d..607cfcd42a 100644 --- a/heft-plugins/heft-jest-plugin/src/exports/jest-source-map-snapshot-resolver.ts +++ b/heft-plugins/heft-jest-plugin/src/exports/jest-source-map-snapshot-resolver.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import resolver from '../SourceMapSnapshotResolver'; +import resolver from '../SourceMapSnapshotResolver.ts'; export = resolver; diff --git a/heft-plugins/heft-jest-plugin/src/exports/jest-string-mock-transform.ts b/heft-plugins/heft-jest-plugin/src/exports/jest-string-mock-transform.ts index 9a4da921af..a136480c10 100644 --- a/heft-plugins/heft-jest-plugin/src/exports/jest-string-mock-transform.ts +++ b/heft-plugins/heft-jest-plugin/src/exports/jest-string-mock-transform.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { StringMockTransformer } from '../transformers/StringMockTransformer'; +import { StringMockTransformer } from '../transformers/StringMockTransformer.ts'; export = new StringMockTransformer(); 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 304ebad992..ab594d0608 100644 --- a/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts +++ b/heft-plugins/heft-jest-plugin/src/test/JestPlugin.test.ts @@ -12,7 +12,7 @@ import { JEST_CONFIG_JSDOM_PACKAGE_NAME, default as JestPlugin, type IHeftJestConfiguration -} from '../JestPlugin'; +} from '../JestPlugin.ts'; interface IPartialHeftPluginJson { taskPlugins?: { diff --git a/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsGenerator.ts b/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsGenerator.ts index deb30f2742..84fa2b960b 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsGenerator.ts +++ b/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsGenerator.ts @@ -11,7 +11,7 @@ import { _addTsDocReleaseTagToExports, _validateTsDocReleaseTag, X_TSDOC_RELEASE_TAG_KEY -} from './TsDocReleaseTagHelpers'; +} from './TsDocReleaseTagHelpers.ts'; interface IJsonSchemaTypingsGeneratorBaseOptions extends ITypingsGeneratorBaseOptions { /** diff --git a/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsPlugin.ts b/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsPlugin.ts index 877cd041b2..7d78570c48 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsPlugin.ts +++ b/heft-plugins/heft-json-schema-typings-plugin/src/JsonSchemaTypingsPlugin.ts @@ -10,7 +10,7 @@ import type { } from '@rushstack/heft'; import type { ITerminal } from '@rushstack/terminal'; -import { JsonSchemaTypingsGenerator } from './JsonSchemaTypingsGenerator'; +import { JsonSchemaTypingsGenerator } from './JsonSchemaTypingsGenerator.ts'; const PLUGIN_NAME: 'json-schema-typings-plugin' = 'json-schema-typings-plugin'; diff --git a/heft-plugins/heft-json-schema-typings-plugin/src/test/JsonSchemaTypingsGenerator.test.ts b/heft-plugins/heft-json-schema-typings-plugin/src/test/JsonSchemaTypingsGenerator.test.ts index 219b514284..ba2d84a7a5 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/src/test/JsonSchemaTypingsGenerator.test.ts +++ b/heft-plugins/heft-json-schema-typings-plugin/src/test/JsonSchemaTypingsGenerator.test.ts @@ -3,7 +3,7 @@ import { FileSystem, PackageJsonLookup } from '@rushstack/node-core-library'; -import { JsonSchemaTypingsGenerator } from '../JsonSchemaTypingsGenerator'; +import { JsonSchemaTypingsGenerator } from '../JsonSchemaTypingsGenerator.ts'; const projectFolder: string = PackageJsonLookup.instance.tryGetPackageFolderFor(__dirname)!; const schemasFolder: string = `${__dirname}/schemas`; diff --git a/heft-plugins/heft-json-schema-typings-plugin/src/test/TsDocReleaseTagHelpers.test.ts b/heft-plugins/heft-json-schema-typings-plugin/src/test/TsDocReleaseTagHelpers.test.ts index ee9a7e55d1..daab783d85 100644 --- a/heft-plugins/heft-json-schema-typings-plugin/src/test/TsDocReleaseTagHelpers.test.ts +++ b/heft-plugins/heft-json-schema-typings-plugin/src/test/TsDocReleaseTagHelpers.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { _addTsDocReleaseTagToExports, _validateTsDocReleaseTag } from '../TsDocReleaseTagHelpers'; +import { _addTsDocReleaseTagToExports, _validateTsDocReleaseTag } from '../TsDocReleaseTagHelpers.ts'; describe(_addTsDocReleaseTagToExports.name, () => { test('injects tag into an existing JSDoc comment before an export', () => { diff --git a/heft-plugins/heft-lint-plugin/src/Eslint.ts b/heft-plugins/heft-lint-plugin/src/Eslint.ts index aea83cbee8..382ef2c918 100644 --- a/heft-plugins/heft-lint-plugin/src/Eslint.ts +++ b/heft-plugins/heft-lint-plugin/src/Eslint.ts @@ -14,8 +14,8 @@ import stableStringify from 'json-stable-stringify-without-jsonify'; import { FileError, FileSystem } from '@rushstack/node-core-library'; import type { HeftConfiguration } from '@rushstack/heft'; -import { LinterBase, type ILinterBaseOptions } from './LinterBase'; -import type { IExtendedSourceFile } from './internalTypings/TypeScriptInternals'; +import { LinterBase, type ILinterBaseOptions } from './LinterBase.ts'; +import type { IExtendedSourceFile } from './internalTypings/TypeScriptInternals.ts'; import { name as pluginName, version as pluginVersion } from '../package.json'; interface IEslintOptions extends ILinterBaseOptions { @@ -351,7 +351,7 @@ export class Eslint extends LinterBase { diff --git a/heft-plugins/heft-rspack-plugin/src/RspackConfigurationLoader.ts b/heft-plugins/heft-rspack-plugin/src/RspackConfigurationLoader.ts index 98a6d37fdc..e00115dd1a 100644 --- a/heft-plugins/heft-rspack-plugin/src/RspackConfigurationLoader.ts +++ b/heft-plugins/heft-rspack-plugin/src/RspackConfigurationLoader.ts @@ -9,14 +9,14 @@ import type * as TRspack from '@rspack/core'; import type { HeftConfiguration, IHeftTaskSession } from '@rushstack/heft'; import { FileSystem } from '@rushstack/node-core-library'; -import type { IRspackPluginOptions } from './RspackPlugin'; +import type { IRspackPluginOptions } from './RspackPlugin.ts'; import { type IRspackConfiguration, type IRspackConfigurationFnEnvironment, type IRspackPluginAccessorHooks, PLUGIN_NAME, STAGE_LOAD_LOCAL_CONFIG -} from './shared'; +} from './shared.ts'; type IRspackConfigJsExport = | TRspack.Configuration diff --git a/heft-plugins/heft-rspack-plugin/src/RspackPlugin.ts b/heft-plugins/heft-rspack-plugin/src/RspackPlugin.ts index 67546a3e34..69d06172fc 100644 --- a/heft-plugins/heft-rspack-plugin/src/RspackPlugin.ts +++ b/heft-plugins/heft-rspack-plugin/src/RspackPlugin.ts @@ -24,9 +24,9 @@ import { PLUGIN_NAME, type IRspackPluginAccessorHooks, type RspackCoreImport -} from './shared'; -import { tryLoadRspackConfigurationAsync } from './RspackConfigurationLoader'; -import { type DeferredWatchFileSystem, OverrideNodeWatchFSPlugin } from './DeferredWatchFileSystem'; +} from './shared.ts'; +import { tryLoadRspackConfigurationAsync } from './RspackConfigurationLoader.ts'; +import { type DeferredWatchFileSystem, OverrideNodeWatchFSPlugin } from './DeferredWatchFileSystem.ts'; export interface IRspackPluginOptions { devConfigurationPath?: string | undefined; @@ -426,9 +426,7 @@ export default class RspackPlugin implements IHeftTaskPlugin