How to combine separate programs into single executable?

I have two separate programs that run in conjunction with each other.

  • project.js which is currently run with just npm run start:project in the directory
    project.py which is currently run with python project.py in the directory.

I need to give this software out to other people but I don’t want them to have direct access to the code or have them manually executing these files in the terminal which is why I think packaging it into a single exe file or two separate exe files to send out would be the best option but I’m not sure how to go about doing so.

Additional project info:

  • The JS file is currently setup to initialize a local endpoint that the python file can access to make certain decisions
  • Would not want/need to host this on the web. Would just be distributed by sending it directly to the user

I’ve looked into posts about turning projects into executables but in all circumstances I could only find them in reference to single projects where all code is written in the same environment.