Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Issue Description
I've filed tsx#694, stating that tsx
incorrectly executes scripts in an ESM context when "type": "commonjs"
is present.
This causes types/tools/copy-ast-spect.ts
to fail, because it tries to access __dirname
, which is not defined in ESM context.
In turn, this means that yarn build
fails.
Reproduction Repository Link
https://github.com/typescript-eslint/typescript-eslint
Repro Steps
- clone the repo
yarn
Versions
package | version |
---|---|
node |
23.6.0 |