Socket
Socket
Sign inDemoInstall

vue-tsc

Package Overview
Dependencies
22
Maintainers
1
Versions
293
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-tsc

Install: `npm i vue-tsc -D`


Version published
Weekly downloads
1.4M
increased by0.93%
Maintainers
1
Install size
5.39 MB
Created
Weekly downloads
 

Package description

What is vue-tsc?

The vue-tsc npm package is a TypeScript type checker for Vue.js applications. It is used to perform type checking on Vue single-file components (SFCs) and their associated TypeScript code. It works alongside Vite and Vue 3 to provide a development experience with type safety.

What are vue-tsc's main functionalities?

Type Checking for Vue SFCs

This command performs type checking on Vue single-file components without emitting any code. It is typically used in a build or CI pipeline to ensure type safety before deployment.

vue-tsc --noEmit

Type Checking with Code Emission

This command performs type checking and also emits the compiled JavaScript code to the specified directory. This can be used as part of a build process that requires the compiled output.

vue-tsc --outDir dist

Other packages similar to vue-tsc

Changelog

Source

2.0.7 (2024/3/20)

[!NOTE] Hybrid Mode is now disabled by default, you need to enable vue.server.hybridMode in settings to enable it explicitly.

Features

  • language-server: reintroducing full TS support and disable Hybrid Mode by default (#4119)
  • vscode: check outdated @vue/language-plugin-pug in doctor
  • vscode: significantly reduces the status bar space occupied

Bug Fixes

  • vscode: vueCompilerOptions no longer prompts for deprecated options
  • component-meta: defineSlots allows empty params (#4093) - thanks @Evertvdw
  • typescript-plugin: fault tolerance for named pipe servers json file (#4075) - thanks @Simon-He95
  • language-core: generate defineModel emits type on-demand (#4052) - thanks @so1ve
  • language-core: special treatment for number elements inside v-for (#3859) - thanks @so1ve
  • language-plugin-pug: semantic tokens mapping failed (#4070)

Other Changes

  • language-service update neovim lsp set up info (#4085) - thanks @CofCat456
  • lint: add tsl linter and auto fix workflow (#4100)
  • vscode: remove embedded language IDs (#4081) - thanks @remcohaszing

Readme

Source

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:

  • Type-Checking with --noEmit
  • Use released LSP module
  • Make typescript as peerDependencies
  • Cleaner dependencies (remove prettyhtml, prettier etc.) (with vscode-vue-languageservice version >= 0.26.4)
  • dts emit support
  • 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

FAQs

Last updated on 20 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc