You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using the main entrypoint function directly instead of using the cli to start up the function, mostly on the development environment.
This has some advantages, among others:
Can be started with node directly: node src/server.js
Can use node watcher, no need for extra setup with nodemon&others: node --watch src/server.js
Better typescript support with ts-node/tsx: tsx --watch src/server.ts
This server.js would use the exported main entry point:
The text was updated successfully, but these errors were encountered:
cctidal
changed the title
Feature request: export "main" entrypoint to allow using it directly instead of using the CI
Feature request: export "main" entrypoint to allow using it directly instead of using the cli
May 9, 2025
I'm interested in using the main entrypoint function directly instead of using the cli to start up the function, mostly on the development environment.
This has some advantages, among others:
node src/server.js
node --watch src/server.js
tsx --watch src/server.ts
This server.js would use the exported main entry point:
I'd be willing to implement this feature
The text was updated successfully, but these errors were encountered: