-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed as not planned
Closed as not planned
Copy link
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript
Description
Suggestion
π Search Terms
is:open project multiple label:Suggestion
β Viability 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 the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This feature would agree with the rest of TypeScript's Design Goals.
β Suggestion / π Motivating Example
allow tsc to be invoked with multiple project configuration with --project
/ -p
flag in cli like:
tsc --project tsconfig.dev.json tsconfig.prod.json
alternative syntax:
tsc --project tsconfig.dev.json --project tsconfig.prod.json
currently it is only possible to have 1 configuration per tsc run, so tsc has to be executed for each tsconfig like:
tsc --project tsconfig.dev.json
tsc --project tsconfig.prod.json
Note --build
/ -b
flag allows specify multiple projects already.
π» Use Cases
This is useful when one projects has more target configurations (e.g. for deployments / testing / user agents / devices).
This is performance optimization only. The end result is already achievable by ruining tsc multiple times.
Vadko and seahindeniz
Metadata
Metadata
Assignees
Labels
DeclinedThe issue was declined as something which matches the TypeScript visionThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScriptAn idea for TypeScript