Skip to content

Commit

Permalink
Fix ts builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuvonen committed Jul 5, 2024
1 parent efcaafd commit 06e1810
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 83 deletions.
126 changes: 63 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:e2e": "start-server-and-test preview http://localhost:5173 'cypress run --e2e'",
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.ts --ignore-path .gitignore",
"lint": "eslint . --ext .vue,.ts --ignore-path .gitignore",
"format": "prettier --write src/",
"coverage": "vitest run --coverage"
},
Expand All @@ -26,14 +26,14 @@
"ics": "^3.7.6",
"luxon": "^3.4.4",
"pinia": "^2.1.7",
"remeda": "^2.2.1",
"remeda": "^2.3.0",
"sortablejs": "^1.15.2",
"uuid": "^10.0.0",
"vue": "3.4.31",
"vue-chartjs": "^5.3.1",
"vue-i18n": "^9.13.1",
"vue-router": "^4.4.0",
"vuetify": "3.6.10"
"vuetify": "3.6.11"
},
"devDependencies": {
"@pinia/testing": "^0.1.3",
Expand All @@ -49,22 +49,22 @@
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/test-utils": "^2.4.6",
"@vue/tsconfig": "^0.5.1",
"cypress": "^13.12.0",
"cypress": "^13.13.0",
"eslint": "^8.57.0",
"eslint-plugin-cypress": "^3.3.0",
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-vue": "^9.27.0",
"jsdom": "^24.1.0",
"npm-run-all2": "^6.2.0",
"npm-run-all2": "^6.2.2",
"prettier": "^3.3.2",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.77.6",
"start-server-and-test": "^2.0.4",
"typescript": "^5.5.2",
"vite": "^5.3.2",
"typescript": "^5.5.3",
"vite": "^5.3.3",
"vite-plugin-pwa": "^0.20.0",
"vite-plugin-vuetify": "^2.0.3",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.24"
"vue-tsc": "^2.0.26"
},
"engines": {
"node": ">=20.0.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {DOMWrapper} from '@vue/test-utils';

declare module '@vue/test-utils' {
export class VueWrapper {
interface VueWrapper {
findByTestId(testId: string): DOMWrapper<Element>;
}
}
4 changes: 2 additions & 2 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.json", "vitest.setup.ts"],
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
{
"path": "./tsconfig.vitest.json"
}
],
"compilerOptions": {
"module": "NodeNext"
}
]
}
2 changes: 2 additions & 0 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"compilerOptions": {
"composite": true,
"noEmit": true,
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"module": "ESNext",
"moduleResolution": "Bundler",
"types": ["node"]
}
}

Loading

0 comments on commit 06e1810

Please sign in to comment.