From fb971b419c392230d28551c66a44326154e7235c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umutcan=20=C3=96NER?= Date: Thu, 26 Jun 2025 15:14:18 +0300 Subject: [PATCH 1/3] chore: update biome configuration and add lint:fix scripts - Update Biome to v2.0.5 schema - Fix deprecated trailingComma property to trailingCommas - Add lint:fix and format:fix npm scripts - Apply Biome formatting to imports in scripts/index.ts - Remove trailing newline in tsconfig.build.json --- biome.json | 24 +++++------------------- package.json | 2 ++ scripts/index.ts | 2 +- tsconfig.build.json | 2 +- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/biome.json b/biome.json index b036bfe..3caa476 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,7 @@ { - "$schema": "https://biomejs.dev/schemas/1.5.0/schema.json", - "organizeImports": { - "enabled": true + "$schema": "https://biomejs.dev/schemas/2.0.5/schema.json", + "files": { + "ignoreUnknown": false }, "linter": { "enabled": true, @@ -26,32 +26,18 @@ "indentStyle": "space", "indentWidth": 2, "lineEnding": "lf", - "lineWidth": 100, - "attributePosition": "auto" + "lineWidth": 100 }, "javascript": { "formatter": { "jsxQuoteStyle": "double", "quoteProperties": "asNeeded", - "trailingComma": "es5", + "trailingCommas": "es5", "semicolons": "always", "arrowParentheses": "always", "bracketSpacing": true, "bracketSameLine": false, "quoteStyle": "single" } - }, - "files": { - "ignore": [ - "**/node_modules/**", - "**/dist/**", - "**/.next/**", - "**/out/**", - "**/coverage/**", - "**/.turbo/**", - "**/build/**", - "**/*.min.js", - "**/*.min.css" - ] } } diff --git a/package.json b/package.json index d1e31e3..2e5c2d5 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "scripts": { "analyze": "turbo run analyze", "lint": "turbo run lint", + "lint:fix": "biome check --write .", "typecheck": "turbo run typecheck", "test": "turbo run test", "build": "turbo run build", @@ -28,6 +29,7 @@ "dev": "turbo run dev", "clean": "turbo run clean", "format": "biome format --write .", + "format:fix": "biome format --write .", "check": "biome check .", "prepare": "husky install" }, diff --git a/scripts/index.ts b/scripts/index.ts index 56c11b9..c156f33 100644 --- a/scripts/index.ts +++ b/scripts/index.ts @@ -5,7 +5,7 @@ */ import { readFileSync } from 'node:fs'; -import { join, dirname } from 'node:path'; +import { dirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; // Get the directory of this script diff --git a/tsconfig.build.json b/tsconfig.build.json index 6efd98d..bd78d95 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -5,4 +5,4 @@ "composite": false, "tsBuildInfoFile": null } -} \ No newline at end of file +} From 4873e135acd56ccd1f20075fcfa1803db83b4810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umutcan=20=C3=96NER?= Date: Thu, 26 Jun 2025 15:25:54 +0300 Subject: [PATCH 2/3] feat: add test release feature documentation This commit adds documentation to test the complete release pipeline from feature branch through to production release. --- test-release-feature.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test-release-feature.md diff --git a/test-release-feature.md b/test-release-feature.md new file mode 100644 index 0000000..be88471 --- /dev/null +++ b/test-release-feature.md @@ -0,0 +1,16 @@ +# Test Release Feature + +This file is created to test the end-to-end release pipeline. + +## Test Scenarios Covered: +1. Feature branch creation and PR flow +2. Conventional commit validation +3. CI/CD pipeline execution +4. Release automation + +## Expected Outcomes: +- PR validation should enforce branch naming +- CI pipeline should run all checks +- Merge to main should trigger release +- Changelog should be auto-generated +- Version should be bumped appropriately \ No newline at end of file From 93fa8499a3bdd14dfadd88e9bcb73c5e786fcb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Umutcan=20=C3=96NER?= Date: Thu, 26 Jun 2025 15:26:20 +0300 Subject: [PATCH 3/3] feat(core): add formatMessage utility function - Added formatMessage function to format messages with ISO timestamp - This will be useful for consistent logging across the application --- packages/core/src/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 5810fa1..a2de591 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -17,4 +17,14 @@ export function validateInput(input: string): boolean { return input.trim().length > 0; } +/** + * Format a message with timestamp for logging + * @param message - The message to format + * @returns Formatted message with timestamp + */ +export function formatMessage(message: string): string { + const timestamp = new Date().toISOString(); + return `[${timestamp}] ${message}`; +} + export * from './types';