diff --git a/scripts/validate-plugin.ts b/scripts/validate-plugin.ts index 63b1c5f..6d56627 100755 --- a/scripts/validate-plugin.ts +++ b/scripts/validate-plugin.ts @@ -32,26 +32,6 @@ try { errors++; } -// Run TypeScript type checking -console.log("\n๐Ÿ“ Type checking..."); -const typecheckResult = await $`bun run typecheck`.nothrow(); -if (typecheckResult.exitCode === 0) { - console.log("โœ“ Type checking passed"); -} else { - console.error("โœ— Type checking failed"); - errors++; -} - -// Run tests -console.log("\n๐Ÿงช Running tests..."); -const testResult = await $`bun test`.nothrow(); -if (testResult.exitCode === 0) { - console.log("โœ“ Tests passed"); -} else { - console.error("โœ— Tests failed"); - errors++; -} - // Run checks console.log("\n๐Ÿ”ง Checking code quality..."); const checkResult = await $`bun run check`.nothrow(); @@ -64,7 +44,7 @@ if (checkResult.exitCode === 0) { // Build the plugin console.log("\n๐Ÿ“ฆ Building plugin..."); -const buildResult = await $`bun run build`.nothrow(); +const buildResult = await $`bun run build.ts`.nothrow(); if (buildResult.exitCode === 0) { console.log("โœ“ Build successful"); diff --git a/version-bump.ts b/version-bump.ts index 80d06a6..a7591ec 100644 --- a/version-bump.ts +++ b/version-bump.ts @@ -9,11 +9,11 @@ if (!targetVersion) { const manifest = JSON.parse(readFileSync("manifest.json", "utf8")); const { minAppVersion } = manifest; manifest.version = targetVersion; -writeFileSync("manifest.json", JSON.stringify(manifest, null, 2)); +writeFileSync("manifest.json", `${JSON.stringify(manifest, null, 2)}\n`); // Update versions.json const versions = JSON.parse(readFileSync("versions.json", "utf8")); versions[targetVersion] = minAppVersion; -writeFileSync("versions.json", JSON.stringify(versions, null, 2)); +writeFileSync("versions.json", `${JSON.stringify(versions, null, 2)}\n`); console.log(`Updated to version ${targetVersion}`);