Make TSC default

This commit is contained in:
Scott Gould 2024-09-19 23:56:59 -04:00
parent be07b20da9
commit 30b6851f24
No known key found for this signature in database

View file

@ -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"));
}
});