"ionic build" vs "tsc" (typescript errors)

Hi,

Can someone explain why ts processing differs between “ionic build” and “tsc” commands ?
Especially I’m having troubles with custom global var declaration in a d.ts file.
Code compiles with no error using “tsc” but does not with “ionic build” (and no app.bundle.ts is generated).

Thanks,

Jul

OK I think I got it :
ionic cli is apparently using an older typings package which is not the case when running tsc directly and things have changed a bit in between (for example main.d.ts is now index.d.ts).

This particular post helped me find that : http://x-team.com/2016/06/include-javascript-libraries-in-an-ionic-2-typescript-project/
Thanks to its author!

Jul