File tree Expand file tree Collapse file tree
src/built-in-plugins/project-analyse-pages/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "parser": "@typescript-eslint/parser",
3- "parserOptions": {
4- "project": "./tsconfig.json"
5- },
63 "env": {
74 "jest": true,
85 "browser": true
Original file line number Diff line number Diff line change 11{
22 "name" : " pri" ,
3- "version" : " 3.3.28-beta.19 " ,
3+ "version" : " 3.3.28-beta.20 " ,
44 "types" : " src/node/index.ts" ,
55 "main" : " built/node/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ pri.project.onAnalyseProject(files => {
9393 const componentFile = files . find ( file => {
9494 const relativePath = path . relative ( pri . projectRootPath , path . join ( file . dir , file . name ) ) ;
9595 return (
96- ( route . component === relativePath && ! file . isDir && [ '.tsx' , '.md' , '.mdx' ] . indexOf ( file . ext ) > - 1 )
97- || ( path . join ( route . component , 'index' ) === relativePath
98- && ! file . isDir
99- && [ '.tsx' , '.md' , '.mdx' ] . indexOf ( file . ext ) > - 1 )
96+ ( route . component === relativePath && ! file . isDir && [ '.tsx' , '.md' , '.mdx' ] . indexOf ( file . ext ) > - 1 ) ||
97+ ( path . join ( route . component , 'index' ) === relativePath &&
98+ ! file . isDir &&
99+ [ '.tsx' , '.md' , '.mdx' ] . indexOf ( file . ext ) > - 1 )
100100 ) ;
101101 } ) ;
102102
You can’t perform that action at this time.
0 commit comments