Socket
Socket
Sign inDemoInstall

@vue/tsconfig

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/tsconfig - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

tsconfig.lib.json

2

package.json
{
"name": "@vue/tsconfig",
"version": "0.4.0",
"version": "0.5.0",
"description": "A base TSConfig for working with Vue.js",

@@ -5,0 +5,0 @@ "main": "tsconfig.json",

@@ -62,2 +62,13 @@ # `@vue/tsconfig`

## Emitting Declaration Files
As most Vue projects are built with bundlers, the default Vue TSConfig does not emit declaration files. If you are building a library or a component library, you can enable declaration file emitting by also extending `@vue/tsconfig/tsconfig.lib.json` in your `tsconfig.json`:
```json
"extends": [
"@vue/tsconfig/tsconfig.dom.json",
"@vue/tsconfig/tsconfig.lib.json"
]
```
## Migrating from TypeScript < 5.0

@@ -64,0 +75,0 @@

{
"compilerOptions": {
// Most non-library projects don't need to emit declarations.
// So we add this option by default to make the config more friendly to most users.
"noEmit": true,
// When type-checking with solution-style tsconfigs, though with `noEmit: true`, there won't
// be any `.d.ts` files emitted, but tsc still writes a `.tsbuildinfo` file to the `outDir`
// for each project. If we don't explicitly set the `outDir`, it will be in the same folder
// as the `tsconfig.json` file, which would look messy.
// Setting it to `./dist/` isn't ideal either, because it would pollute the `dist` folder.
// So we set it to a hidden folder in `node_modules` to avoid polluting the project root.
"outDir": "./node_modules/.cache/vue-tsbuildinfo",
// As long as you are using a build tool, we recommend you to author and ship in ES modules.

@@ -4,0 +15,0 @@ // Even if you are targeting Node.js, because

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc