From 7b0e23396a32a07d8388593c267c4bd898601359 Mon Sep 17 00:00:00 2001 From: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> Date: Sat, 17 Aug 2024 19:08:06 +0300 Subject: [PATCH] refactor(tsconfig): remove `composite` option --- index.d.ts | 2 +- tsconfig.json | 2 +- tsconfig.node.json | 21 +++++++++++++++------ 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/index.d.ts b/index.d.ts index 93360a3..fcf3ac8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,7 +14,7 @@ interface UserConfig extends Options { /** * Define an Semantic Release config. * - * @param {object} config Semantic Release config. + * @param {object} config Semantic Release. * * @returns Semantic Release config. */ diff --git a/tsconfig.json b/tsconfig.json index 1a1416c..74c402c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { + // Type Checking "allowUnreachableCode": false, "allowUnusedLabels": false, - "disableReferencedProjectLoad": true, "exactOptionalPropertyTypes": true, "noImplicitAny": true, "noImplicitReturns": true, diff --git a/tsconfig.node.json b/tsconfig.node.json index fda300b..27c1270 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,15 +1,24 @@ { "compilerOptions": { - "allowImportingTsExtensions": true, - "composite": true, + // Completeness + "skipLibCheck": true, + // Emit + "declaration": true, "emitDeclarationOnly": true, + "outDir": "", + // Language and Environment "lib": ["ESNext"], + "target": "ESNext", + // Modules + "allowImportingTsExtensions": true, "module": "NodeNext", "moduleResolution": "NodeNext", - "outDir": "", + "paths": { + "#types": ["./src/types/index.d.ts"] + }, "rootDir": "src", - "skipLibCheck": true, - "target": "ESNext", - "types": ["vitest"] + "types": ["vitest"], + // Projects + "disableReferencedProjectLoad": true } }