{"name":"vue-tsc","version":"3.2.0","license":"MIT","_id":"vue-tsc@3.2.0","maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"homepage":"https://github.com/vuejs/language-tools#readme","bugs":{"url":"https://github.com/vuejs/language-tools/issues"},"bin":{"vue-tsc":"bin/vue-tsc.js"},"dist":{"shasum":"1db02f58480d85b56ef0a889a758027e910e43ca","tarball":"http://registry-npm.ywwl.com/vue-tsc/download/vue-tsc-3.2.0.tgz","fileCount":6,"integrity":"sha512-NFhcKKQZeTuG8/gc8XwFANx/lC0Dd3dCZ97TWh1a63PcD22KkFy4QLeT8JMtduaQT1NzySWmx3qXm16Hj1Xsxg==","signatures":[{"sig":"MEYCIQD89rsGsd8GbXstssZ2TFiPj/Z53eQc6u5Tg75eoaOT1wIhAO4Vorn+emKRW+3Wx0ZdgwGh6jAe8hf/C4nFAMthfYq3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5136,"size":2598,"noattachment":false,"key":"/vue-tsc/-/vue-tsc-3.2.0.tgz"},"types":"./index.d.ts","gitHead":"3138110d767d3d6110899bc46518b53c4b456271","_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"repository":{"url":"git+https://github.com/vuejs/language-tools.git","type":"git","directory":"packages/tsc"},"_npmVersion":"lerna/4.10.2/node@v24.12.0+x64 (linux)","description":"Vue 3 command line Type-Checking tool.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"@volar/typescript":"2.4.27","@vue/language-core":"3.2.0"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"^22.10.4"},"peerDependencies":{"typescript":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-tsc_3.2.0_1766239408663_0.1722327396321952","host":"s3://npm-registry-packages-npm-production"},"readme":"# vue-tsc\n\n<p>\n  <a href=\"https://www.npmjs.com/package/vue-tsc\"><img src=\"https://img.shields.io/npm/v/vue-tsc.svg?labelColor=18181B&color=1584FC\" alt=\"NPM version\"></a>\n  <a href=\"https://github.com/vuejs/language-tools/blob/master/LICENSE\"><img src=\"https://img.shields.io/github/license/vuejs/language-tools.svg?labelColor=18181B&color=1584FC\" alt=\"License\"></a>\n</p>\n\nA command-line type checking tool for Vue, based on a `tsc` wrapper, enabling the TypeScript compiler to understand `.vue` files.\n\n## Installation\n\n```bash\nnpm install vue-tsc typescript --save-dev\n```\n\nRequires TypeScript 5.0.0 or higher.\n\n## Usage\n\n### Type Checking\n\n```bash\nvue-tsc --noEmit\n```\n\n### Generate Declaration Files\n\n```bash\nvue-tsc --declaration --emitDeclarationOnly\n```\n\n### Configuration in package.json\n\n```json\n{\n  \"scripts\": {\n    \"type-check\": \"vue-tsc --noEmit\",\n    \"build:types\": \"vue-tsc --declaration --emitDeclarationOnly\"\n  }\n}\n```\n\n## Supported File Types\n\n`vue-tsc` automatically reads file types to process from `vueCompilerOptions.extensions` in `tsconfig.json`, defaulting to `['.vue']`.\n\nIf `vitePressExtensions` or `petiteVueExtensions` are configured, those extensions will also be processed.\n\n## Differences from tsc\n\n`vue-tsc` is a wrapper around `tsc` that:\n\n1. Reads `vueCompilerOptions` from `tsconfig.json`\n2. Creates a Vue language plugin to process `.vue` files\n3. Transforms `.vue` files into TypeScript virtual code before passing them to `tsc`\n\nAll `tsc` command-line arguments can be used directly.\n\n## Programmatic Usage\n\n```typescript\nimport { run } from 'vue-tsc';\n\n// Use the default tsc path\nrun();\n\n// Specify a custom tsc path\nrun('/path/to/typescript/lib/tsc.js');\n```\n\n## Related Packages\n\n- [`@vue/language-core`](../language-core) - Core module\n\n## License\n\n[MIT](https://github.com/vuejs/language-tools/blob/master/LICENSE) License\n","publish_time":1766239408818,"_cnpm_publish_time":1766239408818,"dist-tags":{"latest":"3.3.14","v3.0":"3.0.11"}}