#Running node/npm scripts with Deno

2 messages · Page 1 of 1 (latest)

desert swift
#

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!

fierce heron