From 30b6851f24425e71c17c36df0ee734284f4d1929 Mon Sep 17 00:00:00 2001 From: Scott Gould Date: Thu, 19 Sep 2024 23:56:59 -0400 Subject: [PATCH] Make TSC default --- gulpfile.cjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.cjs b/gulpfile.cjs index 89d11f6..695602f 100644 --- a/gulpfile.cjs +++ b/gulpfile.cjs @@ -35,14 +35,14 @@ const swcOptions = { // Task to compile TypeScript files using SWC gulp.task("scripts", () => { - if (argv.ts) { - console.warn("[WARN] Using TSC compiler, will be slower than SWC"); - return gulp.src("src/**/*.ts").pipe(tsProject()).pipe(gulp.dest("dist")); - } else { + if (argv.swc) { return gulp .src("src/**/*.ts") .pipe(swc(swcOptions)) .pipe(gulp.dest("dist")); + } else { + console.warn("[WARN] Using TSC compiler, will be slower than SWC"); + return gulp.src("src/**/*.ts").pipe(tsProject()).pipe(gulp.dest("dist")); } });