How do I pull a dotenv file in as a pkg asset?

Viewed 141

I need to get some dotenv data I have tried to use assets but it returns undefined if I leave the folder with the .env the asset glob I used is:

  "pkg": {
    "assets": ".env",
  }

I execute pkg with pkg . and my bin entry is setup as is.

  "bin": {
    "bot":"./src/bot.js"
  }
0 Answers
Related