@hardkas/cli 0.4.0-alpha → 0.5.0-alpha

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 @@
1
+ #!/usr/bin/env node
@@ -0,0 +1,9 @@
1
+ import { HardkasConfig } from '@hardkas/config';
2
+
3
+ /**
4
+ * Type-safe config helper for hardkas.config.ts files.
5
+ * This is a pass-through function that provides autocompletion.
6
+ */
7
+ declare function defineConfig(config: Partial<HardkasConfig>): Partial<HardkasConfig>;
8
+
9
+ export { defineConfig };
package/dist/public.js ADDED
@@ -0,0 +1,7 @@
1
+ // src/define-config.ts
2
+ function defineConfig(config) {
3
+ return config;
4
+ }
5
+ export {
6
+ defineConfig
7
+ };
package/package.json CHANGED
@@ -1,7 +1,13 @@
1
1
  {
2
2
  "name": "@hardkas/cli",
3
- "version": "0.4.0-alpha",
3
+ "version": "0.5.0-alpha",
4
4
  "type": "module",
5
+ "main": "./dist/public.js",
6
+ "types": "./dist/public.d.ts",
7
+ "exports": {
8
+ ".": "./dist/public.js",
9
+ "./bin": "./dist/index.js"
10
+ },
5
11
  "files": [
6
12
  "dist",
7
13
  "README.md",
@@ -18,24 +24,24 @@
18
24
  "picocolors": "^1.1.1",
19
25
  "viem": "^2.21.32",
20
26
  "zod": "^3.23.8",
21
- "@hardkas/accounts": "0.4.0-alpha",
22
- "@hardkas/artifacts": "0.4.0-alpha",
23
- "@hardkas/bridge-local": "0.4.0-alpha",
24
- "@hardkas/core": "0.4.0-alpha",
25
- "@hardkas/dev-server": "0.4.0-alpha",
26
- "@hardkas/config": "0.4.0-alpha",
27
- "@hardkas/kaspa-rpc": "0.4.0-alpha",
28
- "@hardkas/query": "0.4.0-alpha",
29
- "@hardkas/l2": "0.4.0-alpha",
30
- "@hardkas/localnet": "0.4.0-alpha",
31
- "@hardkas/node-runner": "0.4.0-alpha",
32
- "@hardkas/node-orchestrator": "0.4.0-alpha",
33
- "@hardkas/sdk": "0.4.0-alpha",
34
- "@hardkas/simulator": "0.4.0-alpha",
35
- "@hardkas/sessions": "0.4.0-alpha",
36
- "@hardkas/query-store": "0.4.0-alpha",
37
- "@hardkas/testing": "0.4.0-alpha",
38
- "@hardkas/tx-builder": "0.4.0-alpha"
27
+ "@hardkas/artifacts": "0.5.0-alpha",
28
+ "@hardkas/bridge-local": "0.5.0-alpha",
29
+ "@hardkas/core": "0.5.0-alpha",
30
+ "@hardkas/query": "0.5.0-alpha",
31
+ "@hardkas/dev-server": "0.5.0-alpha",
32
+ "@hardkas/config": "0.5.0-alpha",
33
+ "@hardkas/kaspa-rpc": "0.5.0-alpha",
34
+ "@hardkas/localnet": "0.5.0-alpha",
35
+ "@hardkas/node-runner": "0.5.0-alpha",
36
+ "@hardkas/query-store": "0.5.0-alpha",
37
+ "@hardkas/node-orchestrator": "0.5.0-alpha",
38
+ "@hardkas/accounts": "0.5.0-alpha",
39
+ "@hardkas/sdk": "0.5.0-alpha",
40
+ "@hardkas/sessions": "0.5.0-alpha",
41
+ "@hardkas/simulator": "0.5.0-alpha",
42
+ "@hardkas/testing": "0.5.0-alpha",
43
+ "@hardkas/tx-builder": "0.5.0-alpha",
44
+ "@hardkas/l2": "0.5.0-alpha"
39
45
  },
40
46
  "devDependencies": {
41
47
  "tsup": "^8.3.5",
@@ -55,7 +61,7 @@
55
61
  },
56
62
  "homepage": "https://github.com/KasLabDevs/HardKas/tree/main/packages/cli#readme",
57
63
  "scripts": {
58
- "build": "tsup src/index.ts --format esm --clean --external vitest",
64
+ "build": "tsup src/index.ts src/public.ts --format esm --dts --clean --external vitest",
59
65
  "dev": "tsx src/index.ts",
60
66
  "hardkas": "tsx src/index.ts",
61
67
  "typecheck": "tsc --noEmit",