Prettier format pending files

This commit is contained in:
Builder.io 2025-11-16 02:23:04 +00:00
parent fa9d8ed717
commit f26047f125

View file

@ -40,7 +40,7 @@ console.log("Step 2: Transpiling to JavaScript with ESM imports...");
try { try {
execSync( execSync(
`npx esbuild "${destApi}/**/*.ts" --platform=node --target=es2020 --format=esm --outdir="${destApi}" --allow-overwrite`, `npx esbuild "${destApi}/**/*.ts" --platform=node --target=es2020 --format=esm --outdir="${destApi}" --allow-overwrite`,
{ cwd: __dirname, stdio: "inherit" } { cwd: __dirname, stdio: "inherit" },
); );
console.log("✓ Transpiled to JavaScript"); console.log("✓ Transpiled to JavaScript");
} catch (error) { } catch (error) {
@ -68,7 +68,7 @@ function fixImportsInDir(dir) {
(match, importPath) => { (match, importPath) => {
if (importPath.endsWith(".js")) return match; if (importPath.endsWith(".js")) return match;
return `from "${importPath}.js"`; return `from "${importPath}.js"`;
} },
); );
fixedContent = fixedContent.replace( fixedContent = fixedContent.replace(
@ -76,7 +76,7 @@ function fixImportsInDir(dir) {
(match, importPath) => { (match, importPath) => {
if (importPath.endsWith(".js")) return match; if (importPath.endsWith(".js")) return match;
return `from '${importPath}.js'`; return `from '${importPath}.js'`;
} },
); );
if (fixedContent !== content) { if (fixedContent !== content) {