feat: bundle workspace tasks plugin

This commit is contained in:
Federico Jaramillo Martinez
2026-06-03 22:31:36 +02:00
parent fda6fb0eca
commit 08f69d09c0
52 changed files with 879 additions and 681 deletions
+5 -1
View File
@@ -40,7 +40,7 @@ async function buildDirectory(sourceDir, targetDir) {
}
if (!entry.isFile()) continue;
if (entry.name.endsWith(".d.ts")) continue;
if (entry.name.endsWith(".d.ts") || isTestSource(entry.name)) continue;
if (isPluginSource(entry.name)) {
await buildFile(sourcePath, targetPath.replace(/\.ts$/u, ".js"));
@@ -94,6 +94,10 @@ function isPluginSource(fileName) {
return fileName.endsWith(".ts") && !fileName.endsWith(".d.ts");
}
function isTestSource(fileName) {
return /\.(?:test|spec)\.ts$/u.test(fileName);
}
async function hasTypeScriptSource(javaScriptPath) {
const typeScriptPath = javaScriptPath.replace(/\.js$/u, ".ts");
try {