Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci-lint-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: libs/typescript/package.json

- name: Install Node dependencies
run: |
pnpm install --frozen-lockfile
pnpm -C libs/typescript install --frozen-lockfile
run: pnpm -C libs/typescript install --frozen-lockfile

- name: TypeScript typecheck
run: node ./scripts/typescript-typecheck.js
run: pnpm -C libs/typescript typecheck

- name: Prettier check
run: pnpm prettier --check "libs/typescript/**/*.{ts,tsx,js,jsx,json,md,yaml,yml}"
run: pnpm -C libs/typescript format:check
8 changes: 4 additions & 4 deletions .github/workflows/claude-auto-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:

TYPESCRIPT TOOLS:
- prettier: code formatter
- TypeScript: type checking via node ./scripts/typescript-typecheck.js
- TypeScript: type checking via pnpm -C libs/typescript typecheck
- pnpm: package manager

TASK:
Expand All @@ -269,18 +269,18 @@ jobs:
- Formatting: uv run black .
- Linting: uv run ruff check . --fix
For TypeScript lint failures:
- Formatting: pnpm prettier --write "**/*.{ts,tsx,js,jsx,json,md,yaml,yml}"
- Formatting: pnpm -C libs/typescript format
After auto-fixing, verify the fix passes:
- Python: uv run isort --check-only . && uv run black --check . && uv run ruff check .
- TypeScript: pnpm prettier --check "**/*.{ts,tsx,js,jsx,json,md,yaml,yml}"
- TypeScript: pnpm -C libs/typescript format:check

FIXING TEST FAILURES:
For Python test failures:
- Run the specific failing test: uv run python -m pytest libs/python/<package>/tests/ -v --tb=long
- The test environment uses CUA_TELEMETRY_ENABLED=false
- Tests use pytest-asyncio with asyncio_mode=auto
For TypeScript build/type failures:
- Check types: node ./scripts/typescript-typecheck.js
- Check types: pnpm -C libs/typescript typecheck
- Build: cd libs/typescript && pnpm install && pnpm build

IMPORTANT:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ repos:

- repo: local
hooks:
- id: tsc
- id: typescript-typecheck
name: TypeScript type check
entry: node ./scripts/typescript-typecheck.js
language: node
files: \.(ts|tsx)$
entry: pnpm -C libs/typescript typecheck
language: system
files: ^libs/typescript/.*\.(ts|tsx)$
pass_filenames: false

- repo: https://github.com/PyCQA/isort
Expand Down
3 changes: 3 additions & 0 deletions libs/typescript/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
**/dist/
**/coverage/
2 changes: 1 addition & 1 deletion libs/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test:core": "pnpm --filter @trycua/core test",
"test:computer": "pnpm --filter @trycua/computer test",
"test": "pnpm -r test",
"typecheck": "pnpm -r typecheck",
"typecheck": "pnpm build:core && pnpm -r typecheck",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
Expand Down
28 changes: 0 additions & 28 deletions package-lock.json

This file was deleted.

Loading