Skip to content

Feature request: direct invocation without --import @oxc-node/core/register #451

@mtmacdonald

Description

@mtmacdonald

Hello.

Is it possible to invoke oxc-node without --import @oxc-node/core/register?

In my scripts today, I use tsx.is, like this command in my package.json:

    "migrator": "tsx scripts/sql-migrator.mjs",

I can get that working using oxc-node with this:

    "migrator": "node --import @oxc-node/core/register scripts/sql-migrator.mjs",

But it's convenient and readable to not have to register something. Is that supported, or can it be in a similar way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions