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

ts-node-dev ignores tsconfig.json not in the project root #309

Open
stepancheg opened this issue May 3, 2022 · 0 comments
Open

ts-node-dev ignores tsconfig.json not in the project root #309

stepancheg opened this issue May 3, 2022 · 0 comments

Comments

@stepancheg
Copy link

I have src/server/tsconfig.json and src/server/server.ts.

Now I intentionally break src/server/tsconfig.json (put garbage into it).

ts-node parses the file:

$ yarn ts-node --transpile-only -- src/server/server.ts
    return new TSError(diagnosticText, diagnosticCodes);
           ^
TSError: ⨯ Unable to compile TypeScript:
src/server/tsconfig.json:15:25 - error TS1136: Property assignment expected.

15         "allowJs": true,,,,,

ts-node-dev ignores the file:

$ yarn ts-node-dev --transpile-only -- src/server/server.ts
(ts compilation error because I need options from tsconfig.json)
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

1 participant