From 75aeefb9fe3b9aac2ac700c710fd89e0cfdae6dc Mon Sep 17 00:00:00 2001 From: Faisal Nugroho Date: Thu, 28 May 2026 11:39:21 +0800 Subject: [PATCH] feat: add root-level validation workflow scripts Add centralized validation commands for contributors: - lint: Run ESLint across the monorepo - lint:fix: Auto-fix lint issues - typecheck: Run TypeScript type checking - test: Run test suite - validate: Run all checks (lint + typecheck + test) Replaces the placeholder test script with working validation and provides a consistent developer workflow for contributors. Closes #2646 --- package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 40046cdbde..22324b2845 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", + "test": "pnpm f:ock test", "build": "pnpm -r run build", "clean:node_modules": "rm -rf node_modules packages/*/node_modules", "f:ock": "pnpm --filter @coinbase/onchainkit", @@ -13,7 +13,11 @@ "f:minikit-example": "pnpm --filter minikit-example", "changeset": "changeset", "release:check": "changeset status --verbose --since=origin/main", - "release:publish": "changeset publish" + "release:publish": "changeset publish", + "lint": "pnpm f:ock lint", + "lint:fix": "pnpm f:ock lint:fix", + "typecheck": "pnpm f:ock typecheck", + "validate": "pnpm lint && pnpm typecheck && pnpm test" }, "keywords": [], "author": "",