isAdrisalI
Deno5mo ago
2 replies
isAdrisal

Running node/npm scripts with Deno

I am trying to use Deno in place of npm for a particular project.

I run deno install and it appears to install deps just fine from the package.json.

The scripts in the package.json are a series of
tsx
scripts, like:

{
  scripts: {
    test: "tsx src/test.ts"
  }
},


When I run deno task test I get an error like:

error: unexpected argument '--require' found

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


Should this use case work? If so, could you let me know what I'm missing?

Edit to add:
tsx
is included as a devDepencies entry in the package.json.

Thank you!
Was this page helpful?