This website uses cookies to ensure you get the best experience.
Learn more.
A team packages a custom JavaScript action. The repository contains src/index.js and node_modules locally, but the released revision contains neither the dependencies nor a bundled distributable. Consumers see Cannot find module. What is the most reliable packaging correction?
Published
- Build and include a distributable containing the required runtime dependencies, and point runs.main at that file.
- Commit only package.json and assume GitHub automatically installs the JavaScript action dependencies before runs.main.
- Assume the caller project node_modules directory supplies all action dependencies.
- Set NODE_PATH to an absolute dependency directory that exists only on the author machine.
Comments — 0
Sign in to comment