@hardfin/cli 0.0.2-dev.3 → 0.0.2-dev.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardfin/cli",
3
- "version": "0.0.2-dev.3",
3
+ "version": "0.0.2-dev.6",
4
4
  "description": "Command line interface for the Hardfin API",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hardfin, Inc.",
@@ -20,15 +20,35 @@
20
20
  ],
21
21
  "type": "module",
22
22
  "bin": {
23
- "hardfin": "bin/hardfin.js"
23
+ "hardfin": "dist/cli.js"
24
24
  },
25
25
  "files": [
26
- "bin"
26
+ "dist"
27
27
  ],
28
28
  "engines": {
29
29
  "node": ">=20"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "tsdown",
36
+ "generate-surface": "node scripts/generate-surface.mjs",
37
+ "check-types": "tsc --noEmit",
38
+ "test": "vitest run",
39
+ "test:watch": "vitest",
40
+ "prepublishOnly": "npm run build"
41
+ },
42
+ "dependencies": {
43
+ "commander": "^15.0.0",
44
+ "zod": "^4.6.5"
45
+ },
46
+ "devDependencies": {
47
+ "@types/node": "^22.15.0",
48
+ "tsdown": "^0.23.0",
49
+ "typescript": "^5.9.0",
50
+ "unrun": "^0.3.1",
51
+ "vitest": "^5.0.1",
52
+ "yaml": "^2.9.1"
33
53
  }
34
54
  }
package/bin/hardfin.js DELETED
@@ -1,27 +0,0 @@
1
- #!/usr/bin/env node
2
- // Copyright (c) 2026. Hardfin, Inc. All rights reserved.
3
-
4
- import { createRequire } from "node:module";
5
-
6
- const require = createRequire(import.meta.url);
7
- const { version } = require("../package.json");
8
-
9
- const arg = process.argv[2];
10
-
11
- if (arg === "--version" || arg === "-v" || arg === "version") {
12
- process.stdout.write(`${version}\n`);
13
- process.exit(0);
14
- }
15
-
16
- process.stderr.write(
17
- [
18
- `hardfin ${version}`,
19
- "",
20
- "This release is a placeholder that reserves the package name",
21
- "No commands are available yet",
22
- "",
23
- "https://github.com/hardfinhq/hardfin-cli",
24
- "",
25
- ].join("\n"),
26
- );
27
- process.exit(1);