P
P
premori ove2020-08-24 16:00:33
Node.js
premori ove, 2020-08-24 16:00:33

How to compile a finished node js project into one executable file?

Good afternoon, there is a ready and working project on a node with a huge bunch of dependencies and I need to collect this entire project into one executable in order to send it to a friend, but the problem is that I could not find a packer that will pack both dependencies and scripts, I tried pkg but constantly faced with the fact that it cannot fit all packages and dependencies, so I'm looking for an alternative. Please help

The project looks like this

project
       /node_module
       /app
            app.js
            infp.js
            module.js
     index.js
     package.json

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-08-24
@Kozack

https://dev.to/jochemstoel/bundle-your-node-app-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question