1. vue-tsc
Install: `npm i vue-tsc -D`
vue-tsc
Package: vue-tsc
Created by: vuejs
Last modified: Mon, 22 Apr 2024 01:45:42 GMT
Version: 2.0.14
License: MIT
Downloads: 5,336,072
Repository: https://github.com/vuejs/language-tools

Install

npm install vue-tsc
yarn add vue-tsc

vue-tsc

Install: npm i vue-tsc -D

Usage: vue-tsc --noEmit && vite build

Vue 3 command line Type-Checking tool base on IDE plugin Volar.

Roadmap:

  • [x] Type-Checking with --noEmit
  • [x] Use released LSP module
  • [x] Make typescript as peerDependencies
  • [x] Cleaner dependencies (remove prettyhtml, prettier etc.) (with vscode-vue-languageservice version >= 0.26.4)
  • [x] dts emit support
  • [x] Watch mode support

Usage

Type check:

vue-tsc --noEmit

Build dts:

vue-tsc --declaration --emitDeclarationOnly

Check out https://github.com/vuejs/language-tools/discussions/640#discussioncomment-1555479 for example repo.

Sponsors

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code