@vue/tsconfig
Advanced tools
Comparing version 0.4.0 to 0.5.0
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10493
6
85
101