Skip to content

Commit

Permalink
fix: let vite handle resolving the config file (#11)
Browse files Browse the repository at this point in the history
fixes "`vite@3.1.3` breaks `cypress-vite`" #5

Co-authored-by: Mohammad Ataei <mammadataei@gmail.com>
  • Loading branch information
DrJume and mammadataei committed Oct 20, 2022
1 parent a1822a9 commit bbbadf9
Show file tree
Hide file tree
Showing 7 changed files with 402 additions and 674 deletions.
14 changes: 7 additions & 7 deletions example/package.json
Expand Up @@ -19,17 +19,17 @@
"devDependencies": {
"@ngneat/falso": "^6.1.0",
"@testing-library/cypress": "^8.0.3",
"@types/react": "^18.0.20",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react": "^1.3.2",
"@vitejs/plugin-react": "^2.1.0",
"autoprefixer": "^10.4.12",
"cypress": "^10.8.0",
"cypress-vite": "workspace:*",
"postcss": "^8.4.16",
"cypress": "^10.10.0",
"cypress-vite": "workspace:latest",
"postcss": "^8.4.18",
"start-server-and-test": "^1.14.0",
"tailwindcss": "^3.1.8",
"typescript": "^4.8.3",
"vite": "^3.1.3"
"typescript": "^4.8.4",
"vite": "^3.1.8"
}
}
5 changes: 3 additions & 2 deletions example/tsconfig.node.json
Expand Up @@ -2,7 +2,8 @@
"compilerOptions": {
"composite": true,
"module": "esnext",
"moduleResolution": "node"
"moduleResolution": "node",
"resolveJsonModule": true
},
"include": ["vite.config.ts"]
"include": ["vite.config.ts", "*.json"]
}
14 changes: 7 additions & 7 deletions package.json
Expand Up @@ -50,17 +50,17 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@types/debug": "^4.1.7",
"@types/node": "^18.7.18",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"cypress": "^10.8.0",
"eslint": "^8.23.1",
"@types/node": "^18.11.2",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"cypress": "^10.10.0",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "2.6.2",
"prettier": "^2.7.1",
"rollup": "2.78.1",
"typescript": "^4.8.3",
"typescript": "^4.8.4",
"unbuild": "^0.9.4",
"vite": "^3.1.3"
},
Expand Down

0 comments on commit bbbadf9

Please sign in to comment.