-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Search Terms
helper {root} {workspace} in tsconfig.json
Suggestion
I have the following project structure
tsconfig.json
>folder
>folder
>folder
tsconfig.json =>
{
"extends": "../../../tsconfig.json"
...
}
I didn't find any path-helper that can replace "../../../" to {root} where the root is the current workspace folder
Use Cases
Avoiding using "../../../" because of this is a headache for refactoring
Examples
// folder/folder/folder/tsconfig.json
{
"extends": "{rootOrWorkspaceFolder}/tsconfig.json"
"paths": {
"root/*": ["{rootOrWorkspaceFolder}/*"]
}
}
Checklist
My suggestion meets these guidelines:
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
chrisebejermt, MasterKale, whzx5byb, karlhorky, ouuan and 5 more
Metadata
Metadata
Assignees
Labels
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScriptAn idea for TypeScript