Questions tagged [tsconfig]

tsconfig.json files are configuration for TypeScript projects. They contain the command line options to tell TSC (the TypeScript transpiler) how to build the JavaScript output.

tsconfig.json files are configuration for TypeScript projects. They contain the command line options to tell TSC (the TypeScript transpiler) how to build the JavaScript output.

Options can also include directives for the TypeScript editor, such as whether to compile on save and (in some editors) code formatting options.

The schema can be found at http://json.schemastore.org/tsconfig

For more details, see What is a tsconfig.json?.

The term "TSconfig" can also (much more rarely) refer to TypoScript used in the proprietary TYPO3 CMS.

1216 questions
19
votes
3 answers

Typescript transpile es6 .js dependency to es5

I have a hypothetical Typescript file in my project (simplified example). Utils.ts: import * as HelperFromNodeModules from 'helper-from-node-modules'; class Utils { static foo() { return HelperFromNodeModules.parse(...); } } Importing…
19
votes
1 answer

Typescript tsconfig to exclude some source files

I am trying to get Typescript to exclude certain files when compiling. However it doesn't seem to want to exclude them. Here is my tsconfig.json { "ref": "master", "path": "typings", "compilerOptions": { "module": "amd", "target":…
Nicholas Mordecai
  • 859
  • 2
  • 12
  • 33
19
votes
5 answers

integrating aws-sdk to angular2 gives "Cannot find module 'stream'"

I tried these error TS2304: Cannot find name 'Buffer', https://github.com/aws/aws-sdk-js/issues/994 and Using aws-sdk with angular2 My typings and @types/node seems to have been installed properly. Here are error details: ERROR in …
19
votes
2 answers

TypeScript 2.1+ tsconfig extends

Currently, I am trying the new extends feature in the tsconfig.json that allows developers to have a base tsconfig.json, that other modules can extend / modify. It is working, although not as expected. Somehow, the only way to get this working is to…
Dennis Jaamann
  • 3,547
  • 2
  • 23
  • 42
18
votes
7 answers

How to remove .vue extension from imports when using TypeScript in Vue.JS?

I created a project with vue-cli3 and included TypeScript My src/app.vue: