effect-doctor 0.1.0

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.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ // Thin launcher: the real binary ships in a per-platform optionalDependency
3
+ // (biome/esbuild model). This shim resolves it and execs through.
4
+ const { spawnSync } = require("node:child_process")
5
+
6
+ const platformPackage = `effect-doctor-${process.platform}-${process.arch}`
7
+ const binaryName = process.platform === "win32" ? "effect-doctor.exe" : "effect-doctor"
8
+
9
+ let binaryPath
10
+ try {
11
+ binaryPath = require.resolve(`${platformPackage}/bin/${binaryName}`)
12
+ } catch {
13
+ console.error(`effect-doctor: no prebuilt binary for ${process.platform}-${process.arch}.`)
14
+ console.error("Build from source instead:")
15
+ console.error(" cargo install --git https://github.com/JGalbss/effect-doctor effect-doctor")
16
+ process.exit(1)
17
+ }
18
+
19
+ const result = spawnSync(binaryPath, process.argv.slice(2), { stdio: "inherit" })
20
+ if (result.error) {
21
+ console.error(`effect-doctor: failed to launch binary: ${result.error.message}`)
22
+ process.exit(1)
23
+ }
24
+ process.exit(result.status ?? 1)
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "effect-doctor",
3
+ "version": "0.1.0",
4
+ "description": "Health checks for Effect TS codebases \u2014 scan, score 0-100, and get the cleaner Effect rewrite for every finding. Rust-fast.",
5
+ "keywords": [
6
+ "effect",
7
+ "effect-ts",
8
+ "lint",
9
+ "linter",
10
+ "static-analysis",
11
+ "doctor"
12
+ ],
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/JGalbss/effect-doctor.git"
17
+ },
18
+ "homepage": "https://github.com/JGalbss/effect-doctor#readme",
19
+ "bin": {
20
+ "effect-doctor": "bin/effect-doctor.js"
21
+ },
22
+ "files": [
23
+ "bin"
24
+ ],
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "optionalDependencies": {
29
+ "effect-doctor-darwin-arm64": "0.1.0",
30
+ "effect-doctor-darwin-x64": "0.1.0",
31
+ "effect-doctor-linux-arm64": "0.1.0",
32
+ "effect-doctor-linux-x64": "0.1.0"
33
+ }
34
+ }