Hi,
I think that my question is about a basic usage but I can't find instruction in documentation or other issues and discussions..
So, I want to build a single index.js wich inclue all other typescript files (it's already good for that) and all depencies, on a typescript project.
Actually, if i do a tsup src/index.ts
at root, a dist folder is built with the famous index.js inside.
But, this index.js work only in this dist folder (or at root of project).
So, if I put this file on my production server (without any package.json or node_modules folder), and I do a node index.js
, some error are printed to say that modules aren't found (package.json depencies).
Could you help me to find the correct arguments to include all depencies at build time π.
Thanks by advance.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too