-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Module resolution for gulpfile.ts directory #2311
Module resolution for gulpfile.ts directory #2311
Comments
You need |
Sorry, that is what I meant. The suggestion to add to the docs remains |
@tonyhallett how would you phrase that? I believe it would have to go in the "splitting a gulpfile" section and say something like:
That seems a little rough but does it cover the problem you encountered? Also, does my solution actually work? It's abusing a lot of implied behaviors and I don't know how they interact together. |
@phated I have just re-read the the docs page that I linked to. It does state 'You can write a gulpfile using a language that requires transpilation, like TypeScript or Babel, by changing the extension on your gulpfile.js to indicate the language and install the matching transpiler module.' Perhaps it should have been a bit clearer that gulpfile.js was not necessarily a file and applied to folders. I will create a pull request with my suggested changes. |
The docs describe module resolution to a folder named gulpfile.js. Somewhere there should be a mention that this will not work with a folder gulpfile.ts when using gulp-typescript even if it is a given that node module resolution works the same here.
The text was updated successfully, but these errors were encountered: