You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's certainly fine. Grunt is designed around "Do thing, stop, do next thing, stop" so watch has always been a bit awkward. At some point in the future I would like to consolidate watch and fast to work with the TypeScript language service, but this will take a lot of time. In the meantime, it may be sufficient to add tracking of .js files to the watch if allowJs is passed-in. I know our best use case is as part of a whole pipeline (build/minify/test/etc.) rather than watch.
ToDo: Add .js files (possibly .jsx/.tsx) to handleFileEvent in ts.ts.
I have a
tsconfig.json
file withallowJs:true
In my
grunt-ts
configuration, I'm referencing it and using thepassThrough:true
option :Anyway, when I run
grunt ts:dist
:.ts
file.js
file (despite theallowJs
flag intsconfig.json
However, when I run
tsc --project app/scripts/ -w
:.ts
file.js
file, denoting we have currently a different behaviour betweengrunt-ts
andtsc
Does it sound normal to you ?
I would have expected
grunt-ts
to rely ontsc
rather than re-implement his own watching mechanism.FYI, my whole
tsconfig.json
file :The text was updated successfully, but these errors were encountered: