mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Clean up some typings in build
- Adding ts-check in a few more js files - Switching to use `@types` for a few more packages - Remove some unused code
This commit is contained in:
@@ -100,11 +100,11 @@ export function createCompile(src: string, { build, emitError, transpileOnly, pr
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
export function transpileTask(src: string, out: string, esbuild: boolean): task.StreamTask {
|
||||
export function transpileTask(src: string, out: string, esbuild?: boolean): task.StreamTask {
|
||||
|
||||
const task = () => {
|
||||
|
||||
const transpile = createCompile(src, { build: false, emitError: true, transpileOnly: { esbuild }, preserveEnglish: false });
|
||||
const transpile = createCompile(src, { build: false, emitError: true, transpileOnly: { esbuild: !!esbuild }, preserveEnglish: false });
|
||||
const srcPipe = gulp.src(`${src}/**`, { base: `${src}` });
|
||||
|
||||
return srcPipe
|
||||
@@ -301,7 +301,7 @@ function generateApiProposalNames() {
|
||||
|
||||
const proposalName = match[1];
|
||||
|
||||
const contents = f.contents.toString('utf8');
|
||||
const contents = f.contents!.toString('utf8');
|
||||
const versionMatch = versionPattern.exec(contents);
|
||||
const version = versionMatch ? versionMatch[1] : undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user