This repository has been archived on 2026-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
Nico e2667f8e12 Initial nyx project — fork of hermes-frontend
Forked from hermes-frontend, stripped openclaw/bun specifics:
- Auth tokens: openclaw_session -> nyx_session
- Vite proxy: localhost:3003 -> localhost:8000 (assay)
- Prod WS: wss://assay.loop42.de/ws
- Workspace paths: removed openclaw-specific paths
- Added missing deps: @heroicons/vue, overlayscrollbars-vue
- Branding: title -> nyx

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 20:23:27 +02:00

78 lines
1.8 KiB
Markdown

# vue-tsc
<p>
<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>
<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>
</p>
A command-line type checking tool for Vue, based on a `tsc` wrapper, enabling the TypeScript compiler to understand `.vue` files.
## Installation
```bash
npm install vue-tsc typescript --save-dev
```
Requires TypeScript 5.0.0 or higher.
## Usage
### Type Checking
```bash
vue-tsc --noEmit
```
### Generate Declaration Files
```bash
vue-tsc --declaration --emitDeclarationOnly
```
### Configuration in package.json
```json
{
"scripts": {
"type-check": "vue-tsc --noEmit",
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
}
}
```
## Supported File Types
`vue-tsc` automatically reads file types to process from `vueCompilerOptions.extensions` in `tsconfig.json`, defaulting to `['.vue']`.
If `vitePressExtensions` or `petiteVueExtensions` are configured, those extensions will also be processed.
## Differences from tsc
`vue-tsc` is a wrapper around `tsc` that:
1. Reads `vueCompilerOptions` from `tsconfig.json`
2. Creates a Vue language plugin to process `.vue` files
3. Transforms `.vue` files into TypeScript virtual code before passing them to `tsc`
All `tsc` command-line arguments can be used directly.
## Programmatic Usage
```typescript
import { run } from 'vue-tsc';
// Use the default tsc path
run();
// Specify a custom tsc path
run('/path/to/typescript/lib/tsc.js');
```
## Related Packages
- [`@vue/language-core`](../language-core) - Core module
## License
[MIT](https://github.com/vuejs/language-tools/blob/master/LICENSE) License