@cedarjs/cli 2.6.0 → 2.6.1-next.104

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.
Files changed (38) hide show
  1. package/dist/commands/build/buildHandler.js +67 -0
  2. package/dist/commands/build/buildPackagesTask.js +20 -19
  3. package/dist/commands/consoleHandler.js +8 -7
  4. package/dist/commands/deploy/render.js +1 -1
  5. package/dist/commands/execHandler.js +22 -19
  6. package/dist/commands/experimental.js +2 -2
  7. package/dist/commands/generate/dataMigration/dataMigration.js +11 -3
  8. package/dist/commands/generate/dataMigration/templates/dataMigration.js.template +1 -1
  9. package/dist/commands/generate/dataMigration/templates/dataMigration.ts.template +1 -1
  10. package/dist/commands/generate/script/scriptHandler.js +8 -4
  11. package/dist/commands/generate/service/serviceHandler.js +10 -1
  12. package/dist/commands/generate/service/templates/scenarios.ts.template +4 -2
  13. package/dist/commands/generate/service/templates/test.ts.template +1 -1
  14. package/dist/commands/info.js +1 -1
  15. package/dist/commands/lint.js +15 -5
  16. package/dist/commands/record/init.js +1 -1
  17. package/dist/commands/record.js +4 -3
  18. package/dist/commands/serve.js +18 -8
  19. package/dist/commands/serveApiHandler.js +3 -2
  20. package/dist/commands/serveBothHandler.js +8 -2
  21. package/dist/commands/serveWebHandler.js +1 -0
  22. package/dist/commands/setup/live-queries/liveQueries.js +31 -0
  23. package/dist/commands/setup/live-queries/liveQueriesHandler.js +282 -0
  24. package/dist/commands/setup/live-queries/templates/liveQueriesListener.ts.template +137 -0
  25. package/dist/commands/setup/live-queries/templates/migration.sql.template +98 -0
  26. package/dist/commands/setup/monitoring/sentry/sentryHandler.js +1 -1
  27. package/dist/commands/setup/realtime/realtimeHandler.js +2 -2
  28. package/dist/commands/setup/realtime/templates/realtime.ts.template +1 -1
  29. package/dist/commands/setup.js +3 -2
  30. package/dist/commands/studioHandler.js +2 -2
  31. package/dist/commands/test.js +2 -1
  32. package/dist/commands/testEsm.js +2 -1
  33. package/dist/commands/type-check.js +2 -1
  34. package/dist/lib/generatePrismaClient.js +3 -6
  35. package/dist/lib/test.js +1 -0
  36. package/dist/lib/updateCheck.js +6 -7
  37. package/dist/middleware/{detectProjectRxVersion.js → detectProjectCedarVersion.js} +2 -2
  38. package/package.json +13 -13
@@ -180,19 +180,18 @@ function updateCheckMiddleware(argv) {
180
180
  if (EXCLUDED_COMMANDS.includes(argv._[0])) {
181
181
  return;
182
182
  }
183
- if (shouldShow()) {
184
- setLock(SHOW_LOCK_IDENTIFIER);
185
- process.on("exit", () => {
186
- showUpdateMessage();
187
- unsetLock(SHOW_LOCK_IDENTIFIER);
188
- });
189
- }
190
183
  if (shouldCheck()) {
191
184
  setLock(CHECK_LOCK_IDENTIFIER);
192
185
  spawnBackgroundProcess("updateCheck", "yarn", [
193
186
  "node",
194
187
  path.join(import.meta.dirname, "updateCheckExecute.js")
195
188
  ]);
189
+ } else if (shouldShow()) {
190
+ setLock(SHOW_LOCK_IDENTIFIER);
191
+ process.on("exit", () => {
192
+ showUpdateMessage();
193
+ unsetLock(SHOW_LOCK_IDENTIFIER);
194
+ });
196
195
  }
197
196
  }
198
197
  export {
@@ -1,5 +1,5 @@
1
1
  import { getInstalledCedarVersion } from "../lib/index.js";
2
- async function detectRxVersion(argv) {
2
+ async function detectCedarVersion(argv) {
3
3
  if (!argv.rwVersion) {
4
4
  return {
5
5
  rwVersion: await getInstalledCedarVersion()
@@ -8,5 +8,5 @@ async function detectRxVersion(argv) {
8
8
  return {};
9
9
  }
10
10
  export {
11
- detectRxVersion as default
11
+ detectCedarVersion
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "2.6.0",
3
+ "version": "2.6.1-next.104+6be0fa58d",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,15 +34,15 @@
34
34
  "@babel/parser": "7.29.0",
35
35
  "@babel/preset-typescript": "7.28.5",
36
36
  "@babel/runtime-corejs3": "7.29.0",
37
- "@cedarjs/api-server": "2.6.0",
38
- "@cedarjs/cli-helpers": "2.6.0",
39
- "@cedarjs/fastify-web": "2.6.0",
40
- "@cedarjs/internal": "2.6.0",
41
- "@cedarjs/prerender": "2.6.0",
42
- "@cedarjs/project-config": "2.6.0",
43
- "@cedarjs/structure": "2.6.0",
44
- "@cedarjs/telemetry": "2.6.0",
45
- "@cedarjs/web-server": "2.6.0",
37
+ "@cedarjs/api-server": "2.6.1-next.104+6be0fa58d",
38
+ "@cedarjs/cli-helpers": "2.6.1-next.104+6be0fa58d",
39
+ "@cedarjs/fastify-web": "2.6.1-next.104+6be0fa58d",
40
+ "@cedarjs/internal": "2.6.1-next.104+6be0fa58d",
41
+ "@cedarjs/prerender": "2.6.1-next.104+6be0fa58d",
42
+ "@cedarjs/project-config": "2.6.1-next.104+6be0fa58d",
43
+ "@cedarjs/structure": "2.6.1-next.104+6be0fa58d",
44
+ "@cedarjs/telemetry": "2.6.1-next.104+6be0fa58d",
45
+ "@cedarjs/web-server": "2.6.1-next.104+6be0fa58d",
46
46
  "@listr2/prompt-adapter-enquirer": "2.0.16",
47
47
  "@opentelemetry/api": "1.9.0",
48
48
  "@opentelemetry/core": "1.30.1",
@@ -80,11 +80,11 @@
80
80
  "prisma": "6.19.2",
81
81
  "prompts": "2.4.2",
82
82
  "recast": "0.23.11",
83
- "rimraf": "6.1.2",
83
+ "rimraf": "6.1.3",
84
84
  "semver": "7.7.4",
85
85
  "smol-toml": "1.6.0",
86
86
  "string-env-interpolation": "1.0.1",
87
- "systeminformation": "5.30.7",
87
+ "systeminformation": "5.31.1",
88
88
  "termi-link": "1.1.0",
89
89
  "title-case": "3.0.3",
90
90
  "unionfs": "4.6.0",
@@ -106,5 +106,5 @@
106
106
  "publishConfig": {
107
107
  "access": "public"
108
108
  },
109
- "gitHead": "2e238d88be71ec4ec6b9f329bf9c0fc7f2a069fd"
109
+ "gitHead": "6be0fa58d21ad717026065445aab7117e39ee3eb"
110
110
  }