Merge pull request #1197 from blink1073/fix-typings
Ship the declaration files
This commit is contained in:
+8
-3
@@ -52,9 +52,14 @@ gulp.task('tsc', function () {
|
|||||||
|
|
||||||
let tsProjectAddon = ts.createProject(`./src/addons/${addon}/tsconfig.json`);
|
let tsProjectAddon = ts.createProject(`./src/addons/${addon}/tsconfig.json`);
|
||||||
let tsResultAddon = tsProjectAddon.src().pipe(sourcemaps.init()).pipe(tsProjectAddon());
|
let tsResultAddon = tsProjectAddon.src().pipe(sourcemaps.init()).pipe(tsProjectAddon());
|
||||||
let tscAddon = tsResultAddon.js
|
let tscAddon = merge(
|
||||||
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''}))
|
tsResultAddon.js
|
||||||
.pipe(gulp.dest(`${outDir}/addons/${addon}`));
|
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''}))
|
||||||
|
.pipe(gulp.dest(`${outDir}/addons/${addon}`)),
|
||||||
|
tsResultAddon.dts
|
||||||
|
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: ''}))
|
||||||
|
.pipe(gulp.dest(`${outDir}/addons/${addon}`))
|
||||||
|
)
|
||||||
|
|
||||||
return tscAddon;
|
return tscAddon;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/attach/",
|
"outDir": "../../../lib/addons/attach/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/fit/",
|
"outDir": "../../../lib/addons/fit/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/fullscreen/",
|
"outDir": "../../../lib/addons/fullscreen/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/search/",
|
"outDir": "../../../lib/addons/search/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/terminado/",
|
"outDir": "../../../lib/addons/terminado/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/winptyCompat/",
|
"outDir": "../../../lib/addons/winptyCompat/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"outDir": "../../../lib/addons/zmodem/",
|
"outDir": "../../../lib/addons/zmodem/",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -5,7 +5,8 @@
|
|||||||
"rootDir": "src",
|
"rootDir": "src",
|
||||||
"outDir": "lib",
|
"outDir": "lib",
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true
|
"removeComments": true,
|
||||||
|
"declaration": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*"
|
"src/**/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user