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

"extends" field is not respected #4

Open
beenotung opened this issue Mar 1, 2020 · 0 comments
Open

"extends" field is not respected #4

beenotung opened this issue Mar 1, 2020 · 0 comments

Comments

@beenotung
Copy link
Contributor

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:

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

tsconfig.json

{
  "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.

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