@jakubmazanec/cli 0.5.6 → 0.5.7-next.b17ccbea

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../source/ui/useProgram.ts"],
4
- "sourcesContent": ["import {useApp} from 'ink';\nimport {useCallback, useContext} from 'react';\nimport {useErrorBoundary} from 'react-error-boundary';\n\nimport {programContext} from './internals.js';\n\n/**\n * A React hook for accessing {@link Program} instance and `exit` function that is used for showing an error (via an error boundary) and exiting.\n */\nexport function useProgram() {\n let {showBoundary} = useErrorBoundary();\n let {exit: appExit} = useApp();\n let {program} = useContext(programContext);\n\n let exit = useCallback(\n (error: unknown) => {\n process.exitCode = 1;\n\n showBoundary(error);\n appExit(error as Error);\n },\n [appExit, showBoundary],\n );\n\n return {program, exit};\n}\n"],
5
- "mappings": "AAAA,SAAQ,cAAa;AACrB,SAAQ,aAAa,kBAAiB;AACtC,SAAQ,wBAAuB;AAE/B,SAAQ,sBAAqB;AAKtB,gBAAS,aAAa;AAC3B,MAAI,EAAC,aAAY,IAAI,iBAAiB;AACtC,MAAI,EAAC,MAAM,QAAO,IAAI,OAAO;AAC7B,MAAI,EAAC,QAAO,IAAI,WAAW,cAAc;AAEzC,MAAI,OAAO;AAAA,IACT,CAAC,UAAmB;AAClB,cAAQ,WAAW;AAEnB,mBAAa,KAAK;AAClB,cAAQ,KAAc;AAAA,IACxB;AAAA,IACA,CAAC,SAAS,YAAY;AAAA,EACxB;AAEA,SAAO,EAAC,SAAS,KAAI;AACvB;",
4
+ "sourcesContent": ["import {useApp} from 'ink';\nimport {useCallback, useContext} from 'react';\nimport {useErrorBoundary} from 'react-error-boundary';\n\nimport {programContext} from './internals.js';\n\n/**\n * A React hook for accessing {@link Program} instance and `exit` function that is used for showing an error (via an error boundary) and exiting.\n */\nexport function useProgram() {\n let {showBoundary} = useErrorBoundary();\n let {exit: appExit} = useApp();\n let {program} = useContext(programContext);\n\n let exit = useCallback(\n (error: unknown) => {\n process.exitCode = 1;\n\n showBoundary(error);\n appExit(error);\n },\n [appExit, showBoundary],\n );\n\n return {program, exit};\n}\n"],
5
+ "mappings": "AAAA,SAAQ,cAAa;AACrB,SAAQ,aAAa,kBAAiB;AACtC,SAAQ,wBAAuB;AAE/B,SAAQ,sBAAqB;AAKtB,gBAAS,aAAa;AAC3B,MAAI,EAAC,aAAY,IAAI,iBAAiB;AACtC,MAAI,EAAC,MAAM,QAAO,IAAI,OAAO;AAC7B,MAAI,EAAC,QAAO,IAAI,WAAW,cAAc;AAEzC,MAAI,OAAO;AAAA,IACT,CAAC,UAAmB;AAClB,cAAQ,WAAW;AAEnB,mBAAa,KAAK;AAClB,cAAQ,KAAK;AAAA,IACf;AAAA,IACA,CAAC,SAAS,YAAY;AAAA,EACxB;AAEA,SAAO,EAAC,SAAS,KAAI;AACvB;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/cli",
3
- "version": "0.5.6",
3
+ "version": "0.5.7-next.b17ccbea",
4
4
  "description": "TypeScript-first library for building CLIs.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,9 +17,9 @@
17
17
  "source"
18
18
  ],
19
19
  "scripts": {
20
- "build": "del-cli build tsconfig.tsbuildinfo && esbuild \"source/**/*\" --platform=node --target=node24.3 --outdir=build --sourcemap && tsc",
20
+ "build": "del-cli build tsconfig.tsbuildinfo && esbuild \"source/**/*\" --platform=node --target=node24.21 --outdir=build --sourcemap && tsc",
21
21
  "clean": "del-cli coverage build *.tsbuildinfo",
22
- "develop": "concurrently \"esbuild \"source/**/*\" --platform=node --target=node24.3 --outdir=build --sourcemap --watch\" \"tsc --watch\"",
22
+ "develop": "concurrently \"esbuild \"source/**/*\" --platform=node --target=node24.21 --outdir=build --sourcemap --watch\" \"tsc --watch\"",
23
23
  "document": "del-cli docs && typedoc --options typedoc.config.cjs",
24
24
  "format": "prettier . --write --ignore-unknown",
25
25
  "lint": "eslint .",
@@ -27,46 +27,46 @@
27
27
  "typecheck": "tsc --project tsconfig.typecheck.json"
28
28
  },
29
29
  "dependencies": {
30
- "@jakubmazanec/args": "^2.0.0",
31
- "@jakubmazanec/error": "^3.0.0",
32
- "@jakubmazanec/ts-utils": "^3.0.0",
33
- "@jakubmazanec/zod-utils": "^3.0.0",
30
+ "@jakubmazanec/args": "2.0.19-next.b17ccbea",
31
+ "@jakubmazanec/error": "3.0.19-next.b17ccbea",
32
+ "@jakubmazanec/ts-utils": "3.0.20-next.b17ccbea",
33
+ "@jakubmazanec/zod-utils": "3.0.5-next.b17ccbea",
34
34
  "chalk": "^5.6.2",
35
- "fs-extra": "^11.3.6",
35
+ "fs-extra": "^11.4.1",
36
36
  "latest-version": "^9.0.0",
37
37
  "lodash": "^4.18.1",
38
- "react-error-boundary": "^6.1.2",
39
- "zod": "^4.4.3"
38
+ "react-error-boundary": "^6.1.6",
39
+ "zod": "^4.6.5"
40
40
  },
41
41
  "devDependencies": {
42
- "@jakubmazanec/eslint-config": "^5.0.0",
42
+ "@jakubmazanec/eslint-config": "5.0.1-next.b17ccbea",
43
43
  "@types/fs-extra": "^11.0.4",
44
- "@types/lodash": "^4.17.24",
45
- "@types/node": "^24.0.4",
46
- "@types/react": "^19.2.17",
47
- "@vitest/coverage-v8": "^4.1.10",
48
- "concurrently": "^10.0.3",
44
+ "@types/lodash": "^4.17.25",
45
+ "@types/node": "^24.19.1",
46
+ "@types/react": "^19.3.0",
47
+ "@vitest/coverage-v8": "^4.1.11",
48
+ "concurrently": "^10.0.6",
49
49
  "cross-env": "^10.1.0",
50
50
  "del-cli": "^7.0.0",
51
- "esbuild": "^0.28.1",
52
- "eslint": "^9.39.4",
53
- "ink": "^6.5.1",
51
+ "esbuild": "^0.28.2",
52
+ "eslint": "^9.39.5",
53
+ "ink": "^6.8.0",
54
54
  "ink-testing-library": "^4.0.0",
55
- "prettier": "^3.9.5",
55
+ "prettier": "^3.9.9",
56
56
  "prettier-plugin-packagejson": "^2.5.22",
57
- "react": "^19.2.7",
57
+ "react": "^19.3.0",
58
58
  "typedoc": "^0.28.20",
59
- "typedoc-plugin-markdown": "^4.12.0",
60
- "typescript": "^6.0.0",
61
- "vitest": "^4.1.10"
59
+ "typedoc-plugin-markdown": "^4.13.1",
60
+ "typescript": "^6.0.3",
61
+ "vitest": "^4.1.11"
62
62
  },
63
63
  "peerDependencies": {
64
64
  "ink": "6.x",
65
65
  "react": "19.x"
66
66
  },
67
- "packageManager": "npm@11.3.0",
67
+ "packageManager": "npm@11.21.0",
68
68
  "engines": {
69
- "node": "^24.3.0",
70
- "npm": "^11.3.0"
69
+ "node": "^24.21.0",
70
+ "npm": "^11.21.0"
71
71
  }
72
72
  }
@@ -17,7 +17,7 @@ export function useProgram() {
17
17
  process.exitCode = 1;
18
18
 
19
19
  showBoundary(error);
20
- appExit(error as Error);
20
+ appExit(error);
21
21
  },
22
22
  [appExit, showBoundary],
23
23
  );