mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
## Description Currently merge conflicts arise due to the compiled JS and PO translation files. This PR is a rework on how we handle extracting and compiling translations to streamline PRs and merging branches. ## Changes Made - Remove compiled translation files from being committed - Extract and compile translations only on build - Extract will still occur when commits land on main to sync and pull new translations with Crowdin
17 lines
405 B
Bash
Executable File
17 lines
405 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
|
|
MONOREPO_ROOT="$(readlink -f "$SCRIPT_DIR/../")"
|
|
|
|
echo "Copying pdf.js"
|
|
npm run copy:pdfjs --workspace apps/**
|
|
|
|
echo "Copying .well-known/ contents"
|
|
node "$MONOREPO_ROOT/scripts/copy-wellknown.cjs"
|
|
|
|
git add "$MONOREPO_ROOT/apps/web/public/"
|
|
git add "$MONOREPO_ROOT/apps/marketing/public/"
|
|
|
|
npx lint-staged
|