-
Notifications
You must be signed in to change notification settings - Fork 46
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
Looking under wrong directory for index.d.ts #154
Comments
The cause is this line in resolver.js: What is the intent of this vs using |
How about something like:
|
Tested the release for this. Looks good! 🎉 |
Thanks - getting typings information from package.json isn't going to happen for reasons discussed in #102 (and sometimes it is not there anyway). However in 5.1.1 I have added a new compiler option |
@frankwallis That is fantastic. If only the TypeScript compiler would implement this behavior. |
I just updated to Angular 2 rc6. Each package.json file points 'main' to a umd bundle under a 'bundles' folder but the 'index.d.ts' file is located under each package root. Previously I had config for all of these packages set like:
This no longer works as it looks for a .d.ts file with the same name as the umd bundle. I assume I instead need to tell it to pull typings from 'index.d.ts', correct? If I change this to
typings: 'index.d.ts'
, I get the following error: "Error on fetch for @angular/index.d.ts!github:frankwallis/[email protected]/plugin.js". It's looking under the parent '@angular' folder instead of the package folders' roots.Side note: This may have come up before, but is it not possible to read the typings path from the package.json files and avoid this config entirely?
The text was updated successfully, but these errors were encountered: