-
Notifications
You must be signed in to change notification settings - Fork 676
build: use a shared tsconfig for workspace packages #2532
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
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d36b40f
build: use minimum support @types/node@18 in development
zimeg 76e02e3
test: use @types/node@18 in development when exporting a range
zimeg 88e3ec7
build: use a shared tsconfig for workspace packages
zimeg cc3bfc1
chore: centralize shared shx and tsx dependencies
zimeg 4cae3fb
Merge branch 'main' into tsconfig
zimeg d2412c6
revert: changeset from rebase
zimeg 2ce0633
revert: coauthored by claude
zimeg dabcefd
Merge branch 'main' into tsconfig
zimeg 2f4dd46
chore(deps): ignore major updates to types/node
zimeg c78c54d
build: use root types/node@18 for development
zimeg 309a5cf
ci: remove ignore from packages without runtime types/node dependencies
zimeg 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 hidden or 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,6 +1,7 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "Bash(cat:*)", | ||
| "Bash(echo:*)", | ||
| "Bash(gh issue view:*)", | ||
| "Bash(gh label list:*)", | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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,24 +1,9 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/jsconfig", | ||
| "extends": "../../tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "module": "es2022", | ||
| "moduleResolution": "node", | ||
| "esModuleInterop": true, | ||
| "checkJs": true, | ||
|
|
||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
|
|
||
| "baseUrl": ".", | ||
| "paths": { | ||
| "*": ["./types/*"] | ||
| } | ||
| "checkJs": true | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| } | ||
| "include": ["src/**/*"] | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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,22 +1,6 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "esModuleInterop": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "noImplicitReturns": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "outDir": "dist", | ||
| "skipLibCheck": true, | ||
| "sourceMap": true | ||
| }, | ||
| "extends": "@tsconfig/recommended/tsconfig.json", | ||
| "extends": "../../tsconfig.base.json", | ||
| "include": ["src/**/*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| }, | ||
| "exclude": ["src/**/*.test.*"] | ||
| } |
This file contains hidden or 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 hidden or 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,33 +1,6 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "target": "es2017", | ||
| "module": "commonjs", | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "sourceMap": true, | ||
| "outDir": "dist", | ||
| "skipLibCheck": true, | ||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "moduleResolution": "node", | ||
| "baseUrl": ".", | ||
| "paths": { | ||
| "*": ["./types/*"] | ||
| }, | ||
| "esModuleInterop": true | ||
| // Not using this setting because it's only used to require the package.json file, and that would change the | ||
| // structure of the files in the dist directory because package.json is not located inside src. It would be nice | ||
| // to use import instead of require(), but it's not worth the tradeoff of restructuring the build (for now). | ||
| // "resolveJsonModule": true, | ||
| }, | ||
| "extends": "../../tsconfig.base.json", | ||
| "include": ["src/**/*"], | ||
| "exclude": ["src/**/*.test.*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| } | ||
| "exclude": ["src/**/*.test.*"] | ||
| } |
This file contains hidden or 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 hidden or 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,33 +1,6 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "target": "es5", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📣 note: Since we support a minimum |
||
| "module": "commonjs", | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "sourceMap": true, | ||
| "outDir": "dist", | ||
| "skipLibCheck": true, | ||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "moduleResolution": "node", | ||
| "baseUrl": ".", | ||
| "paths": { | ||
| "*": ["./types/*"] | ||
| }, | ||
| "esModuleInterop": true | ||
| // Not using this setting because it's only used to require the package.json file, and that would change the | ||
| // structure of the files in the dist directory because package.json is not located inside src. It would be nice | ||
| // to use import instead of require(), but it's not worth the tradeoff of restructuring the build (for now). | ||
| // "resolveJsonModule": true, | ||
| }, | ||
| "extends": "../../tsconfig.base.json", | ||
| "include": ["src/**/*"], | ||
| "exclude": ["src/**/spec-utils.ts", "src/**/*.test.*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| } | ||
| "exclude": ["src/**/spec-utils.ts", "src/**/*.test.*"] | ||
| } | ||
This file contains hidden or 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 hidden or 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,33 +1,6 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "compilerOptions": { | ||
| "target": "es2017", | ||
| "module": "commonjs", | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "sourceMap": true, | ||
| "outDir": "dist", | ||
| "skipLibCheck": true, | ||
| "strict": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "noImplicitReturns": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "moduleResolution": "node", | ||
| "baseUrl": ".", | ||
| "paths": { | ||
| "*": ["./types/*"] | ||
| }, | ||
| "esModuleInterop": true | ||
| // Not using this setting because it's only used to require the package.json file, and that would change the | ||
| // structure of the files in the dist directory because package.json is not located inside src. It would be nice | ||
| // to use import instead of require(), but it's not worth the tradeoff of restructuring the build (for now). | ||
| // "resolveJsonModule": true, | ||
| }, | ||
| "extends": "../../tsconfig.base.json", | ||
| "include": ["src/**/*"], | ||
| "exclude": ["src/**/*.spec.*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| } | ||
| "exclude": ["src/**/*.test.*"] | ||
| } |
This file contains hidden or 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 hidden or 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,22 +1,9 @@ | ||
| { | ||
| "$schema": "https://json.schemastore.org/tsconfig", | ||
| "extends": "../../tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "declaration": true, | ||
| "declarationMap": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "noImplicitReturns": true, | ||
| "noUnusedLocals": true, | ||
| "noUnusedParameters": true, | ||
| "outDir": "dist", | ||
| "resolveJsonModule": true, | ||
| "skipLibCheck": true, | ||
| "sourceMap": true | ||
| "resolveJsonModule": true | ||
| }, | ||
| "extends": "@tsconfig/recommended/tsconfig.json", | ||
| "include": ["src/**/*"], | ||
| "exclude": ["src/**/*.test.*"], | ||
| "jsdoc": { | ||
| "out": "support/jsdoc", | ||
| "access": "public" | ||
| } | ||
| "exclude": ["src/**/*.test.*"] | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
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.
nice 💯