Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(api): clean up api runs for local dev (#3572)
* fix(api): remove admin server start from public server module With the removal of the 'require.main' check, the admin server gets started once on import and then again in the explicit admin server call in graphql-main-server.ts. This is to remove the 2nd call from main-server. * fix(api): re-add 'require.main' check & admin call from main server This was removed to support using bun as a runner. (see oven-sh/bun#4818 (comment)) There are other issues with bun as well for now, so I'm reverting this until we need to use bun as a runner and the issue is still not fixed in bun. * chore(api): swap ts-node for tsx * chore(api): add package.json scripts for dev servers * build: add dev-public & dev-admin commands to BUCK * build: add dev option for til api run * build: add local file srcs to dev-api rule * chore(api): remove admin server redundant run code * refactor(api): separate public/admin/run api code * chore: switch tsx in bats test helper * chore: switch tsx in top-level bats test helper
- Loading branch information