Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use ts-node field from extended tsconfig #1382

Closed
stefanprobst opened this issue Jul 1, 2021 · 2 comments
Closed

use ts-node field from extended tsconfig #1382

stefanprobst opened this issue Jul 1, 2021 · 2 comments

Comments

@stefanprobst
Copy link

Desired Behavior

currently it is possible to define a ts-node field in tsconfig.json for configuration, but when extending from a tsconfig package, which has a ts-node field, that config is not used.

For example, in my project i have:

{
  "extends": "@stefanprobst/tsconfig"
}

and that npm package provides a tsconfig.json which has:

{
  "ts-node": {
    "compilerOptions": {
      "module": "commonjs"
    }
  }
}

Is this request related to a problem?

it would allow me to define a "ts-node" config field once in a tsconfig npm package, and extend it in my projects

Alternatives you've considered

put ts-node config field directly in project's tsconfig.json.

Additional context

@cspotcode
Copy link
Collaborator

cspotcode commented Jul 1, 2021 via email

@stefanprobst
Copy link
Author

thanks!

for reference: #1356 (not released yet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants