Open
Description
Hi, "angular-compilers" when compiling project processing .ts files from node_modules. It seems that not correct.
Steps to reproduce it:
- Get bare project from examples directory
- Add new package, which contains .ts file, for example
@types/meteor-collection-hooks
- Start project via
meteor npm start
- See errors
> @ start /home/iperevozchikov/Sources/test-pro
> meteor run
[[[[[ ~/Sources/test-pro ]]]]]
=> Started proxy.
[client]: ES2015 modules Compilation: 1038.347ms
node_modules/meteor-typings/1.4/test/test.ts (467, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (468, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (469, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (737, 24): Type '(userId: string) => boolean' has no properties in common with type 'Matcher'.
[client]: TypeScript Files Compilation: 3153.892ms
[client]: HTML Files Compilation: 12.694ms \
[client]: SCSS Files Compilation: 3.157ms \
[server]: ES2015 modules Compilation: 555.509ms
node_modules/meteor-typings/1.4/test/test.ts (467, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (468, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (469, 8): Property '_localStorage' does not exist on type 'typeof Meteor'.
node_modules/meteor-typings/1.4/test/test.ts (737, 24): Type '(userId: string) => boolean' has no properties in common with type 'Matcher'.
[server]: TypeScript Files Compilation: 1101.867ms
[server]: HTML Files Compilation: 0.017ms -
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/
My environment:
meteor 1.6.1
angular-compilers@0.3.x
I found that "processFilesForTarget" function exclude only angular based dependencies like rxjs, angular, tsickle, etc.
Also was ignored section "exclude" from tsconfig and it's strange undocumented behavior.
Because package would need to integrate into the typescript way of compilation, but don't ignore.