Skip to content

Missing example how compile using tsconfig.json #147

@CzBuCHi

Description

@CzBuCHi

this is what im having in mind:

var config = { // this is generated on the fly ... or JSON.parse(readFileAsText('tsConfig.json'))
    "compilerOptions": {
        "target": "es6",
        "module": "commonjs",
        "outDir": "./lib",
        "jsx": "react",
    },
    "compileOnSave": false,
    "include": ["src"],
    "exclude": ["lib"]
}

var emitResult = tsc.compileByConfig(config); // this line is what im missing ..

currently i have no idea, how to resolve all files that will be compiled...

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