microsoft / TypeScript-Babel-Starter

A sample setup using Babel CLI to build TypeScript code, and using TypeScript for type-checking.
MIT License
2k stars 229 forks source link

No need to create tsconfig.json #45

Open dotherightthing opened 5 years ago

dotherightthing commented 5 years ago

Create your tsconfig.json

Then run

tsc --init --declaration --allowSyntheticDefaultImports --target esnext --outDir lib

This command also generates tsconfig.json. If the file already exists there is an error message:

error TS5054: A 'tsconfig.json' file is already defined at: '/Volumes/DanBackup/Websites/wpdtrt-plugin-boilerplate/tsconfig.json'.
peterblazejewicz commented 4 years ago

That's how tsc cli works under the hood I think, has no relation to bootstraping this project: https://github.com/microsoft/TypeScript/blob/39311da27bf4848594b56c8a43c559f149b0f63c/src/executeCommandLine/executeCommandLine.ts#L723-L740