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
Hi, first of all, thanks a lot for your work. This helped me out a lot. I'm using dotenv in my functions but it's not included in the built package.json, all other dependencies work fine. This is probably because it is imported like this:
import'dotenv/config';// my code
When I try to include it manually using docts build --include-dependencies dotenv I get node_modules/dotenv/package.json (2:8): Expected ';', '}' or <eof> (Note that you need @rollup/plugin-json to import JSON files). Is this something that can be fixed easily?
The text was updated successfully, but these errors were encountered:
Hi @aLemonFox. Thanks for using the project and thanks for your feedback.
From the error message, it seems like dotenv/config at a point import a json file, but the build setup I used doesn't support json. This is most likely the error here, but I'll also look into why specifying it using the --include-dependencies flag didn't work.
Hi, first of all, thanks a lot for your work. This helped me out a lot. I'm using
dotenv
in my functions but it's not included in the built package.json, all other dependencies work fine. This is probably because it is imported like this:When I try to include it manually using
docts build --include-dependencies dotenv
I getnode_modules/dotenv/package.json (2:8): Expected ';', '}' or <eof> (Note that you need @rollup/plugin-json to import JSON files)
. Is this something that can be fixed easily?The text was updated successfully, but these errors were encountered: