{"name":"vue-tsc","version":"2.1.8","license":"MIT","_id":"vue-tsc@2.1.8","bin":{"vue-tsc":"./bin/vue-tsc.js"},"dist":{"shasum":"c09b6d47525a12c619edce5a48933788d451da91","tarball":"http://registry-npm.ywwl.com/vue-tsc/download/vue-tsc-2.1.8.tgz","fileCount":6,"integrity":"sha512-6+vjb7JLxKIzeD/1ktoUBZGAr+148FQoEFl8Lv5EpDJLO2PrUalhp7atMEuzEkLnoooM5bg3pJqjZI+oobxIaQ==","signatures":[{"sig":"MEQCIGZfnO0O+PP0PdRY7AjZ7HbREmwwVMNjgyiqbFOwpWTQAiBh6fZoFgdZdlhIladVtcxYHiFGLrtSsgi6G2xs6E1J5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4150,"size":2306,"noattachment":false,"key":"/vue-tsc/-/vue-tsc-2.1.8.tgz"},"gitHead":"25cccedc53e7361ed4e34296d6ecd43d7de2a095","_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"repository":{"url":"https://github.com/vuejs/language-tools.git","type":"git","directory":"packages/tsc"},"_npmVersion":"lerna/3.10.0/node@v20.14.0+arm64 (darwin)","directories":{},"sideEffects":false,"_nodeVersion":"20.14.0","dependencies":{"semver":"^7.5.4","@volar/typescript":"~2.4.8","@vue/language-core":"2.1.8"},"_hasShrinkwrap":false,"devDependencies":{"@types/node":"latest"},"peerDependencies":{"typescript":">=5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/vue-tsc_2.1.8_1729958382962_0.03301826444219902","host":"s3://npm-registry-packages"},"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":1729958383146,"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},{"name":"kazariex","email":"mimorimaboroshi@gmail.com"}],"_cnpm_publish_time":1729958383146,"dist-tags":{"latest":"3.3.14","v3.0":"3.0.11"}}