Skip to content

Commit 5758d6e

Browse files
committed
Type-check root files with tsc
1 parent 3a7e7e2 commit 5758d6e

File tree

13 files changed

+13
-7
lines changed

13 files changed

+13
-7
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ other packages can inline them in their own `dist/index.d.ts`.
264264
- `pnpm lint:tsc` - type-check every project with TypeScript
265265
- `pnpm [--filter <project-name|{folder/*}>] lint:tsc` - type-check specific
266266
projects
267+
- `pnpm lint:root:tsc` - type-check JS/TS files at the root of the monorepo
267268
- `pnpm lint:cypress:tsc` - type-check the `cypress` folder
268269
- `pnpm --filter @h5web/<lib|app> analyze` - analyze a package's bundle (run
269270
only after building the package)

apps/demo/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src"]
3+
"include": ["*", "src"]
44
}

apps/storybook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": [".storybook/**/*", "src"]
3+
"include": ["*", ".storybook/**/*", "src"]
44
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"lint:tsc": "pnpm -r --parallel lint:tsc",
3030
"lint:cypress:tsc": "tsc --project cypress/tsconfig.json",
3131
"lint:root:eslint": "eslint \"**/*.{js,cjs,ts,tsx}\" --max-warnings=0",
32+
"lint:root:tsc": "tsc",
3233
"test": "vitest",
3334
"support:setup": "poetry -C support/sample install && poetry -C support/h5grove install",
3435
"support:sample": "poetry -C support/sample run python support/sample/create_h5_sample.py",

packages/app/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
3+
"include": ["src"],
34
"exclude": ["**/*.test.ts"],
45
"compilerOptions": {
56
"rootDir": "src",

packages/app/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src"]
3+
"include": ["*", "src"]
44
}

packages/h5wasm/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
3+
"include": ["src"],
34
"compilerOptions": {
45
"rootDir": "src",
56
"outDir": "dist-ts",

packages/h5wasm/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src"]
3+
"include": ["*", "src"]
44
}

packages/lib/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
3+
"include": ["src"],
34
"exclude": ["**/*.test.ts"],
45
"compilerOptions": {
56
"rootDir": "src",

packages/lib/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["src"]
3+
"include": ["*", "src"]
44
}

0 commit comments

Comments
 (0)