Skip to content

Conversation

@SMotaal
Copy link
Contributor

@SMotaal SMotaal commented Sep 16, 2024

Partially resolves: #72

Renames build:types package script to the more appropriate lint:types.

@SMotaal SMotaal requested a review from a team as a code owner September 16, 2024 17:35
@SMotaal SMotaal merged commit 45d9a54 into main Sep 16, 2024
@SMotaal SMotaal deleted the smotaal/rename-types-package-script branch September 16, 2024 18:21
rekmarks added a commit that referenced this pull request Sep 17, 2024
Adds build-time type checks to Vite via `vite-plugin-checker`, which we
configure to run `tsc` as part of the Vite pipeline.

As part of this, the `lint:types` script introduced in #73 (f.k.a.
`build:types`, which was a misnomer) is removed. In essence, I first
attempted to establish a `lint:types` script common across all packages.
Any monorepo-wide implementation thereof turns out to be equivalent to
just running a full, declaration-only TypeScript build of the entire
monorepo (see [the TypeScript project references
documentation](https://www.typescriptlang.org/docs/handbook/project-references.html)
for details). This being the case, rather than using a one-off script
for `@ocap/extension`, I found a Vite plugin that allows us to check
types as part of the build process, as we do everywhere else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: Add manual-use build:types package script (rename current to lint:types)

3 participants