@protobase/cli 0.94.42 → 0.94.43

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,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.94.42";
2
+ var version = "0.94.43";
3
3
  //#endregion
4
4
  export { version };
@@ -1,6 +1,7 @@
1
1
  import { protobaseVersion } from "../version/version.js";
2
2
  import { protobaseFolder } from "../project/protobase-folder.js";
3
3
  import { packageNameProblem } from "./package-name.js";
4
+ import { nativeDependencies } from "./pinned-packages.js";
4
5
  import { appPluginsCommand, appPluginsHooks } from "./app-plugins-hook.js";
5
6
  import { isLocalSpec } from "./local-spec.js";
6
7
  import { checkLocalPins, isUnmet, localPins } from "./local-pins.js";
@@ -14,12 +15,17 @@ const workspaceDir = (projectDir) => path.join(projectDir, protobaseFolder, "mob
14
15
  const fromSource = path.extname(import.meta.url) === ".ts";
15
16
  /** The @protobase/mobile to install: the CLI's own version, or this repository's package when the CLI runs from source. */
16
17
  const mobileSpec = (source = fromSource) => source ? `file:${fileURLToPath(new URL("../../../mobile", import.meta.url))}` : protobaseVersion;
17
- /** The workspace's package.json: @protobase/mobile, the project's extra plugins and the hooks that keep the app's UI plugins. */
18
+ /**
19
+ * The workspace's package.json: @protobase/mobile, the project's extra plugins and the hooks that keep the app's UI
20
+ * plugins. The native packages @protobase/mobile pins are listed at the root at their pinned versions too, so a
21
+ * plugin's open peer range, such as `@capacitor/core: >=8.0.0`, resolves to the pin rather than npm's newest.
22
+ */
18
23
  const workspacePackageJson = ({ mobileSpec, plugins = {} }) => ({
19
24
  private: true,
20
25
  scripts: Object.fromEntries(appPluginsHooks.map((hook) => [hook, appPluginsCommand])),
21
26
  dependencies: {
22
27
  "@protobase/mobile": mobileSpec,
28
+ ...nativeDependencies,
23
29
  ...plugins
24
30
  }
25
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.94.42",
3
+ "version": "0.94.43",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.94.42",
47
- "@protobase/layout": "0.94.42",
48
- "@protobase/query": "0.94.42",
49
- "@protobase/schema": "0.94.42",
50
- "@protobase/server": "0.94.42",
51
- "@protobase/ui": "0.94.42",
52
- "@protobase/workflows": "0.94.42",
46
+ "@protobase/config": "0.94.43",
47
+ "@protobase/layout": "0.94.43",
48
+ "@protobase/query": "0.94.43",
49
+ "@protobase/schema": "0.94.43",
50
+ "@protobase/server": "0.94.43",
51
+ "@protobase/ui": "0.94.43",
52
+ "@protobase/workflows": "0.94.43",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",