Remove typings dependencies#12
Remove typings dependencies#12blakeembrey merged 4 commits intoblakeembrey:masterfrom unional:master
Conversation
|
Thanks. |
|
Shoot. This just broke a dozen dependencies. Trying to short out why now. I think the missing |
|
Oh, I see. I should not have published this. When you remove |
|
Sorry. It's weird. The error from popsicle: error TS2318: Cannot find global type 'Array'.
error TS2318: Cannot find global type 'Boolean'.
error TS2318: Cannot find global type 'Function'.
error TS2318: Cannot find global type 'IArguments'.
error TS2318: Cannot find global type 'Number'.
error TS2318: Cannot find global type 'Object'.
error TS2318: Cannot find global type 'RegExp'.
error TS2318: Cannot find global type 'String'.Seems like it can't load libs. |
I tried it by I thought the tsc resolution will automatically look for |
|
Hmm, I don't think so. I think it only looks for a root |
|
Yep, adding the |
|
weird. I just tried 1.2.0 and tsc didn't complain. |
|
I just checked the resolution logic, it definitely is only resolving |
|
Actually, shoot, it goes much deeper. I accidentally just broke Typings core also 😦 Typings doesn't follow the |
|
It's good that we find a bug. 😏 I'm testing on |
|
Sadly it wasn't a bug originally. It's how I designed it to work. With Typings, it falls back to resolving based on |
|
Actually, this issue is more exacerbated because there's no |
|
I don't have much luck on travis. On Travis it error out "as it should", can't find module But locally it is definitely working. I removed |
|
Make sure you pruned your |
|
I think I have a temporary solution. If it's trying to resolve the entry file and none exists, I'll use |
|
Got it working with typings/core@a599740. |
|
You are right with the typings folder. I wonder if this resolution on tsc is intentional or bug. When resolve files relatively, it reads the |
|
Nice. The output is actually simpler :) |
|
No idea, it does seem a tad inconsistent. Probably a good idea to bring it up with the TypeScript team, I can't see anything about it but probably haven't got the right search terms. |
Haha, thanks. It's mostly circumstantial though, I realised there was a clearer way to write some things and that |
|
The crux of the fix was actually just passing |
[email protected]now comes with typings, sotypings.jsonis no longer needed for distribution.Also, "LICENSE" is always included thus no need to keep in the
files: []array.Also updated
typingsversion to 1.3.1🌷