Skip to content

Commit e0ec98c

Browse files
authored
Revision 0.34.41 (#1310)
* Update Module Resolution for TS7 Node10 Deprecation * Version * ChangeLog
1 parent 81c3686 commit e0ec98c

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

changelog/0.34.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
---
44

55
### Revision Updates
6+
- [Revision 0.34.41](https://github.com/sinclairzx81/typebox/pull/1310)
7+
- Disable Node10 Module Resolution | TS7 Deprecation Warning.
68
- [Revision 0.34.40](https://github.com/sinclairzx81/typebox/pull/1293)
79
- Use Uniform over Reciprocal weighting on Cast Union Select
810
- [Revision 0.34.39](https://github.com/sinclairzx81/typebox/pull/1296)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sinclair/typebox",
3-
"version": "0.34.40",
3+
"version": "0.34.41",
44
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
55
"keywords": [
66
"typescript",

task/build/cjs/compile.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export async function compile(target: string) {
3333
const options = [
3434
`--outDir ${target}`,
3535
'--target ES2020',
36-
'--module CommonJS',
36+
'--module Node16',
37+
'--moduleResolution Node16',
3738
'--declaration',
3839
].join(' ')
3940
await shell(`tsc -p ./src/tsconfig.json ${options}`)

task/build/esm/compile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export async function compile(target: string) {
3434
`--outDir ${target}`,
3535
'--target ES2020',
3636
'--module ESNext',
37+
'--moduleResolution Bundler',
3738
'--declaration',
3839
].join(' ')
3940
await shell(`tsc -p ./src/tsconfig.json ${options}`)

task/build/package/create-package-json-redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function writeRedirect(target: string, submodule: string) {
3838
}
3939
// --------------------------------------------------------------------------------------------------------------------------
4040
// Builds redirect directories for earlier versions of Node. Note that TypeScript will use these directories to
41-
// resolve types when tsconfig.json is configured for `moduleResolution: 'node'`. This approach is referred to as
41+
// resolve types when tsconfig.json is configured for `moduleResolution: 'Node16'`. This approach is referred to as
4242
// `package-json-redirect` and enables correct type resolution in lieu of a correct end user configuration.
4343
//
4444
// https://github.com/andrewbranch/example-subpath-exports-ts-compat/tree/main/examples/node_modules/package-json-redirects

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"compilerOptions": {
33
"strict": true,
44
"target": "ES2020",
5-
"module": "ESNext",
6-
"moduleResolution": "Node",
5+
"module": "Node16",
6+
"moduleResolution": "Node16",
77
"baseUrl": ".",
88
"paths": {
99
"@sinclair/typebox/compiler": ["src/compiler/index.ts"],

0 commit comments

Comments
 (0)