mirror of https://github.com/grpc/grpc-node.git
Addressing comments.
This commit is contained in:
parent
5680ac7d33
commit
c733b451db
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const _gulp = require('gulp');
|
const _gulp = require('gulp');
|
||||||
const help = require('gulp-help');
|
const help = require('gulp-help');
|
||||||
|
|
||||||
|
@ -31,7 +33,7 @@ const files = !util.env.file ? [] :
|
||||||
Array.isArray(util.env.file) ? util.env.file : [util.env.file];
|
Array.isArray(util.env.file) ? util.env.file : [util.env.file];
|
||||||
|
|
||||||
// If --dev is passed, override certain ts config options
|
// If --dev is passed, override certain ts config options
|
||||||
var tsDevOptions = {};
|
let tsDevOptions = {};
|
||||||
if (util.env.dev) {
|
if (util.env.dev) {
|
||||||
tsDevOptions = {
|
tsDevOptions = {
|
||||||
allowUnreachableCode: true,
|
allowUnreachableCode: true,
|
||||||
|
@ -62,8 +64,8 @@ function makeCompileFn(globs) {
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
.pipe(tsProject)
|
.pipe(tsProject)
|
||||||
.on('error', onError);
|
.on('error', onError);
|
||||||
const dts = data.dts
|
const dts = data.dts;
|
||||||
const js = data.js
|
const js = data.js;
|
||||||
const jsmap = js.pipe(sourcemaps.write('.', {
|
const jsmap = js.pipe(sourcemaps.write('.', {
|
||||||
includeContent: false,
|
includeContent: false,
|
||||||
sourceRoot: '..'
|
sourceRoot: '..'
|
||||||
|
|
Loading…
Reference in New Issue