mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: avoid typing errors in TypeScript 2.1 and update gulp-typescript (#2456)
Related to #1998.
This commit is contained in:
committed by
Kara
parent
6cb65766d3
commit
bdc48a8371
+1
-1
@@ -13,7 +13,7 @@
|
||||
"sourceMap": true,
|
||||
"target": "es5",
|
||||
"typeRoots": [
|
||||
"../node_modules/@types/"
|
||||
"../node_modules/@types"
|
||||
],
|
||||
"types": [
|
||||
"jasmine"
|
||||
|
||||
+1
-1
@@ -76,7 +76,7 @@
|
||||
"gulp-shell": "^0.5.2",
|
||||
"gulp-sourcemaps": "^1.6.0",
|
||||
"gulp-transform": "^1.1.0",
|
||||
"gulp-typescript": "^2.13.6",
|
||||
"gulp-typescript": "^3.1.3",
|
||||
"hammerjs": "^2.0.8",
|
||||
"highlight.js": "^9.9.0",
|
||||
"jasmine-core": "^2.4.1",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"stripInternal": false,
|
||||
"baseUrl": "",
|
||||
"typeRoots": [
|
||||
"../../node_modules/@types"
|
||||
"../../node_modules/@types/!(node)"
|
||||
],
|
||||
"paths": {
|
||||
"@angular/material": [
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
"stripInternal": false,
|
||||
"baseUrl": "",
|
||||
"typeRoots": [
|
||||
"../../node_modules/@types",
|
||||
"../../node_modules"
|
||||
"../../node_modules/@types/!(node)"
|
||||
],
|
||||
"paths": {
|
||||
"@angular/material": [
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"inlineSources": true,
|
||||
"stripInternal": false,
|
||||
"typeRoots": [
|
||||
"../../node_modules/@types"
|
||||
"../../node_modules/@types/!(node)"
|
||||
]
|
||||
},
|
||||
"exclude": [
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"paths": {
|
||||
},
|
||||
"typeRoots": [
|
||||
"../../node_modules/@types"
|
||||
"../../node_modules/@types/!(node)"
|
||||
],
|
||||
"types": [
|
||||
"jasmine",
|
||||
|
||||
@@ -54,7 +54,7 @@ export function tsBuildTask(tsConfigPath: string, tsConfigName = 'tsconfig.json'
|
||||
|
||||
let pipe = tsProject.src()
|
||||
.pipe(gulpSourcemaps.init())
|
||||
.pipe(gulpTs(tsProject));
|
||||
.pipe(tsProject());
|
||||
let dts = pipe.dts.pipe(gulp.dest(dest));
|
||||
|
||||
return gulpMerge([
|
||||
|
||||
Reference in New Issue
Block a user