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
12 changes: 12 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Prepare Node.js environment
uses: actions/setup-node@v6
Expand All @@ -28,6 +30,16 @@ jobs:
if: ${{ steps.node-modules-cache.outputs.cache-hit != 'true' }}
run: npm ci

- name: Check React Compiler compatibility
run: |
CHANGED_FILES=$(git diff --name-only --diff-filter=ACMR origin/${{ github.base_ref }}...HEAD -- 'src/**/*.ts' 'src/**/*.tsx' 'src/**/*.js' 'src/**/*.jsx' | tr '\n' ' ')
if [ -n "$CHANGED_FILES" ]; then
echo "Checking React Compiler compatibility for: $CHANGED_FILES"
npx @doist/react-compiler-tracker --check-files $CHANGED_FILES
else
echo "No source files changed, skipping React Compiler check"
fi

- run: npm run lint
- run: npm run type-check
- run: npm test
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.14
22.22
30 changes: 30 additions & 0 deletions .react-compiler.rec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"recordVersion": 1,
"react-compiler-version": "1.0.0",
"files": {
"src/checkbox-field/checkbox-field.tsx": {
"CompileError": 1
},
"src/checkbox-field/use-fork-ref.ts": {
"CompileError": 1
},
"src/components/keyboard-shortcut/keyboard-shortcut.tsx": {
"CompileError": 1
},
"src/hooks/use-previous/use-previous.ts": {
"CompileError": 1
},
"src/menu/menu.tsx": {
"CompileError": 2
},
"src/tabs/tabs.tsx": {
"CompileError": 4
},
"src/tooltip/tooltip.tsx": {
"CompileError": 1
},
"src/utils/common-helpers.ts": {
"CompileError": 2
}
}
}
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
'./**/*.{js,jsx,ts,tsx,md,mdx,json,css,scss,less}': ['prettier --write'],
'./**/*.{js,jsx,ts,tsx}': ['npx eslint --format codeframe --fix'],
'src/**/*.{js,jsx,ts,tsx}': ['npx @doist/react-compiler-tracker --stage-record-file'],
}
Loading