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
Maintainers
1
Install size
5.39 MB
Created

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.5 (2024/3/5)

Features

  • language-core: support v-bind shorthand (#3990) - thanks @so1ve
  • language-service: support inlay hints for v-bind shorthand (#3990) - thanks @so1ve
  • vscode: prompt to disable Svelte extension in Vue workspace to avoid conflicts

Fixes

  • typescript-plugin: fault tolerance for named pipe server data
  • language-core: avoid globalTypesHolder being specified from a node_modules file (#3990)
  • language-core: fault tolerance for plugin creation
  • language-plugin-pug: failed to load due to an invalid require path (#3930)
  • typescript-plugin: custom extensions do not work (#3977)
  • language-service: html custom data not working (#3975)

Other Changes

  • typescript-plugin add README (#3974) - thanks @WhyNotHugo
  • component-meta update demo (#3994) - thanks @zzfn

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 05 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