Skip to content

Conversation

@paris3200
Copy link

Using npx to run esbuild was causing npm warnings running aocrunner with pnpm. This happened because pnpm exports its config as npm_config_* environment variables, which npm doesn't recognize.

Switched to importing and calling the esbuild API directly instead of spawning a subprocess. This makes the build process work cleanly with any package manager and removes the subprocess overhead.

Made buildSource, build, and dev functions async to support the new esbuild API calls. Updated tsconfig to es2022 to enable top-level await in the CLI.

Using npx to run esbuild was causing npm warnings when users ran
aocrunner with pnpm. This happened because pnpm exports its config
as npm_config_* environment variables, which npm doesn't recognize.

Switched to importing and calling the esbuild API directly instead
of spawning a subprocess. This makes the build process work cleanly
with any package manager and removes the subprocess overhead.

Made buildSource, build, and dev functions async to support the new
esbuild API calls. Updated tsconfig to es2022 to enable top-level
await in the CLI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant