-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(client): Use new node16 tsconfigs in azure, client, and DDS projects #18152
Merged
tylerbutler
merged 16 commits into
microsoft:main
from
tylerbutler:module-resolution-node16-with-tsconfigs
Nov 8, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
c4cb015
baseline
tylerbutler 095fc7d
packages/common
tylerbutler 358a338
azure/packages
tylerbutler 47dbe05
packages/dds
tylerbutler fea34a9
formatting
tylerbutler fc60078
fix
tylerbutler 5fa8381
wip
tylerbutler 81e300a
Merge branch 'main' into module-resolution-node16-with-tsconfigs
tylerbutler 884f7c3
Revert "wip"
tylerbutler 7c55e59
Merge branch 'main' into module-resolution-node16-with-tsconfigs
tylerbutler c087192
use commonjs in test projects
tylerbutler 455f614
Merge branch 'main' into module-resolution-node16-with-tsconfigs
tylerbutler 6fd6f1b
formatting
tylerbutler bac3465
Merge branch 'main' into module-resolution-node16-with-tsconfigs
tylerbutler 52d9622
feedback
tylerbutler 8794708
fixup
tylerbutler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
"composite": true, | ||
"types": ["mocha", "node"], | ||
"skipLibCheck": true, | ||
}, | ||
"extends": [ | ||
"../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
"types": ["mocha", "node"], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"extends": ["./tsconfig.json", "../../../common/build/build-common/tsconfig.esm.json"], | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"module": "esnext", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"extends": [ | ||
"../../../common/build/build-common/tsconfig.base.json", | ||
"../../../common/build/build-common/tsconfig.cjs.json", | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"composite": true, | ||
"types": ["node"], | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"exclude": [], | ||
"extends": [ | ||
"../../../common/build/build-common/tsconfig.base.json", | ||
"../../../common/build/build-common/tsconfig.cjs.json", | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"composite": true, | ||
}, | ||
"include": ["src/**/*"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
"declaration": false, | ||
"declarationMap": false, | ||
"skipLibCheck": true, | ||
"noEmit": true, | ||
}, | ||
"extends": [ | ||
"../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
"noEmit": true, | ||
"types": [], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"extends": ["./tsconfig.json", "../../../common/build/build-common/tsconfig.esm.json"], | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"module": "esnext", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"extends": [ | ||
"../../../common/build/build-common/tsconfig.base.json", | ||
"../../../common/build/build-common/tsconfig.cjs.json", | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
"compilerOptions": { | ||
"strictNullChecks": true, | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"composite": true, | ||
}, | ||
"include": ["src/**/*"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"extends": ["./tsconfig.base.json"], | ||
"compilerOptions": { | ||
"module": "Node16", | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"extends": ["./tsconfig.base.json"], | ||
"compilerOptions": { | ||
"module": "ESNext", | ||
"moduleResolution": "Node10", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{ | ||
"extends": ["./tsconfig.esm.json"], | ||
"extends": ["./tsconfig.base.json", "./tsconfig.esm.json"], | ||
"compilerOptions": { | ||
"composite": false, | ||
"types": ["node"], | ||
"declaration": false, | ||
"declarationMap": false, | ||
"skipLibCheck": true, | ||
"module": "CommonJS", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/jest", | ||
"types": ["jest", "jest-environment-puppeteer", "node", "puppeteer"], | ||
}, | ||
"extends": [ | ||
"../../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/jest", | ||
"types": ["jest", "jest-environment-puppeteer", "node", "puppeteer"], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"exclude": ["dist", "node_modules"], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/mocha", | ||
"types": ["node", "mocha"], | ||
}, | ||
"extends": [ | ||
"../../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/mocha", | ||
"types": ["mocha", "node"], | ||
}, | ||
} |
28 changes: 15 additions & 13 deletions
28
packages/common/client-utils/src/test/types/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"extends": [ | ||
Josmithr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"../../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"exclude": [ | ||
"dist", | ||
"node_modules" | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/types", | ||
}, | ||
"include": [ | ||
"./**/*" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../.." | ||
} | ||
] | ||
"references": [ | ||
{ | ||
"path": "../../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/types", | ||
"types": [], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"extends": ["./tsconfig.json", "../../../common/build/build-common/tsconfig.esm.json"], | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"module": "esnext", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"extends": [ | ||
"../../../common/build/build-common/tsconfig.base.json", | ||
"../../../common/build/build-common/tsconfig.cjs.json", | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"composite": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"perf_hooks": ["types/perf_hooks.d.ts"], | ||
}, | ||
"types": ["events"], | ||
}, | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
} |
33 changes: 16 additions & 17 deletions
33
packages/common/container-definitions/src/test/types/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/types", | ||
"declaration": false, | ||
"declarationMap": false, | ||
"skipLibCheck": true, | ||
"noEmit": true, | ||
}, | ||
"include": [ | ||
"./**/*" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../../.." | ||
} | ||
] | ||
"extends": [ | ||
"../../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../../dist/test/types", | ||
"noEmit": true, | ||
"types": [], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"extends": ["./tsconfig.json", "../../../common/build/build-common/tsconfig.esm.json"], | ||
"compilerOptions": { | ||
"outDir": "./lib", | ||
"module": "esnext", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"extends": [ | ||
"../../../common/build/build-common/tsconfig.base.json", | ||
"../../../common/build/build-common/tsconfig.cjs.json", | ||
], | ||
"include": ["src/**/*"], | ||
"exclude": ["src/test/**/*"], | ||
"compilerOptions": { | ||
"rootDir": "./src", | ||
"outDir": "./dist", | ||
"composite": true, | ||
}, | ||
"include": ["src/**/*"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
{ | ||
"extends": "@fluidframework/build-common/ts-common-config.json", | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
"declaration": false, | ||
"declarationMap": false, | ||
"skipLibCheck": true, | ||
"noEmit": true, | ||
}, | ||
"extends": [ | ||
"../../../../../common/build/build-common/tsconfig.base.json", | ||
"../../../../../common/build/build-common/tsconfig.test.json", | ||
], | ||
"include": ["./**/*"], | ||
"references": [ | ||
{ | ||
"path": "../..", | ||
}, | ||
], | ||
"compilerOptions": { | ||
"rootDir": "./", | ||
"outDir": "../../dist/test", | ||
}, | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding these docs! These are great!