@protobase/cli 0.58.4 → 0.58.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.
- package/dist/build/deploy-bundle.js +1 -1
- package/dist/cli/package.js +1 -1
- package/dist/project/import-project-file.js +2 -0
- package/dist/run/preload.js +1 -1
- package/package.json +7 -7
- package/skills/protobase/references/reference/cli.md +1 -1
- package/skills/protobase/references/reference/data-config.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bundleProtobaseVersion } from "../version/project-version.js";
|
|
2
|
-
import { buildIcons } from "./app-icons.js";
|
|
3
2
|
import { protobaseFolder } from "../project/protobase-folder.js";
|
|
3
|
+
import { buildIcons } from "./app-icons.js";
|
|
4
4
|
import { bundleLayout, bundleMigrations, bundleNodeModules, manifestFile } from "../bundle/manifest.js";
|
|
5
5
|
import { buildBundlePlugins } from "./bundle-plugins.js";
|
|
6
6
|
import { copyMigrations } from "./bundle-migrations.js";
|
package/dist/cli/package.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { serverPackage } from "../dev/server-package.js";
|
|
2
|
+
import { writeProjectTypes } from "./project-types.js";
|
|
2
3
|
import path from "node:path";
|
|
3
4
|
import { pathToFileURL } from "node:url";
|
|
4
5
|
//#region src/project/import-project-file.ts
|
|
5
6
|
const runnerImport = async (file, projectDir, plugins = []) => {
|
|
7
|
+
await writeProjectTypes(projectDir);
|
|
6
8
|
const vite = await import("vite");
|
|
7
9
|
const resolution = serverPackage(projectDir);
|
|
8
10
|
const packages = resolution.from === "cli" ? {
|
package/dist/run/preload.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hostModuleIds } from "../serve/host-module-ids.js";
|
|
2
|
-
import { provideHostModules } from "../serve/host-modules.js";
|
|
3
2
|
import { cliTypePaths } from "../project/project-types.js";
|
|
3
|
+
import { provideHostModules } from "../serve/host-modules.js";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
//#region src/run/preload.ts
|
|
6
6
|
const bun = globalThis.Bun;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.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": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@better-auth/core": "^1.7.12",
|
|
44
44
|
"@hono/node-server": "^2.1.3",
|
|
45
|
-
"@protobase/config": "0.58.
|
|
46
|
-
"@protobase/layout": "0.58.
|
|
47
|
-
"@protobase/query": "0.58.
|
|
48
|
-
"@protobase/schema": "0.58.
|
|
49
|
-
"@protobase/server": "0.58.
|
|
50
|
-
"@protobase/ui": "0.58.
|
|
45
|
+
"@protobase/config": "0.58.5",
|
|
46
|
+
"@protobase/layout": "0.58.5",
|
|
47
|
+
"@protobase/query": "0.58.5",
|
|
48
|
+
"@protobase/schema": "0.58.5",
|
|
49
|
+
"@protobase/server": "0.58.5",
|
|
50
|
+
"@protobase/ui": "0.58.5",
|
|
51
51
|
"@react-email/render": "^2.1.0",
|
|
52
52
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
53
53
|
"@tailwindcss/vite": "^4.3.3",
|
|
@@ -309,7 +309,7 @@ docker run --rm -p 127.0.0.1:8787:8787 -e DATABASE_URL -e PROTOBASE_URL -e PROTO
|
|
|
309
309
|
## `types`
|
|
310
310
|
|
|
311
311
|
```sh
|
|
312
|
-
protobase types # writes .protobase/tsconfig.json; dev and
|
|
312
|
+
protobase types # writes .protobase/tsconfig.json; dev, build and every command that loads the config write it too
|
|
313
313
|
```
|
|
314
314
|
|
|
315
315
|
Writes `.protobase/tsconfig.json`, which the project's `tsconfig.json` extends (`"extends": "./.protobase/tsconfig.json"`). In a bundled project its `paths` point each `@protobase` package and each package the serve runtime supplies, by name and by each of its exports (`@protobase/layout/jsx-runtime`, `kysely`, `zod`, ...), at the declarations of the CLI that builds the app, so the editor and `tsc` see the version that runs with nothing installed. There is no catch-all, so a package the project imports and lacks still fails as missing. React carries no types of its own, so the project keeps `@types/react`, as it keeps `@types/node`. A locked project's installed packages type themselves, so its file holds no `paths`. A `paths` of the project's own `tsconfig.json` replaces the generated one, as `extends` does with any option.
|
|
@@ -337,7 +337,7 @@ resource('direct_messages')
|
|
|
337
337
|
organization_id: f.relation('organizations'),
|
|
338
338
|
member_ids: f.json(),
|
|
339
339
|
// generated always as (...) stored: the members sorted, without repeats
|
|
340
|
-
member_key: f.text().readOnly()
|
|
340
|
+
member_key: f.text().readOnly(),
|
|
341
341
|
})
|
|
342
342
|
.primaryKey((r) => r.id)
|
|
343
343
|
.tenant((r) => r.organization_id)
|