Socket
Socket
Sign inDemoInstall

vue-tsc

Package Overview
Dependencies
19
Maintainers
1
Versions
290
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.44 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.16 (2024/5/1)

Bug Fixes

  • language-core: virtual document language ID is not updated when changing SFC style block lang
  • language-core: correct logic for defineSlots destructuring (#4326) - Thanks @zhiyuanzmj
  • language-core: ObjectDirective does not work with defineSlots (#4327)
  • language-service: emmet not working in postcss style block (https://github.com/volarjs/volar.js/issues/169)

Other Changes

  • Upgrade to Volar 2.2
  • language-core: export VueEmbeddedCode (#4265) - Thanks @zhiyuanzmj
  • typescript-plugin: expose FileRegistry to project.program (#3963) - Thanks @zcf0508
  • vscode: remove outdated formatters section (#4243) - Thanks @BBboy01

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 01 May 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