vue-tsc
214,137,532
6,731
| Install | |
|---|---|
npm install vue-tsc |
|
| Latest Version: | 3.3.13 |
| License: | MIT |
| Last Updated: | Oct 20, 2026 |
| Links: | GitHub · npm |
Maintainer: johnsoncodehk
vue-tsc
A command-line type checking tool for Vue, based on a tsc wrapper, enabling the TypeScript compiler to understand .vue files.
Installation
npm install vue-tsc typescript --save-dev
Requires TypeScript 5.0.0 or higher.
Usage
Type Checking
vue-tsc --noEmit
Generate Declaration Files
vue-tsc --declaration --emitDeclarationOnly
Configuration in package.json
{
"scripts": {
"type-check": "vue-tsc --noEmit",
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
}
}
Supported File Types
vue-tsc automatically reads file types to process from vueCompilerOptions.extensions in tsconfig.json, defaulting to ['.vue'].
If vitePressExtensions or petiteVueExtensions are configured, those extensions will also be processed.
Differences from tsc
vue-tsc is a wrapper around tsc that:
- Reads
vueCompilerOptionsfromtsconfig.json - Creates a Vue language plugin to process
.vuefiles - Transforms
.vuefiles into TypeScript virtual code before passing them totsc
All tsc command-line arguments can be used directly.
Programmatic Usage
import { run } from 'vue-tsc';
// Use the default tsc path
run();
// Specify a custom tsc path
run('/path/to/typescript/lib/tsc.js');
Related Packages
@vue/language-core- Core module
License
MIT License
Version History
| Version | Released | License |
|---|---|---|
| 3.3.13 | MIT | |
| 3.3.12 | MIT | |
| 3.3.11 | MIT | |
| 3.3.10 | MIT | |
| 3.3.9 | MIT | |
| 3.3.8 | MIT | |
| 3.3.7 | MIT | |
| 3.3.6 | MIT | |
| 3.3.5 | MIT | |
| 3.3.4 | MIT | |
| 3.3.3 | MIT | |
| 3.3.2 | MIT | |
| 3.3.1 | MIT | |
| 3.3.0 | MIT | |
| 3.2.9 | MIT | |
| 3.2.8 | MIT | |
| 3.2.7 | MIT | |
| 3.2.6 | MIT | |
| 3.2.5 | MIT | |
| 3.2.4 | MIT | |
| 3.2.3 | MIT | |
| 3.2.2 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.8 | MIT | |
| 3.1.7 | MIT | |
| 3.1.6 | MIT | |
| 3.1.5 | MIT | |
| 3.1.4 | MIT | |
| 3.1.3 | MIT |
Showing the latest 30 of 329. See every release on npm
Pre-releases (49)
| Version | Released | License |
|---|---|---|
| 3.1.0-alpha.0 | MIT | |
| 3.0.7-alpha.1 | MIT | |
| 3.0.7-alpha.0 | MIT | |
| 3.0.0-beta.5 | MIT | |
| 3.0.0-beta.4 | MIT | |
| 3.0.0-beta.3 | MIT | |
| 3.0.0-beta.2 | MIT | |
| 3.0.0-beta.1 | MIT | |
| 3.0.0-alpha.10 | MIT | |
| 3.0.0-alpha.8 | MIT | |
| 3.0.0-alpha.6 | MIT | |
| 3.0.0-alpha.4 | MIT | |
| 3.0.0-alpha.2 | MIT | |
| 3.0.0-alpha.0 | MIT | |
| 2.0.26-alpha.2 | MIT | |
| 2.0.26-alpha.1 | MIT | |
| 2.0.26-alpha.0 | MIT | |
| 2.0.23-alpha.1 | MIT | |
| 2.0.23-alpha.0 | MIT | |
| 1.9.0-alpha.3 | MIT | |
| 1.9.0-alpha.2 | MIT | |
| 1.9.0-alpha.1 | MIT | |
| 1.9.0-alpha.0 | MIT | |
| 1.7.0-alpha.0 | MIT | |
| 1.2.2-alpha.2 | MIT | |
| 1.2.2-alpha.1 | MIT | |
| 1.2.2-alpha.0 | MIT | |
| 1.0.0-rc.5 | MIT | |
| 1.0.0-rc.4 | MIT | |
| 1.0.0-rc.3 | MIT |
Showing the latest 30 of 49. See every release on npm