From a8157dff0e70d2141462dde9b5768b632d4b7f00 Mon Sep 17 00:00:00 2001 From: Harsh Tandiya Date: Mon, 9 Feb 2026 00:58:48 +0530 Subject: [PATCH 1/3] feat: add TypeScript type checking and skip library check - Introduced a new script for TypeScript type checking in package.json. - Updated tsconfig.json to skip library checks for improved build performance. --- frontend/package.json | 1 + frontend/tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index ad40e75..8a0803a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -8,6 +8,7 @@ "build": "vite build --base=/assets/forms_pro/frontend/ && yarn copy-html-entry", "preview": "vite preview", "lint": "biome check --write .", + "typecheck": "tsc --noEmit", "copy-html-entry": "cp ../forms_pro/public/frontend/index.html ../forms_pro/www/forms.html" }, "dependencies": { diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 2a3e1e4..d424370 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -20,6 +20,7 @@ "@/*": ["src/*"] } }, + "skipLibCheck": true, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "src/main.ts"], "references": [{ "path": "./tsconfig.node.json" }] } From f6f911887e3305bbb382e792c0c9e031b91b8fc4 Mon Sep 17 00:00:00 2001 From: Harsh Tandiya Date: Mon, 9 Feb 2026 01:01:06 +0530 Subject: [PATCH 2/3] feat: add TypeScript type checking workflow for frontend - Introduced a new GitHub Actions workflow for TypeScript type checking in the frontend application. - The workflow triggers on pushes and pull requests to the develop branch, ensuring type safety during development. - Configured steps for checking out the code, setting up Node.js, installing dependencies, and running type checks. --- .github/workflows/typecheck.yml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/typecheck.yml diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml new file mode 100644 index 0000000..611e334 --- /dev/null +++ b/.github/workflows/typecheck.yml @@ -0,0 +1,41 @@ +name: Frontend TypeScript + +on: + push: + branches: + - develop + paths: + - "apps/forms_pro/frontend/**" + - ".github/workflows/typecheck.yml" + pull_request: + paths: + - "apps/forms_pro/frontend/**" + - ".github/workflows/typecheck.yml" + +concurrency: + group: typecheck-forms_pro-${{ github.event.number || github.sha }} + cancel-in-progress: true + +jobs: + typecheck: + name: TypeScript + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: "24" + cache: "yarn" + cache-dependency-path: apps/forms_pro/frontend/yarn.lock + + - name: Install dependencies + working-directory: apps/forms_pro/frontend + run: yarn install --frozen-lockfile + + - name: Type check + working-directory: apps/forms_pro/frontend + run: yarn typecheck From 48a59a94ca4762053f1161beb1487adb847a456e Mon Sep 17 00:00:00 2001 From: Harsh Tandiya Date: Mon, 9 Feb 2026 01:05:56 +0530 Subject: [PATCH 3/3] chore: update typecheck workflow paths and working directories - Simplified paths in the GitHub Actions typecheck workflow to target the frontend directory directly. - Adjusted working directories for dependency installation and type checking to reflect the new structure. --- .github/workflows/typecheck.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/typecheck.yml b/.github/workflows/typecheck.yml index 611e334..0fd6ff1 100644 --- a/.github/workflows/typecheck.yml +++ b/.github/workflows/typecheck.yml @@ -5,11 +5,11 @@ on: branches: - develop paths: - - "apps/forms_pro/frontend/**" + - "frontend/**" - ".github/workflows/typecheck.yml" pull_request: paths: - - "apps/forms_pro/frontend/**" + - "frontend/**" - ".github/workflows/typecheck.yml" concurrency: @@ -30,12 +30,12 @@ jobs: with: node-version: "24" cache: "yarn" - cache-dependency-path: apps/forms_pro/frontend/yarn.lock + cache-dependency-path: frontend/yarn.lock - name: Install dependencies - working-directory: apps/forms_pro/frontend + working-directory: frontend run: yarn install --frozen-lockfile - name: Type check - working-directory: apps/forms_pro/frontend + working-directory: frontend run: yarn typecheck