@cedarjs/cli 1.0.0-canary.12387 → 1.0.0-canary.12389

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.
@@ -14,6 +14,7 @@ model BackgroundJob {
14
14
  queue String
15
15
  priority Int
16
16
  runAt DateTime?
17
+ cron String?
17
18
  lockedAt DateTime?
18
19
  lockedBy String?
19
20
  lastError String?
package/dist/lib/exec.js CHANGED
@@ -3,7 +3,11 @@ import { createServer, version as viteVersion } from "vite";
3
3
  import { ViteNodeRunner } from "vite-node/client";
4
4
  import { ViteNodeServer } from "vite-node/server";
5
5
  import { installSourcemapsSupport } from "vite-node/source-map";
6
- import { getConfig, getPaths } from "@cedarjs/project-config";
6
+ import {
7
+ getConfig,
8
+ getPaths,
9
+ importStatementPath
10
+ } from "@cedarjs/project-config";
7
11
  import {
8
12
  cedarCellTransform,
9
13
  cedarjsDirectoryNamedImportPlugin,
@@ -48,10 +52,14 @@ async function runScriptFunction({
48
52
  find: /^src\//,
49
53
  replacement: "src/",
50
54
  customResolver: (id, importer, _options) => {
51
- if (importer.startsWith(getPaths().api.base)) {
52
- return { id: id.replace("src", getPaths().api.src) };
53
- } else if (importer.startsWith(getPaths().web.base)) {
54
- return { id: id.replace("src", getPaths().web.src) };
55
+ const apiImportBase = importStatementPath(getPaths().api.base);
56
+ const webImportBase = importStatementPath(getPaths().web.base);
57
+ if (importer.startsWith(apiImportBase)) {
58
+ const apiImportSrc = importStatementPath(getPaths().api.src);
59
+ return { id: id.replace("src", apiImportSrc) };
60
+ } else if (importer.startsWith(webImportBase)) {
61
+ const webImportSrc = importStatementPath(getPaths().web.src);
62
+ return { id: id.replace("src", webImportSrc) };
55
63
  }
56
64
  return null;
57
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12387+3fb1ead68",
3
+ "version": "1.0.0-canary.12389+1ff6ab614",
4
4
  "description": "The Redwood Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,15 +29,15 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime-corejs3": "7.27.6",
32
- "@cedarjs/api-server": "1.0.0-canary.12387",
33
- "@cedarjs/cli-helpers": "1.0.0-canary.12387",
34
- "@cedarjs/fastify-web": "1.0.0-canary.12387",
35
- "@cedarjs/internal": "1.0.0-canary.12387",
36
- "@cedarjs/prerender": "1.0.0-canary.12387",
37
- "@cedarjs/project-config": "1.0.0-canary.12387",
38
- "@cedarjs/structure": "1.0.0-canary.12387",
39
- "@cedarjs/telemetry": "1.0.0-canary.12387",
40
- "@cedarjs/web-server": "1.0.0-canary.12387",
32
+ "@cedarjs/api-server": "1.0.0-canary.12389",
33
+ "@cedarjs/cli-helpers": "1.0.0-canary.12389",
34
+ "@cedarjs/fastify-web": "1.0.0-canary.12389",
35
+ "@cedarjs/internal": "1.0.0-canary.12389",
36
+ "@cedarjs/prerender": "1.0.0-canary.12389",
37
+ "@cedarjs/project-config": "1.0.0-canary.12389",
38
+ "@cedarjs/structure": "1.0.0-canary.12389",
39
+ "@cedarjs/telemetry": "1.0.0-canary.12389",
40
+ "@cedarjs/web-server": "1.0.0-canary.12389",
41
41
  "@listr2/prompt-adapter-enquirer": "2.0.12",
42
42
  "@opentelemetry/api": "1.8.0",
43
43
  "@opentelemetry/core": "1.22.0",
@@ -96,5 +96,5 @@
96
96
  "typescript": "5.6.2",
97
97
  "vitest": "3.2.4"
98
98
  },
99
- "gitHead": "3fb1ead68266e4b916d144a0ef76080048459937"
99
+ "gitHead": "1ff6ab6144a6c7b7f0b3c5c6403fbc595935bd1a"
100
100
  }