diff --git a/package.json b/package.json index 046e047..fad9acd 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "prettier": "prettier --check '**/*.ts*' '**/*.js*'", "prettier-write": "prettier --check --write '**/*.ts*' '**/*.js*'", "lint": "tslint -p tsconfig.json", + "typecheck": "tsc --noEmit --project tsconfig.typecheck.json", "prepare": "npm run build", "prepublishOnly": "npm run lint", "preversion": "npm run lint", @@ -49,7 +50,7 @@ "ts-node": "10.7.0", "tslint": "6.1.3", "tslint-config-prettier": "1.18.0", - "typescript": "4.5.5", + "typescript": "5.9.3", "vitest": "3.2.4", "webpack": "5.94.0", "webpack-cli": "5.1.4" diff --git a/tsconfig.json b/tsconfig.json index e9d60c0..b3b061e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,5 +17,5 @@ "types": ["node"] }, "include": ["lib"], - "exclude": ["node_modules", "dist", "**/*.test.ts"] + "exclude": ["node_modules", "dist", "test", "**/*.test.ts"] } diff --git a/tsconfig.typecheck.json b/tsconfig.typecheck.json new file mode 100644 index 0000000..a8a0512 --- /dev/null +++ b/tsconfig.typecheck.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": ["node_modules", "dist"] +} diff --git a/webpack.config.js b/webpack.config.js index 0e86065..4c064fa 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -11,7 +11,11 @@ module.exports = { test: /\.ts?$/, loader: 'ts-loader', exclude: path.resolve(__dirname, '/node_modules'), - options: { allowTsInNodeModules: true } + options: { + allowTsInNodeModules: true, + // explicitly set the tsconfig file to use to avoid using the typecheck config + configFile: path.resolve(__dirname, 'tsconfig.json') + } } ] }, diff --git a/yarn.lock b/yarn.lock index a659767..73bb2c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2745,16 +2745,8 @@ stream-http@^3.2.0: readable-stream "^3.6.0" xtend "^4.0.2" -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.1.0: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0: + name string-width-cjs version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -2786,14 +2778,8 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: + name strip-ansi-cjs version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -3016,10 +3002,10 @@ typed-array-buffer@^1.0.3: es-errors "^1.3.0" is-typed-array "^1.1.14" -typescript@4.5.5: - version "4.5.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" - integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== +typescript@5.9.3: + version "5.9.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f" + integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw== undici-types@~7.12.0: version "7.12.0"