improve typecheck setup
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: lint
|
- name: lint
|
||||||
run: pnpm run lint
|
run: pnpm run lint
|
||||||
- name: typecheck
|
- name: typecheck
|
||||||
run: pnpm --recursive run typecheck
|
run: pnpm run typecheck
|
||||||
name: ${{ matrix.command.name }}
|
name: ${{ matrix.command.name }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"lint": "eslint --ext js,ts,tsx .",
|
"lint": "eslint --ext js,ts,tsx .",
|
||||||
"lint-fix": "pnpm lint -- --fix",
|
"lint-fix": "pnpm lint -- --fix",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
"typecheck": "tsc -b",
|
||||||
"build": "pnpm -r run build",
|
"build": "pnpm -r run build",
|
||||||
"start": "pnpm -C packages/website run start",
|
"start": "pnpm -C packages/website run start",
|
||||||
"release": "pnpm -r run build && changeset publish"
|
"release": "pnpm -r run build && changeset publish"
|
||||||
|
|||||||
3
packages/helpers/tsconfig.json
Normal file
3
packages/helpers/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "@itsmapleleaf/configs/tsconfig.base"
|
||||||
|
}
|
||||||
@@ -40,8 +40,7 @@
|
|||||||
"build-watch": "pnpm build -- --watch",
|
"build-watch": "pnpm build -- --watch",
|
||||||
"test": "vitest --coverage --no-watch",
|
"test": "vitest --coverage --no-watch",
|
||||||
"test-dev": "vitest",
|
"test-dev": "vitest",
|
||||||
"test-manual": "nodemon --exec tsx --ext ts,tsx ./scripts/discordjs-manual-test.tsx",
|
"test-manual": "nodemon --exec tsx --ext ts,tsx ./scripts/discordjs-manual-test.tsx"
|
||||||
"typecheck": "tsc --noEmit"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "*",
|
"@types/node": "*",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "@itsmapleleaf/configs/tsconfig.base",
|
||||||
"include": ["**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs"]
|
"exclude": ["node_modules", "dist"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
"dev:typedoc": "typedoc --watch",
|
"dev:typedoc": "typedoc --watch",
|
||||||
"dev:astro": "astro dev",
|
"dev:astro": "astro dev",
|
||||||
"start": "astro preview",
|
"start": "astro preview",
|
||||||
"build": "typedoc && astro build",
|
"build": "typedoc && astro build"
|
||||||
"typecheck": "tsc --noEmit && tsc --project cypress/tsconfig.json --noEmit"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/prefetch": "^0.2.0",
|
"@astrojs/prefetch": "^0.2.0",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"extends": "../../tsconfig.base.json",
|
"extends": "@itsmapleleaf/configs/tsconfig.base",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"jsxImportSource": "react",
|
"jsxImportSource": "react",
|
||||||
@@ -8,15 +8,5 @@
|
|||||||
"~/*": ["./src/*"]
|
"~/*": ["./src/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.mjs", "**/*.astro"],
|
"exclude": ["node_modules", "dist", "public/api"]
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**",
|
|
||||||
"**/coverage/**",
|
|
||||||
"**/build/**",
|
|
||||||
"**/dist/**",
|
|
||||||
"**/.cache/**",
|
|
||||||
"**/api/_build/**",
|
|
||||||
"**/public/**",
|
|
||||||
"app"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "@itsmapleleaf/configs/tsconfig.base",
|
|
||||||
"compilerOptions": {
|
|
||||||
"noImplicitOverride": true
|
|
||||||
},
|
|
||||||
"include": [
|
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx",
|
|
||||||
"**/*.cjs",
|
|
||||||
"**/*.mjs",
|
|
||||||
"**/*.astro",
|
|
||||||
".eslintrc.cjs"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**",
|
|
||||||
"**/coverage/**",
|
|
||||||
"**/build/**",
|
|
||||||
"**/dist/**",
|
|
||||||
"**/.cache/**",
|
|
||||||
"**/api/_build/**",
|
|
||||||
"**/public/**",
|
|
||||||
"**/cypress/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
8
tsconfig.json
Normal file
8
tsconfig.json
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"files": [],
|
||||||
|
"references": [
|
||||||
|
{ "path": "packages/reacord" },
|
||||||
|
{ "path": "packages/website" },
|
||||||
|
{ "path": "packages/helpers" }
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user