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

support extends field in tsconfig #5

Merged
merged 2 commits into from
Jun 18, 2020
Merged

support extends field in tsconfig #5

merged 2 commits into from
Jun 18, 2020

Conversation

beenotung
Copy link
Contributor

@beenotung beenotung commented Apr 23, 2020

Resolved issue #4

Example

cli:

ctsc -p tsconfig.build.json

tsconfig.json:

{
  "compilerOptions": {
    "module": "commonjs",
    "moduleResolution": "node",
    "target": "es2015",
    "outDir": "dist"
  },
  "include": [
    "src/**/*.ts",
    "test/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

tsconfig.build.json:

{
  "extends": "./tsconfig.json",
  "include": [
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}

Before this PR, it will throw TypeError: Cannot read property 'outDir' of undefined

@spion spion merged commit 903dfd2 into hfour:master Jun 18, 2020
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

Successfully merging this pull request may close these issues.

2 participants