Is it possible to change the default gulpfile file name for esm packages #2635
Unanswered
plastikfan
asked this question in
Help
Replies: 1 comment
-
I discovered a workaround (tested only in linux tho) to this issue, and this is to create a symbolic link from from gulpfle.js to gulpfile.esm.js (ie ln -s gulpfle.js gulpfile.esm.js). Notr sure if this is the best solution or if there are any drawbacks with it, but it doses serve the purpose. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am defining a gulp workflow for an esm package and have taken heed of the advice here, which says rename the gulpfile to gulpfile.esm.js and install esm (actually, I renamed to gulpfile.esm.mjs, because the .js extension does not work, fails with TypeError: Invalid host defined options).
The problem we have now running gulp, is that everytime we invoke it, we must now explicitly define the gulpfile name, ie -f gulpfile.esm.mjs. So I was wondering is there a way to change the default gulpfile name? I was hoping we could specify it in a .rc file like .gulprc which would aleviate the problem of no longer having a default gulpfile. Running any gulp command now has some friction on it as we have to keep specifying the gulpfile path. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions