Skip to content
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

ES6: lib.es6.d.ts not included #94

Closed
alshain opened this issue Apr 20, 2015 · 1 comment
Closed

ES6: lib.es6.d.ts not included #94

alshain opened this issue Apr 20, 2015 · 1 comment

Comments

@alshain
Copy link

alshain commented Apr 20, 2015

When setting the target to es6, it still loads the ES3/5 lib.d.ts file.

var content = fs.readFileSync(path.resolve(path.dirname(filename) + '/lib.d.ts')).toString('utf8');
return this.libDefault[filename] = tsApi.createSourceFile(typescript, '__lib.d.ts', content, typescript.ScriptTarget.ES3); // Will also work for ES5 & 6

I suppose you need to expose options to Host so you can conditionally include one or the other.

On my local installation, I've hardcoded it to lib.es6.d.ts and it seems to do the trick.

var content = fs.readFileSync(path.resolve(path.dirname(filename) + '/lib.d.ts')).toString('utf8');

mike-morr referenced this issue in cmichaelgraham/aurelia-typescript May 1, 2015
ivogabe added a commit that referenced this issue May 1, 2015
@ivogabe
Copy link
Owner

ivogabe commented May 1, 2015

Fixed in master

@ivogabe ivogabe closed this as completed May 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants