From a0b9f8d8f3bbd3356d178c032d54853b658d44dc Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 18 Mar 2022 14:31:48 +0100 Subject: [PATCH] fix(core): update --- package-lock.json | 1 + package.json | 1 + ts/tsbuild.classes.compiler.ts | 8 +++++++- ts/tsbuild.plugins.ts | 3 ++- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6c46174..e9c50ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,6 +11,7 @@ "dependencies": { "@pushrocks/early": "^3.0.6", "@pushrocks/smartcli": "^3.0.14", + "@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartfile": "^9.0.6", "@pushrocks/smartlog": "^2.0.44", "@pushrocks/smartpath": "^5.0.4", diff --git a/package.json b/package.json index 63ceb7f..57240f8 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "dependencies": { "@pushrocks/early": "^3.0.6", "@pushrocks/smartcli": "^3.0.14", + "@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartfile": "^9.0.6", "@pushrocks/smartlog": "^2.0.44", "@pushrocks/smartpath": "^5.0.4", diff --git a/ts/tsbuild.classes.compiler.ts b/ts/tsbuild.classes.compiler.ts index 2694aa2..45fc5bb 100644 --- a/ts/tsbuild.classes.compiler.ts +++ b/ts/tsbuild.classes.compiler.ts @@ -53,11 +53,17 @@ export const mergeCompilerOptions = ( /** * the internal main compiler function that compiles the files */ -export const compiler = ( +export const compiler = async ( fileNames: string[], options: plugins.typescript.CompilerOptions, argvArg?: any ): Promise => { + if (options.skipLibCheck) { + console.log('? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?') + console.log('You are skipping libcheck... Is that really wanted?'); + console.log('? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?') + await plugins.smartdelay.delayFor(5000); + } console.log(`Compiling ${fileNames.length} files...`); const done = plugins.smartpromise.defer(); const program = plugins.typescript.createProgram(fileNames, options); diff --git a/ts/tsbuild.plugins.ts b/ts/tsbuild.plugins.ts index c9efc8a..3569132 100644 --- a/ts/tsbuild.plugins.ts +++ b/ts/tsbuild.plugins.ts @@ -1,7 +1,8 @@ import * as smartcli from '@pushrocks/smartcli'; +import * as smartdelay from '@pushrocks/smartdelay'; import * as smartfile from '@pushrocks/smartfile'; import * as smartpath from '@pushrocks/smartpath'; import * as smartpromise from '@pushrocks/smartpromise'; import typescript from 'typescript'; -export { smartcli, smartfile, smartpath, smartpromise, typescript }; +export { smartcli, smartdelay, smartfile, smartpath, smartpromise, typescript };