@proofkit/cli 1.1.5 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @proofgeist/kit
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Run typegen code directly instead of via execa
8
+ - error trap around formatting
9
+ - Remove shared-utils dep
10
+
3
11
  ## 1.1.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.js CHANGED
@@ -11653,6 +11653,7 @@ function abortIfCancel(value) {
11653
11653
  // src/generators/fmdapi.ts
11654
11654
  import path9 from "path";
11655
11655
  import { generateTypedClients } from "@proofkit/typegen";
11656
+ import { config as dotenvConfig } from "dotenv";
11656
11657
  import fs7 from "fs-extra";
11657
11658
  import { applyEdits, modify, parse as parseJsonc } from "jsonc-parser";
11658
11659
  import { SyntaxKind as SyntaxKind5 } from "ts-morph";
@@ -11781,6 +11782,7 @@ async function runCodegenCommand() {
11781
11782
  if (!config2) {
11782
11783
  throw new Error("proofkit-typegen.config.jsonc not found");
11783
11784
  }
11785
+ dotenvConfig({ path: path9.join(projectDir, ".env") });
11784
11786
  await generateTypedClients(config2.config, { cwd: projectDir });
11785
11787
  }
11786
11788
  }
package/index.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ export interface RouteLink {
2
+ label: string;
3
+ type: "link";
4
+ href: string;
5
+ icon?: React.ReactNode;
6
+ /** If true, the route will only be considered active if the path is exactly this value. */
7
+ exactMatch?: boolean;
8
+ }
9
+
10
+ export interface RouteFunction {
11
+ label: string;
12
+ type: "function";
13
+ icon?: React.ReactNode;
14
+ onClick: () => void;
15
+ /** If true, the route will only be considered active if the path is exactly this value. */
16
+ exactMatch?: boolean;
17
+ }
18
+
19
+ export type ProofKitRoute = RouteLink | RouteFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofkit/cli",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Create web application with the ProofKit stack",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -19,8 +19,8 @@
19
19
  "type": "module",
20
20
  "exports": {
21
21
  ".": {
22
- "import": "./dist/index.js",
23
- "types": "./dist/index.d.ts"
22
+ "types": "./index.d.ts",
23
+ "import": "./dist/index.js"
24
24
  }
25
25
  },
26
26
  "bin": {
@@ -30,6 +30,7 @@
30
30
  "dist",
31
31
  "template",
32
32
  "README.md",
33
+ "index.d.ts",
33
34
  "LICENSE",
34
35
  "CHANGELOG.md",
35
36
  "package.json"
@@ -62,7 +63,7 @@
62
63
  "sort-package-json": "^2.10.0",
63
64
  "ts-morph": "^26.0.0",
64
65
  "@proofkit/fmdapi": "5.0.0",
65
- "@proofkit/typegen": "1.0.6"
66
+ "@proofkit/typegen": "1.0.7"
66
67
  },
67
68
  "devDependencies": {
68
69
  "@auth/drizzle-adapter": "^1.1.0",
@@ -92,6 +93,7 @@
92
93
  "next-auth": "^4.24.7",
93
94
  "postgres": "^3.4.4",
94
95
  "prisma": "^5.14.0",
96
+ "publint": "^0.3.12",
95
97
  "react": "^19.1.0",
96
98
  "react-dom": "^19.1.0",
97
99
  "superjson": "^2.2.1",
@@ -104,7 +106,7 @@
104
106
  },
105
107
  "scripts": {
106
108
  "typecheck": "tsc",
107
- "build": "tsup",
109
+ "build": "tsup && publint --strict",
108
110
  "dev": "tsup --watch",
109
111
  "clean": "rm -rf dist .turbo node_modules",
110
112
  "start": "node dist/index.js",