@protobase/cli 0.14.3 → 0.14.5

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.
@@ -22,6 +22,7 @@ const servedImports = (native) => {
22
22
  if (!checked.has(dir)) checked.set(dir, isNativePackage(dir));
23
23
  return checked.get(dir);
24
24
  };
25
+ const unavailable = /* @__PURE__ */ new Set();
25
26
  return {
26
27
  name: "protobase-served-imports",
27
28
  enforce: "pre",
@@ -30,7 +31,13 @@ const servedImports = (native) => {
30
31
  if (name === void 0 || importer === void 0) return void 0;
31
32
  const from = importerDir(importer);
32
33
  if (hostPackages.has(name)) {
33
- if (!isHostModule(id)) this.error(`${id} is not available to a served config; of the @protobase packages and their dependencies it may import ${hostModuleIds.join(", ")}`);
34
+ if (!isHostModule(id)) {
35
+ unavailable.add(id);
36
+ return {
37
+ id,
38
+ external: true
39
+ };
40
+ }
34
41
  const problem = await hostVersionProblem(name, from);
35
42
  if (problem) this.error(problem);
36
43
  return {
@@ -50,6 +57,13 @@ const servedImports = (native) => {
50
57
  id,
51
58
  external: true
52
59
  };
60
+ },
61
+ generateBundle(_, bundle) {
62
+ for (const output of Object.values(bundle)) {
63
+ if (output.type !== "chunk") continue;
64
+ const id = output.imports.find((imported) => unavailable.has(imported));
65
+ if (id) this.error(`${id} is not available to a served config; of the @protobase packages and their dependencies it may import ${hostModuleIds.join(", ")}`);
66
+ }
53
67
  }
54
68
  };
55
69
  };
package/dist/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.14.3";
2
+ var version = "0.14.5";
3
3
  //#endregion
4
4
  export { version };
@@ -18,7 +18,10 @@ const hostModuleIds = [
18
18
  "zod",
19
19
  "aip-parsers",
20
20
  "@hono/node-server",
21
- "@scalar/hono-api-reference"
21
+ "@scalar/hono-api-reference",
22
+ "react",
23
+ "react/jsx-runtime",
24
+ "@react-email/render"
22
25
  ];
23
26
  //#endregion
24
27
  export { hostModuleIds };
@@ -5,6 +5,7 @@ import * as nodeServer from "@hono/node-server";
5
5
  import * as pg$1 from "pg";
6
6
  import * as kysely from "kysely";
7
7
  import * as hono from "hono";
8
+ import * as reactEmailRender from "@react-email/render";
8
9
  import * as apiReference from "@scalar/hono-api-reference";
9
10
  import * as aipParsers from "aip-parsers";
10
11
  import * as betterAuth from "better-auth";
@@ -13,6 +14,8 @@ import * as honoHttpException from "hono/http-exception";
13
14
  import * as honoValidator from "hono/validator";
14
15
  import * as jose from "jose";
15
16
  import * as kyselyPostgres from "kysely/helpers/postgres";
17
+ import * as react from "react";
18
+ import * as reactJsxRuntime from "react/jsx-runtime";
16
19
  import * as zod from "zod";
17
20
  import * as layout from "@protobase/layout";
18
21
  import * as query from "@protobase/query";
@@ -36,7 +39,10 @@ const hostModules = {
36
39
  zod,
37
40
  "aip-parsers": aipParsers,
38
41
  "@hono/node-server": nodeServer,
39
- "@scalar/hono-api-reference": apiReference
42
+ "@scalar/hono-api-reference": apiReference,
43
+ react,
44
+ "react/jsx-runtime": reactJsxRuntime,
45
+ "@react-email/render": reactEmailRender
40
46
  };
41
47
  const provideHostModules = () => {
42
48
  const bun = globalThis.Bun;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -34,11 +34,12 @@
34
34
  "dependencies": {
35
35
  "@hono/node-server": "^2.1.3",
36
36
  "@hono/vite-dev-server": "^0.26.1",
37
- "@protobase/layout": "0.14.3",
38
- "@protobase/query": "0.14.3",
39
- "@protobase/schema": "0.14.3",
40
- "@protobase/server": "0.14.3",
41
- "@protobase/ui": "0.14.3",
37
+ "@protobase/layout": "0.14.5",
38
+ "@protobase/query": "0.14.5",
39
+ "@protobase/schema": "0.14.5",
40
+ "@protobase/server": "0.14.5",
41
+ "@protobase/ui": "0.14.5",
42
+ "@react-email/render": "^2.1.0",
42
43
  "@scalar/hono-api-reference": "^0.12.10",
43
44
  "@tailwindcss/vite": "^4.3.3",
44
45
  "@vitejs/plugin-react": "^6.1.2",
@@ -53,6 +54,7 @@
53
54
  "pg": "^8.23.1",
54
55
  "postcss": "^8.5.29",
55
56
  "postgres": "^3.4.9",
57
+ "react": "^19.3.0",
56
58
  "ts-morph": "^28.0.0",
57
59
  "vite": "^8.3.3",
58
60
  "zod": "^4.6.5"