Merged in chore/check-types-before-build (pull request #3326)

chore: check types before build

* chore: check types before build

* remove unused package.json scripts

* merge


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2026-01-07 07:06:36 +00:00
parent 3d62c16899
commit 028c77c923
18 changed files with 37 additions and 36 deletions

View File

@@ -1,6 +1,5 @@
import { cva } from 'class-variance-authority'
import { deepmerge } from 'deepmerge-ts'
import styles from './button.module.css'

View File

@@ -217,8 +217,6 @@
"test": "vitest run --passWithNoTests",
"test:s": "vitest --project=storybook",
"test:watch": "vitest",
"prepack": "yarn run build",
"prepare": "husky && yarn run build",
"check-types": "tsgo --noEmit",
"test:browser": "vitest --config=vitest.browser.config.ts",
"include:shared": "jiti ../../scripts/copyFiles.ts ../../shared public/_static/shared"

View File

@@ -2,7 +2,7 @@
"extends": ["//"],
"tasks": {
"build": {
"dependsOn": ["include:shared"],
"dependsOn": ["include:shared", "check-types"],
"outputs": ["dist/**"]
},
"dev": {

View File

@@ -24,8 +24,9 @@ export interface TableBlock extends z.output<typeof tableSchema> {}
export type TableData = TableBlock["table"]
export interface TextCols extends z.output<typeof textColsSchema> {}
export interface UspGrid extends z.output<typeof uspGridSchema> {}
interface GetHotelListing
extends z.output<typeof contentPageHotelListingSchema> {}
interface GetHotelListing extends z.output<
typeof contentPageHotelListingSchema
> {}
export type HotelListing = GetHotelListing["hotel_listing"]
export interface CarouselCards extends z.output<typeof carouselCardsSchema> {}
export interface CardGallery extends z.output<typeof cardGallerySchema> {}

View File

@@ -6,14 +6,17 @@ import type {
collectionPageSchema,
} from "../routers/contentstack/collectionPage/output"
export interface GetCollectionPageRefsSchema
extends z.input<typeof collectionPageRefsSchema> {}
export interface GetCollectionPageRefsSchema extends z.input<
typeof collectionPageRefsSchema
> {}
export interface CollectionPageRefs
extends z.output<typeof collectionPageRefsSchema> {}
export interface CollectionPageRefs extends z.output<
typeof collectionPageRefsSchema
> {}
export interface GetCollectionPageSchema
extends z.input<typeof collectionPageSchema> {}
export interface GetCollectionPageSchema extends z.input<
typeof collectionPageSchema
> {}
export interface CollectionPage extends z.output<typeof collectionPageSchema> {}