-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tsconfig.json to ref hoist-react as composite build
+ Allow for distinct tsconfig options in HR vs. app-level. Relies on `composite: true` flag to be set in hoist-react tsconfig.json. + Re-order tsconfig options for clarity.
- Loading branch information
Showing
3 changed files
with
207 additions
and
195 deletions.
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
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,23 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"experimentalDecorators": true, | ||
"noEmit": true, | ||
|
||
"target": "ES2022", | ||
"module": "ES2022", | ||
"lib": ["dom", "es2022"], | ||
|
||
"jsx": "react", | ||
"moduleResolution": "Node", | ||
"skipLibCheck": true, | ||
|
||
"allowSyntheticDefaultImports": true, | ||
"resolveJsonModule": true, | ||
"noEmit": true, | ||
"experimentalDecorators": true, | ||
"noImplicitOverride": true, | ||
"jsx": "react", | ||
"resolveJsonModule": true, | ||
"useDefineForClassFields": true, | ||
"paths": { | ||
"@xh/hoist/*": ["../../hoist-react/*"] | ||
This comment has been minimized.
Sorry, something went wrong. |
||
}, | ||
"lib": [ | ||
"dom", | ||
"es2022" | ||
] | ||
}, | ||
"references": [ | ||
{"path": "./node_modules/@xh/hoist"} | ||
], | ||
This comment has been minimized.
Sorry, something went wrong.
amcclain
Author
Member
|
||
"include": ["src"] | ||
} | ||
} |
Oops, something went wrong.
This was a bit of a weird setting for us to have in TB. As far as I can tell, it supports ctrl+clicking in IJ on a Hoist import to navigate to a locally checked-out copy, if you actually have such a copy at this path.
I don't think it's really appropriate to leave checked in here. Without it, ctrl+clicking still works, but takes you to the copy of hoist-react within node_modules.
This was not compatible as-is with the change we're making here.