Socket
Socket
Sign inDemoInstall

vue-tsc

Package Overview
Dependencies
31
Maintainers
1
Versions
288
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 by1.48%
Maintainers
1
Install size
11.7 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

1.6.5 (2023/5/13), 1.7.3 (2023/5/13) - pre-release

  • chore: bump vue deps to 3.3 stable (#3167) - thanks @ferferga
  • fix(vue-tsc): avoid throw when composite is enabled (#2622)
  • perf(language-service): avoid request name casing from language client multiple times (#3158) - thanks @kalvenschraut
  • fix: avoid slot name report TS8013 in js component (#3121)

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/johnsoncodehk/volar/discussions/640#discussioncomment-1555479 for example repo.

Sponsors

FAQs

Last updated on 13 May 2023

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