@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.
- package/dist/commands/setup/jobs/jobsHandler.js +1 -0
- package/dist/lib/exec.js +13 -5
- package/package.json +11 -11
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 {
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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.
|
|
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.
|
|
33
|
-
"@cedarjs/cli-helpers": "1.0.0-canary.
|
|
34
|
-
"@cedarjs/fastify-web": "1.0.0-canary.
|
|
35
|
-
"@cedarjs/internal": "1.0.0-canary.
|
|
36
|
-
"@cedarjs/prerender": "1.0.0-canary.
|
|
37
|
-
"@cedarjs/project-config": "1.0.0-canary.
|
|
38
|
-
"@cedarjs/structure": "1.0.0-canary.
|
|
39
|
-
"@cedarjs/telemetry": "1.0.0-canary.
|
|
40
|
-
"@cedarjs/web-server": "1.0.0-canary.
|
|
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": "
|
|
99
|
+
"gitHead": "1ff6ab6144a6c7b7f0b3c5c6403fbc595935bd1a"
|
|
100
100
|
}
|