Skip to content

TypeScript needs a baseDir option #77

Open
@basarat

Description

@basarat

Say we have the JS structure:

ts
    a.ts
    foo
    |    b.ts
    |    c.ts
js
    a.js
    foo
    |    b.js
    |    c.js

If we compile with all three files with outDir set to js its all okay. But if we only compile b.ts or c.ts with outDir set to js then we would get:

js    
    |    b.js
    |    c.js

Workaround is to create a temporary file under ts called ignoreBaseDirFile.ts and pass it to the tsc compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions