@fire-spark/cli 0.0.0-stage → 0.13.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.
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import { register } from "tsx/esm/api";
3
+
4
+ // Piping into `head` closes stdout early; that is not an error.
5
+ process.stdout.on("error", error => {
6
+ if (error.code === "EPIPE") process.exit(process.exitCode ?? 0);
7
+ throw error;
8
+ });
9
+
10
+ register();
11
+
12
+ const { run } = await import("../src/main.ts");
13
+
14
+ process.exitCode = await run(process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@fire-spark/cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.13.2",
4
+ "description": "Fire Spark command line: doctor and future commands",
5
+ "type": "module",
6
+ "bin": {
7
+ "firespark": "./bin/firespark.mjs"
8
+ },
9
+ "main": "./src/index.ts",
10
+ "types": "./src/index.ts",
11
+ "files": [
12
+ "bin",
13
+ "src",
14
+ "!src/**/*.test.ts"
15
+ ],
16
+ "engines": {
17
+ "node": ">=22"
18
+ },
19
+ "dependencies": {
20
+ "tsx": "^4.23.15"
21
+ },
22
+ "devDependencies": {
23
+ "vitest": "^2.1.8"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "exports": {
29
+ ".": "./src/index.ts"
30
+ },
31
+ "scripts": {
32
+ "start": "node ./bin/firespark.mjs",
33
+ "doctor": "node ./bin/firespark.mjs doctor",
34
+ "check-types": "tsc --noEmit",
35
+ "test:utils": "vitest run",
36
+ "lint": "oxlint ./src --max-warnings=0",
37
+ "format": "oxfmt ./src",
38
+ "check-format": "oxfmt --check ./src"
39
+ }
6
40
  }