Skip to content

Commit

Permalink
chore: downgrade typescript version to make it possible to check types
Browse files Browse the repository at this point in the history
  • Loading branch information
niusia-ua committed Oct 22, 2024
1 parent 3890372 commit c3cc837
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 14 deletions.
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@ dist/
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

*.tsbuildinfo
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Here is a recommended setup:
"*.ts": "${capture}.test.ts",
"*.rs": "${capture}.test.rs",
// Hide all TypeScript configs under the main one.
"tsconfig.json": "tsconfig.*.json, *.d.ts",
"tsconfig.json": "tsconfig.*.json, *.d.ts, *.tsbuildinfo",
// Hide lock files under the main manifests.
"package.json": "package-lock.json",
"Cargo.toml": "Cargo.lock, rustfmt.toml",
Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "npm run check-types && vite build",
"check-types": "vue-tsc --noEmit -p tsconfig.app.json",
"fmt": "prettier --check ./vite.config.ts src/",
"lint": "eslint --ext .vue,.ts ./vite.config.ts src/",
"test": "vitest --run"
Expand Down Expand Up @@ -41,7 +42,7 @@
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.3",
"typescript": "^5.5.4",
"vite": "^5.3.1",
"vitest": "^2.1.3",
"vue-tsc": "^2.0.22"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": ["@vue/tsconfig/tsconfig.dom.json", "@tsconfig/strictest/tsconfig.json"],
"include": ["env.d.ts", "src/**/*.ts", "src/**/*.vue"],
"exclude": ["src/**/*.test.ts"],
"compilerOptions": {
"composite": true,
"baseUrl": ".",
Expand Down

0 comments on commit c3cc837

Please sign in to comment.