hfour / hfour/ctsc

"extends" field is not respected

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12
Forks
1
PR merge metrics
No merged PRs in 30d

Description

When ctsc is running custom tsconfig that extends from other tsconfig, it doesn't follow the extends field.

Below is an example to reproduce the problem.

**tsconfig.build.json**:
```typescript
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"test",
"dist",
"**/*spec.ts",
"scripts",
"www"
]
}
```

**tsconfig.json**
```typescript
{
"compilerOptions": {
"module": "commonjs",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./"
},
"exclude": [
"node_modules",
"dist",
"scripts",
"www"
],
"include": [
"src"
]
}
```

When the command `ctsc -p tsconfig.build.json` is ran, it complaints for `No include found in tsconfig /path/to/tsconfig.build.json`. This error is unexpected, because the "include" field could be read from the extended file "tsconfig.json" in the example.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.