build(catalog): re-enable catalog typechecking

This enables typechecking on the catalog so that we catch type build issues in CI next time. Type issues didn't break before since we run our code through esbuild, and it was disabled because of some weird 11ty issues that are fixed in this CL
This commit is contained in:
Elliott Marquez 2023-06-22 15:35:56 -07:00
parent 39af0251d5
commit 07668e6959
4 changed files with 22 additions and 4 deletions

3
.gitignore vendored
View File

@ -20,4 +20,5 @@ catalog/site/components/*.md
catalog/site/components/images
catalog/*.tsbuildinfo
catalog/stories/*/
!catalog/stories/components/
!catalog/stories/components/
!catalog/src/types/**/*.d.ts

View File

@ -22,7 +22,8 @@
"build:dev": {
"dependencies": [
"build:dev:eleventy",
"build:dev:ts"
"build:dev:ts",
"build:type-check"
]
},
"build:dev:eleventy": {
@ -66,12 +67,16 @@
"clean": "if-file-deleted",
"output": [
"tsconfig.tsbuildinfo"
],
"dependencies": [
"..:build"
]
},
"build:prod": {
"dependencies": [
"build:prod:eleventy",
"build:prod:ts"
"build:prod:ts",
"build:type-check"
]
},
"build:prod:eleventy": {

11
catalog/src/types/is-land.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
declare module '@11ty/is-land' {
export class Island extends HTMLElement {
forceFallback(): void;
}
}

View File

@ -12,7 +12,8 @@
"useDefineForClassFields": false,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"skipLibCheck": true
"skipLibCheck": true,
"types": []
},
"include": ["src/**/*", "stories/*", "stories/components"],
"exclude": []