# gulp-tsconfig-update

> A gulp plugin to update `files` property in tsconfig.json by `gulp.src`.

Latest version **1.1.1** (published 2015-10-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-tsconfig-update
pnpm add gulp-tsconfig-update
yarn add gulp-tsconfig-update
bun add gulp-tsconfig-update
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-10-28 |
| First published | 2015-08-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | laco0416 |
| Maintainers | laco0416 |

## Links

- npm: https://www.npmjs.com/package/gulp-tsconfig-update
- Repository: https://github.com/laco0416/gulp-tsconfig-update
- Issues: https://github.com/laco0416/gulp-tsconfig-update/issues
- npm.io page: https://npm.io/package/gulp-tsconfig-update

## Dependencies (3)

- [through](https://npm.io/package/through.md) ^2.3.8
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.6
- [es6-promise](https://npm.io/package/es6-promise.md) ^3.0.2

## Recent versions

- 1.1.1 (latest) — 2015-10-28
- 1.0.8-2 (pre) — 2015-09-09
- 1.0.8-1 (@pre) — 2015-09-09
- 1.0.7 (beta) — 2015-09-09
- 1.1.0 — 2015-10-15
- 1.0.9 — 2015-09-19
- 1.0.8 — 2015-09-09
- 1.0.8-0 — 2015-09-09
- 1.0.6 — 2015-09-07
- 1.0.5 — 2015-08-31
- 1.0.4 — 2015-08-31
- 1.0.3 — 2015-08-31
- 1.0.2 — 2015-08-30
- 1.0.1 — 2015-08-30
- 1.0.0 — 2015-08-30

## README

# gulp-tsconfig-update

[![Build Status](https://travis-ci.org/laco0416/gulp-tsconfig-update.svg)](https://travis-ci.org/laco0416/gulp-tsconfig-update)

A gulp plugin to update `files` property in tsconfig.json by `gulp.src` glob.

## Install

```
npm install --save-dev gulp-tsconfig-update
```

## Usage

```
var gulp = require("gulp");
var tsConfig = require('gulp-tsconfig-update');

gulp.task('tsConfig', function() {
  return gulp.src("./src/**/*.ts")
      .pipe(tsConfig());
});
```

## Notes

* If `./tsconfig.json` exists, its `files` property is overwritten.

* If `./tsconfig.json` doesn't exist, this plugin will generate the file similar to that created by `tsc --init`.

* You can use user-defined default config.

```js
var gulp = require("gulp");
var tsConfig = require('gulp-tsconfig-update');

gulp.task('tsConfig', function() {
  return gulp.src("./src/**/*.ts")
      .pipe(tsConfig({
        defaultConfig: {
           compilerOptions: {
               module: "commonjs",
               target: "es5",
               noImplicitAny: true
           }
        }
      }));
});
```

---
_Source: https://npm.io/package/gulp-tsconfig-update · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
