Skip to content

Commit

Permalink
chore: skip lib check, rm vitest.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Jan 24, 2025
1 parent ef79e4b commit 889d4c1
Show file tree
Hide file tree
Showing 21 changed files with 43 additions and 318 deletions.
7 changes: 1 addition & 6 deletions apps/guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"description": "Imagine a guide... that explores the many possibilities for your discord.js bot",
"private": true,
"scripts": {
"test": "vitest run --config ../../vitest.config.ts",
"build:check": "tsc --noEmit",
"build:local": "pnpm run build:prod",
"build:prod": "next build",
Expand Down Expand Up @@ -66,8 +65,6 @@
"sharp": "^0.33.5"
},
"devDependencies": {
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@types/html-escaper": "^3.0.2",
"@types/node": "^18.19.68",
"@types/react": "^18.3.18",
Expand All @@ -76,7 +73,6 @@
"@unocss/postcss": "^0.60.4",
"@unocss/reset": "^0.60.4",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
Expand All @@ -90,8 +86,7 @@
"turbo": "^2.3.3",
"typescript": "~5.5.4",
"unocss": "^0.60.4",
"vercel": "^37.14.0",
"vitest": "^2.1.8"
"vercel": "^37.14.0"
},
"engines": {
"node": ">=18"
Expand Down
7 changes: 1 addition & 6 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"description": "Imagine a bot... the most popular way to build discord bots",
"private": true,
"scripts": {
"test": "vitest run --config ../../vitest.config.ts",
"build:copy_readme": "cpy \"../../packages/(discord.js|brokers|builders|collection|core|formatters|next|proxy|rest|util|voice|ws)/README.md\" \"src/assets/readme\" --rename='home-{{basename}}'",
"build:check": "tsc --noEmit",
"build:local": "cross-env NEXT_PUBLIC_LOCAL_DEV=true pnpm run build:prod",
Expand Down Expand Up @@ -73,13 +72,10 @@
"devDependencies": {
"@shikijs/rehype": "^1.24.4",
"@tailwindcss/typography": "^0.5.15",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.17.10",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"autoprefixer": "^10.4.20",
"babel-plugin-react-compiler": "0.0.0-experimental-592953e-20240517",
"cpy-cli": "^5.0.0",
Expand All @@ -97,8 +93,7 @@
"tailwindcss": "^3.4.17",
"turbo": "^2.3.3",
"typescript": "~5.5.4",
"vercel": "^37.14.0",
"vitest": "^2.1.8"
"vercel": "^37.14.0"
},
"engines": {
"node": ">=20"
Expand Down
5 changes: 3 additions & 2 deletions packages/actions/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions packages/brokers/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"lib": ["ESNext", "DOM"]
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion packages/builders/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"emitDecoratorMetadata": true,
"exactOptionalPropertyTypes": false
},
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin", "__tests__", "../../vitest.d.ts"],
"include": ["src/**/*.ts", "src/**/*.js", "src/**/*.cjs", "src/**/*.mjs", "bin"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/builders/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/collection/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/core/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
4 changes: 1 addition & 3 deletions packages/create-discord-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@
"@types/node": "^20.17.10",
"@types/prompts": "^2.4.9",
"@types/validate-npm-package-name": "^4.0.2",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
"eslint-config-neon": "^0.1.62",
"eslint-formatter-pretty": "^6.0.1",
"prettier": "^3.4.2",
"terser": "^5.37.0",
"tsup": "^8.3.5",
"typescript": "~5.5.4",
"vitest": "^2.1.8"
"typescript": "~5.5.4"
},
"engines": {
"node": ">=20"
Expand Down
5 changes: 3 additions & 2 deletions packages/formatters/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/next/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/proxy/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/rest/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
4 changes: 1 addition & 3 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"devDependencies": {
"@turbo/gen": "^2.3.3",
"@types/node": "^20.17.10",
"@vitest/coverage-v8": "^2.1.8",
"cross-env": "^7.0.3",
"env-cmd": "^10.1.0",
"eslint": "^8.57.1",
Expand All @@ -84,8 +83,7 @@
"prettier": "^3.4.2",
"tsup": "^8.3.5",
"turbo": "^2.3.3",
"typescript": "~5.5.4",
"vitest": "^2.1.8"
"typescript": "~5.5.4"
},
"engines": {
"node": ">=20"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
6 changes: 1 addition & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"version": "0.1.0",
"description": "",
"scripts": {
"test": "vitest run --config ../../vitest.config.ts",
"build": "tsc --noEmit && vite build",
"lint": "prettier --check . && cross-env TIMING=1 eslint --format=pretty src",
"format": "prettier --write . && cross-env TIMING=1 eslint --fix --format=pretty src",
Expand Down Expand Up @@ -67,14 +66,12 @@
"@storybook/blocks": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/testing-library": "^0.2.2",
"@types/node": "^20.17.10",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@unocss/eslint-plugin": "^0.60.4",
"@unocss/reset": "^0.60.4",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"chromatic": "^11.20.2",
"cross-env": "^7.0.3",
"eslint": "^8.57.1",
Expand All @@ -87,8 +84,7 @@
"typescript": "~5.5.4",
"unocss": "^0.60.4",
"vite": "^5.4.11",
"vite-plugin-dts": "^3.9.1",
"vitest": "^2.1.8"
"vite-plugin-dts": "^3.9.1"
},
"engines": {
"node": ">=20"
Expand Down
5 changes: 3 additions & 2 deletions packages/util/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
4 changes: 2 additions & 2 deletions packages/voice/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"lib": ["ESNext", "DOM"]
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
5 changes: 3 additions & 2 deletions packages/ws/tsconfig.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"skipLibCheck": true
},
"include": ["__tests__/**/*.ts", "../../vitest.d.ts"],
"include": ["__tests__/**/*.ts"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 889d4c1

Please sign in to comment.