Skip to content

Can't run npm scripts with tsx using deno task #30538

Description

@isAdrisal

Version: Deno 2.4.5

I reported this first on Discord and was asked to file a bug: https://discord.com/channels/684898665143206084/1409773999084408853

I've created a minimal repro project with instructions here: https://github.com/isAdrisal/deno-node

Running deno task test results in the following output:

deno-node  % deno task test
Task test tsx test.js
error: unexpected argument '--require' found

  tip: to pass '--require' as a value, use '-- --require'

Usage: deno run [OPTIONS] [SCRIPT_ARG]...

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs investigationrequires further investigation before determining if it is an issue or nottask runnerrelated to deno task

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions