diff --git a/.gitignore b/.gitignore index 924c0f1..323e9c9 100644 --- a/.gitignore +++ b/.gitignore @@ -30,4 +30,6 @@ apps/server/dist/* #DEFAULT .env -data/ \ No newline at end of file +data/ + +node_modules/ \ No newline at end of file diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh deleted file mode 100755 index 4912ece..0000000 --- a/.husky/_/husky.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env sh -if [ -z "$husky_skip_init" ]; then - debug () { - if [ "$HUSKY_DEBUG" = "1" ]; then - echo "husky (debug) - $1" - fi - } - - readonly hook_name="$(basename -- "$0")" - debug "starting $hook_name..." - - if [ "$HUSKY" = "0" ]; then - debug "HUSKY env variable is set to 0, skipping hook" - exit 0 - fi - - if [ -f ~/.huskyrc ]; then - debug "sourcing ~/.huskyrc" - . ~/.huskyrc - fi - - readonly husky_skip_init=1 - export husky_skip_init - sh -e "$0" "$@" - exitcode="$?" - - if [ $exitcode != 0 ]; then - echo "husky - $hook_name hook exited with code $exitcode (error)" - fi - - if [ $exitcode = 127 ]; then - echo "husky - command not found in PATH=$PATH" - fi - - exit $exitcode -fi \ No newline at end of file diff --git a/.husky/pre-push b/.husky/pre-push index e4b9545..c219c7d 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - echo "🔍 Running pre-push validation for web app..." cd apps/web && pnpm validate \ No newline at end of file diff --git a/apps/web/messages/ar-SA.json b/apps/web/messages/ar-SA.json index 29adac2..1b48306 100644 --- a/apps/web/messages/ar-SA.json +++ b/apps/web/messages/ar-SA.json @@ -1528,4 +1528,4 @@ "nameRequired": "الاسم مطلوب", "required": "هذا الحقل مطلوب" } -} \ No newline at end of file +} diff --git a/apps/web/package.json b/apps/web/package.json index f1b7f34..0a33376 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -23,7 +23,6 @@ "format:check": "prettier . --check", "type-check": "npx tsc --noEmit", "validate": "pnpm format && pnpm lint:fix && pnpm type-check", - "prepare": "husky", "translations": "python3 scripts/run_translations.py all", "translations:check": "python3 scripts/run_translations.py check", "translations:sync": "python3 scripts/run_translations.py sync", @@ -89,7 +88,6 @@ "eslint-config-next": "15.3.4", "eslint-config-prettier": "9.1.0", "eslint-plugin-prettier": "5.5.1", - "husky": "^9.1.7", "prettier": "3.6.2", "prettier-plugin-sort-json": "4.1.1", "tailwindcss": "4.1.11", diff --git a/apps/web/pnpm-lock.yaml b/apps/web/pnpm-lock.yaml index 3d15169..b7dc18b 100644 --- a/apps/web/pnpm-lock.yaml +++ b/apps/web/pnpm-lock.yaml @@ -176,9 +176,6 @@ importers: eslint-plugin-prettier: specifier: 5.5.1 version: 5.5.1(eslint-config-prettier@9.1.0(eslint@9.30.0(jiti@2.4.2)))(eslint@9.30.0(jiti@2.4.2))(prettier@3.6.2) - husky: - specifier: ^9.1.7 - version: 9.1.7 prettier: specifier: 3.6.2 version: 3.6.2 @@ -2268,12 +2265,6 @@ packages: { integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== } engines: { node: ">= 0.4" } - husky@9.1.7: - resolution: - { integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA== } - engines: { node: ">=18" } - hasBin: true - ignore@5.3.2: resolution: { integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== } @@ -5303,8 +5294,6 @@ snapshots: dependencies: function-bind: 1.1.2 - husky@9.1.7: {} - ignore@5.3.2: {} ignore@7.0.5: {} diff --git a/package.json b/package.json new file mode 100644 index 0000000..d239c58 --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "palmr-monorepo", + "version": "3.1-beta", + "description": "Palmr monorepo with Husky configuration", + "private": true, + "packageManager": "pnpm@10.6.0", + "scripts": { + "prepare": "git config core.hooksPath .husky && husky" + }, + "devDependencies": { + "husky": "^9.1.7" + } +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..a177305 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + husky: + specifier: ^9.1.7 + version: 9.1.7 + +packages: + + husky@9.1.7: + resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + husky@9.1.7: {}