diff --git a/config/benchmarks/computer-use/electron/package.json b/config/benchmarks/computer-use/electron/package.json new file mode 100644 index 00000000000..5bbefffbabe --- /dev/null +++ b/config/benchmarks/computer-use/electron/package.json @@ -0,0 +1,3 @@ +{ + "type": "commonjs" +} diff --git a/config/build-plugins/vitest-react-compiler.ts b/config/build-plugins/vitest-react-compiler.ts index 1b3a180f43a..70ba42466b9 100644 --- a/config/build-plugins/vitest-react-compiler.ts +++ b/config/build-plugins/vitest-react-compiler.ts @@ -4,7 +4,7 @@ import { REACT_COMPILER_OPTIONS, isReactCompilerEnabled, reactCompilerExcludePattern -} from './react-compiler' +} from './react-compiler.ts' const rendererSource = /\/src\/renderer\/src\/.*\.tsx?$/ // Only shipped code is compiled; tests, fixtures, mocks and harnesses run as written. diff --git a/config/package.json b/config/package.json new file mode 100644 index 00000000000..3dbc1ca591c --- /dev/null +++ b/config/package.json @@ -0,0 +1,3 @@ +{ + "type": "module" +} diff --git a/config/tsconfig.node.json b/config/tsconfig.node.json index f9503dd05e3..d05c53f1742 100644 --- a/config/tsconfig.node.json +++ b/config/tsconfig.node.json @@ -42,6 +42,7 @@ ], "compilerOptions": { "composite": true, + "rewriteRelativeImportExtensions": true, "types": ["electron-vite/node"] } } diff --git a/config/vitest.config.ts b/config/vitest.config.ts index ad1f0045a93..ed0495975f7 100644 --- a/config/vitest.config.ts +++ b/config/vitest.config.ts @@ -13,11 +13,11 @@ import { filesSafeToShareWorker } from './scripts/test-runtime/execution-policy/ import { gitSigningOffEnv } from './scripts/test-runtime/environment/vitest-git-signing-env.mjs' import RuntimeSequencer from './scripts/test-runtime/execution-policy/vitest-runtime-sequencer.mjs' import { getNodeRuntimeInclude } from './scripts/test-runtime/sqlite-admission/vitest-node-runtime-files.mjs' -import { nodeRuntimePool } from './scripts/test-runtime/node-worker/vitest-node-runtime-pool' +import { nodeRuntimePool } from './scripts/test-runtime/node-worker/vitest-node-runtime-pool.ts' import { readRunFilters } from './scripts/test-runtime/execution-policy/vitest-run-filters.mjs' import { createWorkspaceSourceResolver } from './scripts/workspace/source-exports/workspace-source-exports.mjs' -import { moduleCacheResolutionKey } from './scripts/test-runtime/module-cache/vitest-module-cache-resolution-key' -import { vitestReactCompiler } from './build-plugins/vitest-react-compiler' +import { moduleCacheResolutionKey } from './scripts/test-runtime/module-cache/vitest-module-cache-resolution-key.ts' +import { vitestReactCompiler } from './build-plugins/vitest-react-compiler.ts' const nodeRuntimeInclude = process.versions.bun ? getNodeRuntimeInclude({ filters: readRunFilters() }) diff --git a/config/vitest.performance.config.ts b/config/vitest.performance.config.ts index 37d4f7a4763..2d2802ced67 100644 --- a/config/vitest.performance.config.ts +++ b/config/vitest.performance.config.ts @@ -1,8 +1,8 @@ import { existsSync } from 'node:fs' import { resolve } from 'node:path' import { defineConfig } from 'vitest/config' -import baseConfig from './vitest.config' -import { nodeRuntimePool } from './scripts/test-runtime/node-worker/vitest-node-runtime-pool' +import baseConfig from './vitest.config.ts' +import { nodeRuntimePool } from './scripts/test-runtime/node-worker/vitest-node-runtime-pool.ts' const contracts = [ 'src/main/runtime/session-tabs/session-tabs-phone-layout-moves.test.ts',