@kjn/vite-plugin-tsc-typecheck v1.0.3
@kjn/vite-plugin-tsc-typecheck
The repo holds the vite plugin for typechecking with typescript.
How to use
npm i @kjn/vite-plugin-tsc-typecheckimport { tscTypecheck } from "@kjn/vite-plugin-tsc-typecheck";
export default defineConfig({
plugins: [tscTypecheck()],
/**
* ...
* ...
* The rest of your config
*/
});Output you'll see in your terminal
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
🕵️♂️ [tsc-typecheck] Testing for type errors
✅ [tsc-typecheck] All good
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯Now when autobuilding using vite build --watch an additional typechecking step will be executed. You'll see if there are typescript type errors.
Now when building using vite build the additional typechecking step will be executed. You'll see if there are typescript type errors.
Release
This repo uses semantic-release to auto-release new versions. The semver version number is based on the conventional-commit messages.
- patches:
fix: $MSGwill increment the patch version - minor:
feat: $MSGwill increment the minor version - major:
feat: $MSG \n\n BREAKING CHANGEwill increment the major version
Pushing the changes to the main-branch will kick of deployment. The semantic-release bot will add a new commit directly to the repo with the new semver version number in package.json. Therefore after every push, you'd need to pull the repo again.