diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a86af09..4e0b6f7 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.75', + version: '2.1.76', description: 'TypeScript nightly to easily make use of latest features' } diff --git a/ts/tsbuild.cli.ts b/ts/tsbuild.cli.ts index d7b6f69..f27e1cb 100644 --- a/ts/tsbuild.cli.ts +++ b/ts/tsbuild.cli.ts @@ -36,7 +36,14 @@ export const runCli = async () => { * the custom command compiles any customDir to dist_customDir */ tsbuildCli.addCommand('tsfolders').subscribe(async (argvArg) => { - const tsFolders = await plugins.smartfile.fs.listFolders(paths.cwd, /^ts/) + const tsFolders = await plugins.smartfile.fs.listFolders(paths.cwd, /^ts/); + + // lets make sure interfaces are always transpiled first + const index = tsFolders.indexOf('ts_interfaces'); + if (index > -1) { + tsFolders.splice(index, 1); + tsFolders.unshift('ts_interfaces'); + } const compilationCommandObject: { [key: string]: string } = {}; for (const tsFolder of tsFolders) { compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`; @@ -48,7 +55,7 @@ export const runCli = async () => { * the custom command compiles any customDir to dist_customDir */ tsbuildCli.addCommand('interfaces').subscribe(async (argvArg) => { - const tsFolders = ['ts_interfaces'] + const tsFolders = ['ts_interfaces']; const compilationCommandObject: { [key: string]: string } = {}; for (const tsFolder of tsFolders) { compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;