Skip to content

On tsconfig.json 'files' handling #620

@dcodeIO

Description

@dcodeIO

Tip: ts-node differs slightly from tsc. It will not load files from tsconfig.json by default. Instead, ts-node starts from the input file and discovers the rest of the project tree through imports and references.

This is unfortunate for me. Essentially, I have a project where I can't add /// <references to the sources because the target (JS or WASM) is interchangeable, and the necessary declarations are added through extending different base tsconfig.jsons, relying on files being included.

Is there a way to force the old behavior in new versions of ts-node?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions