Skip to content

///references should support resolving environment variables #4615

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

Closed
larsendaniel opened this issue Sep 3, 2015 · 7 comments
Closed

///references should support resolving environment variables #4615

larsendaniel opened this issue Sep 3, 2015 · 7 comments
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript

Comments

@larsendaniel
Copy link

For example, instead of using
/// <reference path="../../../myCustomPathWhichMightNotWorkOnMyCoWorkersComputer/library.d.ts" />

I’d like to use either
/// <reference path="$(MY_PARTNER_TEAM_LIB)/library.d.ts" />
Or
/// <reference path="%MY_PARTNER_TEAM_LIB%/library.d.ts" />

@mhegazy mhegazy added Suggestion An idea for TypeScript In Discussion Not yet reached consensus labels Sep 3, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Sep 3, 2015

one thing to note, tsconfig.json does not support environment variables either.

@ctartamella
Copy link

+1 for parsing environment variables in (at least) tsconfig.json. Build systems that want to use this file rely on being able to use variables for things like output directories.

@arkdemon
Copy link

+1

2 similar comments
@markdrake
Copy link

+1

@rrgarciach
Copy link

+1

@bkielbasa
Copy link

+1

@RyanCavanaugh
Copy link
Member

We're at ~9 upvotes after five years of being opened and this opens up a big can of worms for things like cloud build systems; with other means to have file inclusion we've added in the meantime, I don't think this one meets the bar for implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In Discussion Not yet reached consensus Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

8 participants