Add proper typings for a few more build script dependencies

For #276864
This commit is contained in:
Matt Bierner
2025-11-12 16:22:40 -08:00
parent 5d29ee938b
commit 42410acd73
18 changed files with 69 additions and 41 deletions

View File

@@ -18,8 +18,9 @@ import File from 'vinyl';
import * as task from './task';
import { Mangler } from './mangle/index';
import { RawSourceMap } from 'source-map';
import ts = require('typescript');
const watch = require('./watch');
import ts from 'typescript';
import watch from './watch';
import bom from 'gulp-bom';
// --- gulp-tsb: compile and transpile --------------------------------
@@ -66,7 +67,6 @@ export function createCompile(src: string, { build, emitError, transpileOnly, pr
}, err => reporter(err));
function pipeline(token?: util.ICancellationToken) {
const bom = require('gulp-bom') as typeof import('gulp-bom');
const tsFilter = util.filter(data => /\.ts$/.test(data.path));
const isUtf8Test = (f: File) => /(\/|\\)test(\/|\\).*utf8/.test(f.path);