From 05738a5c942191875238692f5f0b85287ec1a32c Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 10 May 2024 16:52:43 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/tsbuild.cli.ts | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 17e2a97..969de84 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tsbuild', - version: '2.1.73', + version: '2.1.74', description: 'TypeScript nightly to easily make use of latest features' } diff --git a/ts/tsbuild.cli.ts b/ts/tsbuild.cli.ts index 8c51b4d..d7b6f69 100644 --- a/ts/tsbuild.cli.ts +++ b/ts/tsbuild.cli.ts @@ -44,5 +44,17 @@ export const runCli = async () => { await tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg); }); + /** + * the custom command compiles any customDir to dist_customDir + */ + tsbuildCli.addCommand('interfaces').subscribe(async (argvArg) => { + const tsFolders = ['ts_interfaces'] + const compilationCommandObject: { [key: string]: string } = {}; + for (const tsFolder of tsFolders) { + compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`; + } + await tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg); + }); + tsbuildCli.startParse(); };