@svelte-check-rs/linux-x64 0.8.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +126 -0
- package/bin/svelte-check-rs +0 -0
- package/package.json +22 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 svelte-check-rs Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# svelte-check-rs
|
|
2
|
+
|
|
3
|
+
A high-performance, Rust-powered diagnostic engine designed as a drop-in replacement for `svelte-check`.
|
|
4
|
+
|
|
5
|
+
> **Note:** This tool only supports **Svelte 5+**. For Svelte 4 or earlier, use the official [svelte-check](https://github.com/sveltejs/language-tools/tree/master/packages/svelte-check).
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
- 🚀 **Fast**: 10-100x faster than `svelte-check` through Rust's zero-cost abstractions and parallel processing
|
|
10
|
+
- ✅ **Accurate**: Matches `svelte-check` diagnostics, including Svelte compiler errors via bun
|
|
11
|
+
- 🔄 **Compatible**: Drop-in CLI replacement, identical output formats
|
|
12
|
+
- 🔧 **Maintainable**: Clean separation of concerns, comprehensive test suite
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### npm (recommended)
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm install -D svelte-check-rs
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
The npm package uses platform-specific optional dependencies to provide the binary. If you install with `--no-optional`, re-enable optional dependencies or use the shell/PowerShell installers below.
|
|
23
|
+
|
|
24
|
+
Then add to your package.json scripts:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"scripts": {
|
|
29
|
+
"check": "svelte-check-rs"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or run directly with npx:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx svelte-check-rs
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### macOS / Linux
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/pheuter/svelte-check-rs/releases/latest/download/svelte-check-rs-installer.sh | sh
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Windows (PowerShell)
|
|
47
|
+
|
|
48
|
+
```powershell
|
|
49
|
+
irm https://github.com/pheuter/svelte-check-rs/releases/latest/download/svelte-check-rs-installer.ps1 | iex
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
# Check current directory
|
|
56
|
+
svelte-check-rs
|
|
57
|
+
|
|
58
|
+
# Check specific directory
|
|
59
|
+
svelte-check-rs --workspace ./my-project
|
|
60
|
+
|
|
61
|
+
# Watch mode
|
|
62
|
+
svelte-check-rs --watch
|
|
63
|
+
|
|
64
|
+
# Different output formats
|
|
65
|
+
svelte-check-rs --output json
|
|
66
|
+
svelte-check-rs --output machine
|
|
67
|
+
svelte-check-rs --output human-verbose
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### CLI Options
|
|
71
|
+
|
|
72
|
+
| Option | Description |
|
|
73
|
+
|--------|-------------|
|
|
74
|
+
| `--workspace <PATH>` | Working directory (default: `.`) |
|
|
75
|
+
| `--output <FORMAT>` | Output format: `human`, `human-verbose`, `json`, `machine` |
|
|
76
|
+
| `--tsconfig <PATH>` | Path to tsconfig.json |
|
|
77
|
+
| `--threshold <LEVEL>` | Minimum severity: `error`, `warning` |
|
|
78
|
+
| `--watch` | Watch mode |
|
|
79
|
+
| `--preserveWatchOutput` | Don't clear screen in watch mode |
|
|
80
|
+
| `--fail-on-warnings` | Exit with error on warnings |
|
|
81
|
+
| `--diagnostic-sources <LIST>` | Which diagnostics: `js`, `svelte`, `css` |
|
|
82
|
+
| `--ignore <PATTERNS>` | Glob patterns to ignore |
|
|
83
|
+
| `--no-cache` | Disable per-project cache + incremental builds (fresh run) |
|
|
84
|
+
| `--disable-sveltekit-cache` | Disable cached .svelte-kit mirror |
|
|
85
|
+
| `--skip-tsgo` | Skip TypeScript type-checking |
|
|
86
|
+
| `--skip-svelte-compiler` | Skip Svelte compiler diagnostics |
|
|
87
|
+
| `--tsgo-version` | Show installed tsgo version + path |
|
|
88
|
+
| `--tsgo-update[=<VER>]` | Update tsgo to latest or specific version |
|
|
89
|
+
| `--bun-version` | Show installed bun version + path |
|
|
90
|
+
| `--bun-update[=<VER>]` | Update bun to latest or specific version |
|
|
91
|
+
| `--debug-paths` | Show resolved binaries (tsgo, bun, svelte-kit) |
|
|
92
|
+
|
|
93
|
+
**Caching:** By default, svelte-check-rs writes transformed files and tsgo incremental build info to `node_modules/.cache/svelte-check-rs/`. Use `--no-cache` for a fully fresh run (useful in CI).
|
|
94
|
+
|
|
95
|
+
## Project Structure
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
crates/
|
|
99
|
+
├── svelte-parser/ # Lexer + parser + AST types
|
|
100
|
+
├── source-map/ # Position tracking and mapping
|
|
101
|
+
├── svelte-transformer/ # Svelte → TypeScript transformation
|
|
102
|
+
├── svelte-diagnostics/ # A11y, CSS, and component checks
|
|
103
|
+
├── tsgo-runner/ # tsgo process management
|
|
104
|
+
├── bun-runner/ # bun-managed Svelte compiler bridge
|
|
105
|
+
└── svelte-check-rs/ # CLI binary
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Development
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
# Build all crates
|
|
112
|
+
cargo build
|
|
113
|
+
|
|
114
|
+
# Run tests
|
|
115
|
+
cargo test
|
|
116
|
+
|
|
117
|
+
# Run clippy
|
|
118
|
+
cargo clippy --all-targets -- -D warnings
|
|
119
|
+
|
|
120
|
+
# Format code
|
|
121
|
+
cargo fmt
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
MIT License - see [LICENSE](LICENSE) for details.
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@svelte-check-rs/linux-x64",
|
|
3
|
+
"version": "0.8.0-beta.2",
|
|
4
|
+
"description": "svelte-check-rs platform binary",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/pheuter/svelte-check-rs"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://svelte-check-rs.vercel.app/",
|
|
11
|
+
"os": [
|
|
12
|
+
"linux"
|
|
13
|
+
],
|
|
14
|
+
"cpu": [
|
|
15
|
+
"x64"
|
|
16
|
+
],
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/**",
|
|
19
|
+
"README.md",
|
|
20
|
+
"LICENSE"
|
|
21
|
+
]
|
|
22
|
+
}
|