fix(core): update

This commit is contained in:
Philipp Kunz 2024-05-14 01:20:49 +02:00
parent 6e90bdda36
commit 0064f63ddb
2 changed files with 10 additions and 3 deletions

View File

@ -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'
}

View File

@ -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}`;