0

To run a script with Yarn 2's PnP, one should run yarn node script.js, rather than node script.js.

Is there an universal way to run things like ts-node (i.e. where you don't call node directly, thus you can't replace it with yarn node) with Yarn 2's PnP?

John Smith
  • 3,863
  • 3
  • 24
  • 42

1 Answers1

0

Just running yarn ts-node [...] (or yarn run ts-node [...]) works fine.

Maël Nison
  • 7,055
  • 7
  • 46
  • 77