From c7e1b6fae83debf059eb85164e31aa5c62626731 Mon Sep 17 00:00:00 2001 From: Brandon Cheng Date: Fri, 31 May 2024 06:48:13 -0400 Subject: [PATCH] chore: configure TypeScript project references for tests (#8128) * refactor: store link values before converting to references * fix: use .sort() without localeCompare https://github.com/pnpm/pnpm/pull/8128#discussion_r1614031566 > Nit, but you probably just want to call sort without a comparison > function; these are already strings and locale compare is not a good > comparison for anything but human readable strings since it will > differ on different people's machines based on their language setting. > I've hit this too many times before for code gen. * feat: configure meta-updater to write test/tsconfig.json files * fix: relative imports for __typings__ * chore: `pnpm run meta-updater` * fix: explicitly use test/tsconfig.json for ts-jest --- .meta-updater/src/index.ts | 90 ++++++++-- .meta-updater/tsconfig.lint.json | 2 +- __utils__/assert-project/test/tsconfig.json | 17 ++ __utils__/assert-store/test/tsconfig.json | 17 ++ __utils__/test-ipc-server/test/tsconfig.json | 17 ++ cli/cli-utils/test/tsconfig.json | 17 ++ cli/default-reporter/test/tsconfig.json | 17 ++ cli/parse-cli-args/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ config/config/test/tsconfig.json | 17 ++ config/matcher/test/tsconfig.json | 17 ++ .../package-is-installable/test/tsconfig.json | 17 ++ config/parse-overrides/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../plugin-commands-config/test/tsconfig.json | 17 ++ crypto/object-hasher/test/tsconfig.json | 17 ++ dedupe/check/test/tsconfig.json | 17 ++ dedupe/issues-renderer/test/tsconfig.json | 17 ++ deps/graph-sequencer/test/tsconfig.json | 17 ++ env/node.fetcher/test/tsconfig.json | 17 ++ env/node.resolver/test/tsconfig.json | 17 ++ env/plugin-commands-env/test/tsconfig.json | 17 ++ exec/build-modules/test/tsconfig.json | 17 ++ exec/lifecycle/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ exec/prepare-package/test/tsconfig.json | 17 ++ fetching/directory-fetcher/test/tsconfig.json | 17 ++ fetching/git-fetcher/test/tsconfig.json | 17 ++ fetching/pick-fetcher/test/tsconfig.json | 17 ++ fetching/tarball-fetcher/test/tsconfig.json | 17 ++ fs/find-packages/test/tsconfig.json | 17 ++ fs/hard-link-dir/test/tsconfig.json | 17 ++ fs/indexed-pkg-importer/test/tsconfig.json | 17 ++ fs/is-empty-dir-or-nothing/test/tsconfig.json | 17 ++ fs/symlink-dependency/test/tsconfig.json | 17 ++ hooks/pnpmfile/test/tsconfig.json | 17 ++ hooks/read-package-hook/test/tsconfig.json | 17 ++ jest.config.js | 8 + lockfile/audit/test/tsconfig.json | 17 ++ lockfile/filter-lockfile/test/tsconfig.json | 17 ++ lockfile/lockfile-file/test/tsconfig.json | 17 ++ lockfile/lockfile-to-pnp/test/tsconfig.json | 17 ++ lockfile/lockfile-utils/test/tsconfig.json | 17 ++ .../merge-lockfile-changes/test/tsconfig.json | 17 ++ .../plugin-commands-audit/test/tsconfig.json | 17 ++ lockfile/prune-lockfile/test/tsconfig.json | 17 ++ modules-mounter/daemon/test/tsconfig.json | 17 ++ network/auth-header/test/tsconfig.json | 17 ++ network/fetch/test/tsconfig.json | 17 ++ packages/calc-dep-state/test/tsconfig.json | 17 ++ .../crypto.base32-hash/test/tsconfig.json | 17 ++ packages/dependency-path/test/tsconfig.json | 17 ++ packages/error/test/tsconfig.json | 17 ++ packages/git-utils/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../plugin-commands-doctor/test/tsconfig.json | 17 ++ .../plugin-commands-init/test/tsconfig.json | 17 ++ .../plugin-commands-setup/test/tsconfig.json | 17 ++ .../render-peer-issues/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ patching/apply-patch/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ pkg-manager/client/test/tsconfig.json | 17 ++ pkg-manager/core/test/tsconfig.json | 17 ++ pkg-manager/get-context/test/tsconfig.json | 17 ++ pkg-manager/headless/test/tsconfig.json | 17 ++ pkg-manager/link-bins/test/tsconfig.json | 17 ++ pkg-manager/modules-yaml/test/tsconfig.json | 17 ++ pkg-manager/package-bins/test/tsconfig.json | 17 ++ .../package-requester/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ pkg-manager/real-hoist/test/tsconfig.json | 17 ++ .../resolve-dependencies/test/tsconfig.json | 17 ++ .../exportable-manifest/test/tsconfig.json | 17 ++ .../manifest-utils/test/tsconfig.json | 17 ++ .../read-package-json/test/tsconfig.json | 17 ++ .../read-project-manifest/test/tsconfig.json | 17 ++ .../write-project-manifest/test/tsconfig.json | 17 ++ pnpm/test/tsconfig.json | 158 ++++++++++++++++++ pnpm/tsconfig.lint.json | 2 +- .../plugin-commands-deploy/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ resolving/default-resolver/test/tsconfig.json | 17 ++ resolving/git-resolver/test/tsconfig.json | 17 ++ resolving/local-resolver/test/tsconfig.json | 17 ++ resolving/npm-resolver/test/tsconfig.json | 17 ++ resolving/tarball-resolver/test/tsconfig.json | 17 ++ .../dependencies-hierarchy/test/tsconfig.json | 17 ++ reviewing/license-scanner/test/tsconfig.json | 17 ++ reviewing/list/test/tsconfig.json | 17 ++ reviewing/outdated/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ store/cafs/test/tsconfig.json | 17 ++ store/package-store/test/tsconfig.json | 17 ++ .../test/tsconfig.json | 17 ++ .../plugin-commands-store/test/tsconfig.json | 17 ++ store/server/test/tsconfig.json | 17 ++ store/store-path/test/tsconfig.json | 17 ++ text/comments-parser/test/tsconfig.json | 17 ++ worker/tsconfig.lint.json | 2 +- .../test/tsconfig.json | 17 ++ workspace/find-packages/test/tsconfig.json | 17 ++ .../find-workspace-dir/test/tsconfig.json | 17 ++ workspace/pkgs-graph/test/tsconfig.json | 17 ++ workspace/read-manifest/test/tsconfig.json | 17 ++ workspace/spec-parser/test/tsconfig.json | 17 ++ 109 files changed, 1999 insertions(+), 14 deletions(-) create mode 100644 __utils__/assert-project/test/tsconfig.json create mode 100644 __utils__/assert-store/test/tsconfig.json create mode 100644 __utils__/test-ipc-server/test/tsconfig.json create mode 100644 cli/cli-utils/test/tsconfig.json create mode 100644 cli/default-reporter/test/tsconfig.json create mode 100644 cli/parse-cli-args/test/tsconfig.json create mode 100644 completion/plugin-commands-completion/test/tsconfig.json create mode 100644 config/config/test/tsconfig.json create mode 100644 config/matcher/test/tsconfig.json create mode 100644 config/package-is-installable/test/tsconfig.json create mode 100644 config/parse-overrides/test/tsconfig.json create mode 100644 config/pick-registry-for-package/test/tsconfig.json create mode 100644 config/plugin-commands-config/test/tsconfig.json create mode 100644 crypto/object-hasher/test/tsconfig.json create mode 100644 dedupe/check/test/tsconfig.json create mode 100644 dedupe/issues-renderer/test/tsconfig.json create mode 100644 deps/graph-sequencer/test/tsconfig.json create mode 100644 env/node.fetcher/test/tsconfig.json create mode 100644 env/node.resolver/test/tsconfig.json create mode 100644 env/plugin-commands-env/test/tsconfig.json create mode 100644 exec/build-modules/test/tsconfig.json create mode 100644 exec/lifecycle/test/tsconfig.json create mode 100644 exec/plugin-commands-rebuild/test/tsconfig.json create mode 100644 exec/plugin-commands-script-runners/test/tsconfig.json create mode 100644 exec/prepare-package/test/tsconfig.json create mode 100644 fetching/directory-fetcher/test/tsconfig.json create mode 100644 fetching/git-fetcher/test/tsconfig.json create mode 100644 fetching/pick-fetcher/test/tsconfig.json create mode 100644 fetching/tarball-fetcher/test/tsconfig.json create mode 100644 fs/find-packages/test/tsconfig.json create mode 100644 fs/hard-link-dir/test/tsconfig.json create mode 100644 fs/indexed-pkg-importer/test/tsconfig.json create mode 100644 fs/is-empty-dir-or-nothing/test/tsconfig.json create mode 100644 fs/symlink-dependency/test/tsconfig.json create mode 100644 hooks/pnpmfile/test/tsconfig.json create mode 100644 hooks/read-package-hook/test/tsconfig.json create mode 100644 lockfile/audit/test/tsconfig.json create mode 100644 lockfile/filter-lockfile/test/tsconfig.json create mode 100644 lockfile/lockfile-file/test/tsconfig.json create mode 100644 lockfile/lockfile-to-pnp/test/tsconfig.json create mode 100644 lockfile/lockfile-utils/test/tsconfig.json create mode 100644 lockfile/merge-lockfile-changes/test/tsconfig.json create mode 100644 lockfile/plugin-commands-audit/test/tsconfig.json create mode 100644 lockfile/prune-lockfile/test/tsconfig.json create mode 100644 modules-mounter/daemon/test/tsconfig.json create mode 100644 network/auth-header/test/tsconfig.json create mode 100644 network/fetch/test/tsconfig.json create mode 100644 packages/calc-dep-state/test/tsconfig.json create mode 100644 packages/crypto.base32-hash/test/tsconfig.json create mode 100644 packages/dependency-path/test/tsconfig.json create mode 100644 packages/error/test/tsconfig.json create mode 100644 packages/git-utils/test/tsconfig.json create mode 100644 packages/make-dedicated-lockfile/test/tsconfig.json create mode 100644 packages/plugin-commands-doctor/test/tsconfig.json create mode 100644 packages/plugin-commands-init/test/tsconfig.json create mode 100644 packages/plugin-commands-setup/test/tsconfig.json create mode 100644 packages/render-peer-issues/test/tsconfig.json create mode 100644 packages/which-version-is-pinned/test/tsconfig.json create mode 100644 patching/apply-patch/test/tsconfig.json create mode 100644 patching/plugin-commands-patching/test/tsconfig.json create mode 100644 pkg-manager/client/test/tsconfig.json create mode 100644 pkg-manager/core/test/tsconfig.json create mode 100644 pkg-manager/get-context/test/tsconfig.json create mode 100644 pkg-manager/headless/test/tsconfig.json create mode 100644 pkg-manager/link-bins/test/tsconfig.json create mode 100644 pkg-manager/modules-yaml/test/tsconfig.json create mode 100644 pkg-manager/package-bins/test/tsconfig.json create mode 100644 pkg-manager/package-requester/test/tsconfig.json create mode 100644 pkg-manager/plugin-commands-installation/test/tsconfig.json create mode 100644 pkg-manager/real-hoist/test/tsconfig.json create mode 100644 pkg-manager/resolve-dependencies/test/tsconfig.json create mode 100644 pkg-manifest/exportable-manifest/test/tsconfig.json create mode 100644 pkg-manifest/manifest-utils/test/tsconfig.json create mode 100644 pkg-manifest/read-package-json/test/tsconfig.json create mode 100644 pkg-manifest/read-project-manifest/test/tsconfig.json create mode 100644 pkg-manifest/write-project-manifest/test/tsconfig.json create mode 100644 pnpm/test/tsconfig.json create mode 100644 releasing/plugin-commands-deploy/test/tsconfig.json create mode 100644 releasing/plugin-commands-publishing/test/tsconfig.json create mode 100644 resolving/default-resolver/test/tsconfig.json create mode 100644 resolving/git-resolver/test/tsconfig.json create mode 100644 resolving/local-resolver/test/tsconfig.json create mode 100644 resolving/npm-resolver/test/tsconfig.json create mode 100644 resolving/tarball-resolver/test/tsconfig.json create mode 100644 reviewing/dependencies-hierarchy/test/tsconfig.json create mode 100644 reviewing/license-scanner/test/tsconfig.json create mode 100644 reviewing/list/test/tsconfig.json create mode 100644 reviewing/outdated/test/tsconfig.json create mode 100644 reviewing/plugin-commands-licenses/test/tsconfig.json create mode 100644 reviewing/plugin-commands-listing/test/tsconfig.json create mode 100644 reviewing/plugin-commands-outdated/test/tsconfig.json create mode 100644 store/cafs/test/tsconfig.json create mode 100644 store/package-store/test/tsconfig.json create mode 100644 store/plugin-commands-store-inspecting/test/tsconfig.json create mode 100644 store/plugin-commands-store/test/tsconfig.json create mode 100644 store/server/test/tsconfig.json create mode 100644 store/store-path/test/tsconfig.json create mode 100644 text/comments-parser/test/tsconfig.json create mode 100644 workspace/filter-workspace-packages/test/tsconfig.json create mode 100644 workspace/find-packages/test/tsconfig.json create mode 100644 workspace/find-workspace-dir/test/tsconfig.json create mode 100644 workspace/pkgs-graph/test/tsconfig.json create mode 100644 workspace/read-manifest/test/tsconfig.json create mode 100644 workspace/spec-parser/test/tsconfig.json diff --git a/.meta-updater/src/index.ts b/.meta-updater/src/index.ts index cdadcee86b..da7aa0f89d 100644 --- a/.meta-updater/src/index.ts +++ b/.meta-updater/src/index.ts @@ -87,7 +87,7 @@ async function updateTSConfig ( ...importer.dependencies, ...importer.devDependencies, } - const references = [] as Array<{ path: string }> + const linkValues: string[] = [] for (const [depName, spec] of Object.entries(deps)) { if (!spec.startsWith('link:') || spec.length === 5) continue const relativePath = spec.slice(5) @@ -105,16 +105,84 @@ async function updateTSConfig ( // This is to avoid a circular graph (which TypeScript references do not support. continue } - references.push({ path: relativePath }) + linkValues.push(relativePath) } - await writeJsonFile(path.join(dir, 'tsconfig.lint.json'), { - extends: './tsconfig.json', - include: [ - 'src/**/*.ts', - 'test/**/*.ts', - '../../__typings__/**/*.d.ts', - ], - }, { indent: 2 }) + linkValues.sort() + + async function writeTestTsconfig () { + const testDir = path.join(dir, 'test') + if (!await exists(testDir)) { + return + } + + await writeJsonFile(path.join(dir, 'test/tsconfig.json'), { + extends: '../tsconfig.json', + compilerOptions: { + // The composite flag allows projects to be specified as references in + // other projects. Test projects should not be dependencies of other + // files and don't need composite set. + // + // Some tests perform a relative import into the "src" directory to test + // non-publicly exported idenfiers. + // + // import { foo } from "../src/foo" + // + // Instead of: + // + // import { foo } from "@pnpm/example" + // + // The relative "../src" imports would error if composite is enabled + // since composite would require files in "src" to be part of the test + // project. + composite: false, + noEmit: true, + + rootDir: '.' + }, + include: [ + '**/*.ts', + path.relative(testDir, path.join(context.workspaceDir, '__typings__/**/*.d.ts')), + ], + references: (tsConfig as any)?.compilerOptions?.composite === false + // If composite is explicitly set to false, we can't add the main + // tsconfig.json as a project reference. Only composite enabled projects + // can be referenced by definition. Instead, we have to add all the + // project references directly. Note that this check is approximate. The + // main tsconfig.json could inherit another conifg that sets composite + // to be false. + // + // The link values are relative to the current packages root. We'll need + // to re-compute them based off of the "test" directory, which is one + // directory deeper. In practice the path.relative(...) call below just + // prepends another "../" to the relPath, but let's use the correct + // methods to be defensive against future changes to testDir, dir, or + // relPath. + ? linkValues.map(relPath => ({ + path: path.relative(testDir, path.join(dir, relPath)) + })) + + // If the main project is composite (the more common case), we can + // simply reference that. The main project will have more project + // references that will apply to the tests too. + // + // The project reference allows editor features like Go to Definition + // jump to files in src for imports using the current package's name + // (ex: @pnpm/config). + : [{ path: ".." }] + }, { indent: 2 }) + } + + await Promise.all([ + writeTestTsconfig(), + writeJsonFile(path.join(dir, 'tsconfig.lint.json'), { + extends: './tsconfig.json', + include: [ + 'src/**/*.ts', + 'test/**/*.ts', + path.relative(dir, path.join(context.workspaceDir, '__typings__/**/*.d.ts')), + ], + }, { indent: 2 }) + ]) return { ...tsConfig, extends: '@pnpm/tsconfig', @@ -122,7 +190,7 @@ async function updateTSConfig ( ...(tsConfig as any)['compilerOptions'], rootDir: 'src', }, - references: references.sort((r1, r2) => r1.path.localeCompare(r2.path)), + references: linkValues.map(path => ({ path })), } } diff --git a/.meta-updater/tsconfig.lint.json b/.meta-updater/tsconfig.lint.json index 1bbe711971..4092949578 100644 --- a/.meta-updater/tsconfig.lint.json +++ b/.meta-updater/tsconfig.lint.json @@ -3,6 +3,6 @@ "include": [ "src/**/*.ts", "test/**/*.ts", - "../../__typings__/**/*.d.ts" + "../__typings__/**/*.d.ts" ] } diff --git a/__utils__/assert-project/test/tsconfig.json b/__utils__/assert-project/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/__utils__/assert-project/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/__utils__/assert-store/test/tsconfig.json b/__utils__/assert-store/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/__utils__/assert-store/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/__utils__/test-ipc-server/test/tsconfig.json b/__utils__/test-ipc-server/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/__utils__/test-ipc-server/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/cli/cli-utils/test/tsconfig.json b/cli/cli-utils/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/cli/cli-utils/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/cli/default-reporter/test/tsconfig.json b/cli/default-reporter/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/cli/default-reporter/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/cli/parse-cli-args/test/tsconfig.json b/cli/parse-cli-args/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/cli/parse-cli-args/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/completion/plugin-commands-completion/test/tsconfig.json b/completion/plugin-commands-completion/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/completion/plugin-commands-completion/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/config/test/tsconfig.json b/config/config/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/config/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/matcher/test/tsconfig.json b/config/matcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/matcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/package-is-installable/test/tsconfig.json b/config/package-is-installable/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/package-is-installable/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/parse-overrides/test/tsconfig.json b/config/parse-overrides/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/parse-overrides/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/pick-registry-for-package/test/tsconfig.json b/config/pick-registry-for-package/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/pick-registry-for-package/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/config/plugin-commands-config/test/tsconfig.json b/config/plugin-commands-config/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/config/plugin-commands-config/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/crypto/object-hasher/test/tsconfig.json b/crypto/object-hasher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/crypto/object-hasher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/dedupe/check/test/tsconfig.json b/dedupe/check/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/dedupe/check/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/dedupe/issues-renderer/test/tsconfig.json b/dedupe/issues-renderer/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/dedupe/issues-renderer/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/deps/graph-sequencer/test/tsconfig.json b/deps/graph-sequencer/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/deps/graph-sequencer/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/env/node.fetcher/test/tsconfig.json b/env/node.fetcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/env/node.fetcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/env/node.resolver/test/tsconfig.json b/env/node.resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/env/node.resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/env/plugin-commands-env/test/tsconfig.json b/env/plugin-commands-env/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/env/plugin-commands-env/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/exec/build-modules/test/tsconfig.json b/exec/build-modules/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/exec/build-modules/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/exec/lifecycle/test/tsconfig.json b/exec/lifecycle/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/exec/lifecycle/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/exec/plugin-commands-rebuild/test/tsconfig.json b/exec/plugin-commands-rebuild/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/exec/plugin-commands-rebuild/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/exec/plugin-commands-script-runners/test/tsconfig.json b/exec/plugin-commands-script-runners/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/exec/plugin-commands-script-runners/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/exec/prepare-package/test/tsconfig.json b/exec/prepare-package/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/exec/prepare-package/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fetching/directory-fetcher/test/tsconfig.json b/fetching/directory-fetcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fetching/directory-fetcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fetching/git-fetcher/test/tsconfig.json b/fetching/git-fetcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fetching/git-fetcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fetching/pick-fetcher/test/tsconfig.json b/fetching/pick-fetcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fetching/pick-fetcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fetching/tarball-fetcher/test/tsconfig.json b/fetching/tarball-fetcher/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fetching/tarball-fetcher/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fs/find-packages/test/tsconfig.json b/fs/find-packages/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fs/find-packages/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fs/hard-link-dir/test/tsconfig.json b/fs/hard-link-dir/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fs/hard-link-dir/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fs/indexed-pkg-importer/test/tsconfig.json b/fs/indexed-pkg-importer/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fs/indexed-pkg-importer/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fs/is-empty-dir-or-nothing/test/tsconfig.json b/fs/is-empty-dir-or-nothing/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fs/is-empty-dir-or-nothing/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/fs/symlink-dependency/test/tsconfig.json b/fs/symlink-dependency/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/fs/symlink-dependency/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/hooks/pnpmfile/test/tsconfig.json b/hooks/pnpmfile/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/hooks/pnpmfile/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/hooks/read-package-hook/test/tsconfig.json b/hooks/read-package-hook/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/hooks/read-package-hook/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/jest.config.js b/jest.config.js index 2cf4f726a3..b93251325c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -2,6 +2,14 @@ const path = require("path") const config = { preset: "ts-jest", + transform: { + '^.+\\.tsx?$': ['ts-jest', { + // For most projects, the tsconfig.json and test/tsconfig.json are almost + // exactly the same. But it's more correct to point to test/tsconfig.json + // to prevent surprises in the future. + tsconfig: 'test/tsconfig.json' + }] + }, testMatch: ["**/test/**/*.[jt]s?(x)", "**/src/**/*.test.ts"], testEnvironment: "node", collectCoverage: true, diff --git a/lockfile/audit/test/tsconfig.json b/lockfile/audit/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/audit/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/filter-lockfile/test/tsconfig.json b/lockfile/filter-lockfile/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/filter-lockfile/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/lockfile-file/test/tsconfig.json b/lockfile/lockfile-file/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/lockfile-file/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/lockfile-to-pnp/test/tsconfig.json b/lockfile/lockfile-to-pnp/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/lockfile-to-pnp/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/lockfile-utils/test/tsconfig.json b/lockfile/lockfile-utils/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/lockfile-utils/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/merge-lockfile-changes/test/tsconfig.json b/lockfile/merge-lockfile-changes/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/merge-lockfile-changes/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/plugin-commands-audit/test/tsconfig.json b/lockfile/plugin-commands-audit/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/plugin-commands-audit/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/lockfile/prune-lockfile/test/tsconfig.json b/lockfile/prune-lockfile/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/lockfile/prune-lockfile/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/modules-mounter/daemon/test/tsconfig.json b/modules-mounter/daemon/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/modules-mounter/daemon/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/network/auth-header/test/tsconfig.json b/network/auth-header/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/network/auth-header/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/network/fetch/test/tsconfig.json b/network/fetch/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/network/fetch/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/calc-dep-state/test/tsconfig.json b/packages/calc-dep-state/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/calc-dep-state/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/crypto.base32-hash/test/tsconfig.json b/packages/crypto.base32-hash/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/crypto.base32-hash/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/dependency-path/test/tsconfig.json b/packages/dependency-path/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/dependency-path/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/error/test/tsconfig.json b/packages/error/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/error/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/git-utils/test/tsconfig.json b/packages/git-utils/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/git-utils/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/make-dedicated-lockfile/test/tsconfig.json b/packages/make-dedicated-lockfile/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/make-dedicated-lockfile/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/plugin-commands-doctor/test/tsconfig.json b/packages/plugin-commands-doctor/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/plugin-commands-doctor/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/plugin-commands-init/test/tsconfig.json b/packages/plugin-commands-init/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/plugin-commands-init/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/plugin-commands-setup/test/tsconfig.json b/packages/plugin-commands-setup/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/plugin-commands-setup/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/render-peer-issues/test/tsconfig.json b/packages/render-peer-issues/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/render-peer-issues/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/packages/which-version-is-pinned/test/tsconfig.json b/packages/which-version-is-pinned/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/packages/which-version-is-pinned/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/patching/apply-patch/test/tsconfig.json b/patching/apply-patch/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/patching/apply-patch/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/patching/plugin-commands-patching/test/tsconfig.json b/patching/plugin-commands-patching/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/patching/plugin-commands-patching/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/client/test/tsconfig.json b/pkg-manager/client/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/client/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/core/test/tsconfig.json b/pkg-manager/core/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/core/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/get-context/test/tsconfig.json b/pkg-manager/get-context/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/get-context/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/headless/test/tsconfig.json b/pkg-manager/headless/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/headless/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/link-bins/test/tsconfig.json b/pkg-manager/link-bins/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/link-bins/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/modules-yaml/test/tsconfig.json b/pkg-manager/modules-yaml/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/modules-yaml/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/package-bins/test/tsconfig.json b/pkg-manager/package-bins/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/package-bins/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/package-requester/test/tsconfig.json b/pkg-manager/package-requester/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/package-requester/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/plugin-commands-installation/test/tsconfig.json b/pkg-manager/plugin-commands-installation/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/plugin-commands-installation/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/real-hoist/test/tsconfig.json b/pkg-manager/real-hoist/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/real-hoist/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manager/resolve-dependencies/test/tsconfig.json b/pkg-manager/resolve-dependencies/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manager/resolve-dependencies/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manifest/exportable-manifest/test/tsconfig.json b/pkg-manifest/exportable-manifest/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manifest/exportable-manifest/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manifest/manifest-utils/test/tsconfig.json b/pkg-manifest/manifest-utils/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manifest/manifest-utils/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manifest/read-package-json/test/tsconfig.json b/pkg-manifest/read-package-json/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manifest/read-package-json/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manifest/read-project-manifest/test/tsconfig.json b/pkg-manifest/read-project-manifest/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manifest/read-project-manifest/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pkg-manifest/write-project-manifest/test/tsconfig.json b/pkg-manifest/write-project-manifest/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/pkg-manifest/write-project-manifest/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/pnpm/test/tsconfig.json b/pnpm/test/tsconfig.json new file mode 100644 index 0000000000..aab7546791 --- /dev/null +++ b/pnpm/test/tsconfig.json @@ -0,0 +1,158 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": "../../__utils__/assert-project" + }, + { + "path": "../../__utils__/prepare" + }, + { + "path": "../../__utils__/test-fixtures" + }, + { + "path": "../../__utils__/test-ipc-server" + }, + { + "path": "../../cli/cli-meta" + }, + { + "path": "../../cli/cli-utils" + }, + { + "path": "../../cli/command" + }, + { + "path": "../../cli/common-cli-options-help" + }, + { + "path": "../../cli/default-reporter" + }, + { + "path": "../../cli/parse-cli-args" + }, + { + "path": "../../completion/plugin-commands-completion" + }, + { + "path": "../../config/config" + }, + { + "path": "../../config/pick-registry-for-package" + }, + { + "path": "../../config/plugin-commands-config" + }, + { + "path": "../../env/plugin-commands-env" + }, + { + "path": "../../exec/plugin-commands-rebuild" + }, + { + "path": "../../exec/plugin-commands-script-runners" + }, + { + "path": "../../exec/run-npm" + }, + { + "path": "../../lockfile/lockfile-types" + }, + { + "path": "../../lockfile/plugin-commands-audit" + }, + { + "path": "../../packages/constants" + }, + { + "path": "../../packages/core-loggers" + }, + { + "path": "../../packages/crypto.base32-hash" + }, + { + "path": "../../packages/dependency-path" + }, + { + "path": "../../packages/plugin-commands-doctor" + }, + { + "path": "../../packages/plugin-commands-init" + }, + { + "path": "../../packages/plugin-commands-setup" + }, + { + "path": "../../packages/types" + }, + { + "path": "../../patching/plugin-commands-patching" + }, + { + "path": "../../pkg-manager/client" + }, + { + "path": "../../pkg-manager/modules-yaml" + }, + { + "path": "../../pkg-manager/plugin-commands-installation" + }, + { + "path": "../../pkg-manifest/read-package-json" + }, + { + "path": "../../pkg-manifest/read-project-manifest" + }, + { + "path": "../../pkg-manifest/write-project-manifest" + }, + { + "path": "../../releasing/plugin-commands-deploy" + }, + { + "path": "../../releasing/plugin-commands-publishing" + }, + { + "path": "../../reviewing/plugin-commands-licenses" + }, + { + "path": "../../reviewing/plugin-commands-listing" + }, + { + "path": "../../reviewing/plugin-commands-outdated" + }, + { + "path": "../../store/plugin-commands-server" + }, + { + "path": "../../store/plugin-commands-store" + }, + { + "path": "../../store/plugin-commands-store-inspecting" + }, + { + "path": "../../worker" + }, + { + "path": "../../workspace/filter-workspace-packages" + }, + { + "path": "../../workspace/find-packages" + }, + { + "path": "../../workspace/find-workspace-dir" + }, + { + "path": "../../workspace/pkgs-graph" + } + ] +} diff --git a/pnpm/tsconfig.lint.json b/pnpm/tsconfig.lint.json index 1bbe711971..4092949578 100644 --- a/pnpm/tsconfig.lint.json +++ b/pnpm/tsconfig.lint.json @@ -3,6 +3,6 @@ "include": [ "src/**/*.ts", "test/**/*.ts", - "../../__typings__/**/*.d.ts" + "../__typings__/**/*.d.ts" ] } diff --git a/releasing/plugin-commands-deploy/test/tsconfig.json b/releasing/plugin-commands-deploy/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/releasing/plugin-commands-deploy/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/releasing/plugin-commands-publishing/test/tsconfig.json b/releasing/plugin-commands-publishing/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/releasing/plugin-commands-publishing/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/resolving/default-resolver/test/tsconfig.json b/resolving/default-resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/resolving/default-resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/resolving/git-resolver/test/tsconfig.json b/resolving/git-resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/resolving/git-resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/resolving/local-resolver/test/tsconfig.json b/resolving/local-resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/resolving/local-resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/resolving/npm-resolver/test/tsconfig.json b/resolving/npm-resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/resolving/npm-resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/resolving/tarball-resolver/test/tsconfig.json b/resolving/tarball-resolver/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/resolving/tarball-resolver/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/dependencies-hierarchy/test/tsconfig.json b/reviewing/dependencies-hierarchy/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/dependencies-hierarchy/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/license-scanner/test/tsconfig.json b/reviewing/license-scanner/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/license-scanner/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/list/test/tsconfig.json b/reviewing/list/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/list/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/outdated/test/tsconfig.json b/reviewing/outdated/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/outdated/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/plugin-commands-licenses/test/tsconfig.json b/reviewing/plugin-commands-licenses/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/plugin-commands-licenses/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/plugin-commands-listing/test/tsconfig.json b/reviewing/plugin-commands-listing/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/plugin-commands-listing/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/reviewing/plugin-commands-outdated/test/tsconfig.json b/reviewing/plugin-commands-outdated/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/reviewing/plugin-commands-outdated/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/cafs/test/tsconfig.json b/store/cafs/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/cafs/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/package-store/test/tsconfig.json b/store/package-store/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/package-store/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/plugin-commands-store-inspecting/test/tsconfig.json b/store/plugin-commands-store-inspecting/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/plugin-commands-store-inspecting/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/plugin-commands-store/test/tsconfig.json b/store/plugin-commands-store/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/plugin-commands-store/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/server/test/tsconfig.json b/store/server/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/server/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/store/store-path/test/tsconfig.json b/store/store-path/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/store/store-path/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/text/comments-parser/test/tsconfig.json b/text/comments-parser/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/text/comments-parser/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/worker/tsconfig.lint.json b/worker/tsconfig.lint.json index 1bbe711971..4092949578 100644 --- a/worker/tsconfig.lint.json +++ b/worker/tsconfig.lint.json @@ -3,6 +3,6 @@ "include": [ "src/**/*.ts", "test/**/*.ts", - "../../__typings__/**/*.d.ts" + "../__typings__/**/*.d.ts" ] } diff --git a/workspace/filter-workspace-packages/test/tsconfig.json b/workspace/filter-workspace-packages/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/filter-workspace-packages/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/workspace/find-packages/test/tsconfig.json b/workspace/find-packages/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/find-packages/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/workspace/find-workspace-dir/test/tsconfig.json b/workspace/find-workspace-dir/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/find-workspace-dir/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/workspace/pkgs-graph/test/tsconfig.json b/workspace/pkgs-graph/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/pkgs-graph/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/workspace/read-manifest/test/tsconfig.json b/workspace/read-manifest/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/read-manifest/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +} diff --git a/workspace/spec-parser/test/tsconfig.json b/workspace/spec-parser/test/tsconfig.json new file mode 100644 index 0000000000..35069a6b8b --- /dev/null +++ b/workspace/spec-parser/test/tsconfig.json @@ -0,0 +1,17 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "composite": false, + "noEmit": true, + "rootDir": "." + }, + "include": [ + "**/*.ts", + "../../../__typings__/**/*.d.ts" + ], + "references": [ + { + "path": ".." + } + ] +}