Replies: 1 comment
-
by default tsup will exclude my tsup version is // your tsup.config.ts
import { dependencies, devDependencies } from './package.json';
export default defineConfig({
noExternal: Object.keys(dependencies).concat(Object.keys(devDependencies))
}) |
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
-
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.
Beta Was this translation helpful? Give feedback.
All reactions