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

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin