mirror of
https://github.com/material-components/material-web.git
synced 2026-01-09 07:21:09 +08:00
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:
parent
39af0251d5
commit
07668e6959
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||
@ -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
11
catalog/src/types/is-land.d.ts
vendored
Normal 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;
|
||||
}
|
||||
}
|
||||
@ -12,7 +12,8 @@
|
||||
"useDefineForClassFields": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"skipLibCheck": true
|
||||
"skipLibCheck": true,
|
||||
"types": []
|
||||
},
|
||||
"include": ["src/**/*", "stories/*", "stories/components"],
|
||||
"exclude": []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user