wub / preact-cli-plugin-typescript

Adds TypeScript support to preact-cli :zap:
MIT License
49 stars 6 forks source link

Allow for custom tsconfig.json path #6

Open variable-content opened 7 years ago

variable-content commented 7 years ago

Currently the tsconfig must live at the project root. The plugin should allow this to be configured, e.g.:

preactCliTypeScript(config, {tsconfig: 'config/tsconfig.json'});

If you're happy with the approach I'm happy to submit a PR later in the week for this.