Skip to content

Commit 40b29ec

Browse files
authored
Merge pull request #131 from lightninglabs/auth-02-config
[SBA-02] update typescript and add typecheck script
2 parents 989d4d5 + 97ea2d2 commit 40b29ec

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"prettier": "prettier --check '**/*.ts*' '**/*.js*'",
1616
"prettier-write": "prettier --check --write '**/*.ts*' '**/*.js*'",
1717
"lint": "tslint -p tsconfig.json",
18+
"typecheck": "tsc --noEmit --project tsconfig.typecheck.json",
1819
"prepare": "npm run build",
1920
"prepublishOnly": "npm run lint",
2021
"preversion": "npm run lint",
@@ -49,7 +50,7 @@
4950
"ts-node": "10.7.0",
5051
"tslint": "6.1.3",
5152
"tslint-config-prettier": "1.18.0",
52-
"typescript": "4.5.5",
53+
"typescript": "5.9.3",
5354
"vitest": "3.2.4",
5455
"webpack": "5.94.0",
5556
"webpack-cli": "5.1.4"

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
"types": ["node"]
1818
},
1919
"include": ["lib"],
20-
"exclude": ["node_modules", "dist", "**/*.test.ts"]
20+
"exclude": ["node_modules", "dist", "test", "**/*.test.ts"]
2121
}

tsconfig.typecheck.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "dist"]
4+
}

webpack.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ module.exports = {
1111
test: /\.ts?$/,
1212
loader: 'ts-loader',
1313
exclude: path.resolve(__dirname, '/node_modules'),
14-
options: { allowTsInNodeModules: true }
14+
options: {
15+
allowTsInNodeModules: true,
16+
// explicitly set the tsconfig file to use to avoid using the typecheck config
17+
configFile: path.resolve(__dirname, 'tsconfig.json')
18+
}
1519
}
1620
]
1721
},

yarn.lock

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2745,16 +2745,8 @@ stream-http@^3.2.0:
27452745
readable-stream "^3.6.0"
27462746
xtend "^4.0.2"
27472747

2748-
"string-width-cjs@npm:string-width@^4.2.0":
2749-
version "4.2.3"
2750-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
2751-
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
2752-
dependencies:
2753-
emoji-regex "^8.0.0"
2754-
is-fullwidth-code-point "^3.0.0"
2755-
strip-ansi "^6.0.1"
2756-
2757-
string-width@^4.1.0:
2748+
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0:
2749+
name string-width-cjs
27582750
version "4.2.3"
27592751
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
27602752
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -2786,14 +2778,8 @@ string_decoder@~1.1.1:
27862778
dependencies:
27872779
safe-buffer "~5.1.0"
27882780

2789-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
2790-
version "6.0.1"
2791-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
2792-
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
2793-
dependencies:
2794-
ansi-regex "^5.0.1"
2795-
2796-
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
2781+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
2782+
name strip-ansi-cjs
27972783
version "6.0.1"
27982784
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
27992785
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -3016,10 +3002,10 @@ typed-array-buffer@^1.0.3:
30163002
es-errors "^1.3.0"
30173003
is-typed-array "^1.1.14"
30183004

3019-
typescript@4.5.5:
3020-
version "4.5.5"
3021-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
3022-
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
3005+
typescript@5.9.3:
3006+
version "5.9.3"
3007+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f"
3008+
integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==
30233009

30243010
undici-types@~7.12.0:
30253011
version "7.12.0"

0 commit comments

Comments
 (0)