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

Fix ts-node setup #722

Open
AndrewFerr opened this issue Apr 21, 2023 · 0 comments
Open

Fix ts-node setup #722

AndrewFerr opened this issue Apr 21, 2023 · 0 comments
Assignees
Labels
S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.

Comments

@AndrewFerr
Copy link
Member

Some of the yarn scripts that execute TypeScript files via ts-node fail with an error of "Emit skipped", because they target files that are outside of tsconfig.json's rootDir (as discussed here).

To fix this, TypeScript project settings must be changed so that the files run by ts-node are among those that get compiled into JS.

The most targeted way of achieving that is to add tsconfig overrides for ts-node: https://typestrong.org/ts-node/docs/configuration/#via-tsconfigjson-recommended

See: TypeStrong/ts-node#1595

@AndrewFerr AndrewFerr added T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. S-Minor Impairs non-critical functionality or suitable workarounds exist labels Apr 21, 2023
@AndrewFerr AndrewFerr self-assigned this Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.
Projects
None yet
Development

No branches or pull requests

1 participant