Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions scripts/validate-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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");

Expand Down
4 changes: 2 additions & 2 deletions version-bump.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);