Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

No need to create tsconfig.json #45

Open
dotherightthing opened this issue Aug 28, 2019 · 1 comment
Open

No need to create tsconfig.json #45

dotherightthing opened this issue Aug 28, 2019 · 1 comment

Comments

@dotherightthing
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants