Skip to content

Add .js extensions to runner imports to produce valid esm#46

Merged
andrewMacmurray merged 1 commit intomainfrom
fix-esm-output
Jul 15, 2025
Merged

Add .js extensions to runner imports to produce valid esm#46
andrewMacmurray merged 1 commit intomainfrom
fix-esm-output

Conversation

@andrewMacmurray
Copy link
Owner

Closes #40

When using the concurrent task runner without transpiling in node, the generated esm JS was invalid, e.g.:

import * as fetchAdapter from "./http/fetch";

needs to be

import * as fetchAdapter from "./http/fetch.js";

This PR manually adds the .js extensions in, this could be done via a build tool but it feels like overkill given how stable the runner is right now.

@andrewMacmurray andrewMacmurray merged commit 2d92a7b into main Jul 15, 2025
4 checks passed
@andrewMacmurray andrewMacmurray deleted the fix-esm-output branch July 15, 2025 18:23
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.

Bug: Invalid ESM code in npm package

1 participant