@lunora/vite 1.0.0-alpha.44 → 1.0.0-alpha.46
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/index.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import containerLogsPlugin from './packem_shared/containerLogsPlugin-DMssU3wb.mj
|
|
|
8
8
|
import devVariablesPlugin from './packem_shared/devVariablesPlugin-CDNSnvOP.mjs';
|
|
9
9
|
import { createCommandProbe, withDevWorkerEnv } from './packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs';
|
|
10
10
|
export { DEV_WORKER_ENV_VALUE, DEV_WORKER_ENV_VAR } from './packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs';
|
|
11
|
-
import { frameworkComposePlugin } from './packem_shared/CLASS_A_WIRING-
|
|
12
|
-
export { CLASS_A_WIRING, LUNORA_WORKER_VIRTUAL_ID, buildWorkerEntrySource, isAutoComposable } from './packem_shared/CLASS_A_WIRING-
|
|
11
|
+
import { frameworkComposePlugin } from './packem_shared/CLASS_A_WIRING-DEw5sPHs.mjs';
|
|
12
|
+
export { CLASS_A_WIRING, LUNORA_WORKER_VIRTUAL_ID, buildWorkerEntrySource, isAutoComposable } from './packem_shared/CLASS_A_WIRING-DEw5sPHs.mjs';
|
|
13
13
|
import logStreamPlugin from './packem_shared/logStreamPlugin-CqvZ17kd.mjs';
|
|
14
14
|
import { planViteRemoteBindings, remoteBindingsCleanupPlugin, withRemoteBindings } from './packem_shared/planViteRemoteBindings-QN5ncUS1.mjs';
|
|
15
15
|
import { lunoraSolutionFinders } from './packem_shared/lunoraSolutionFinder-BKEAiUJP.mjs';
|
|
@@ -18,7 +18,7 @@ import { studioPlugin } from './packem_shared/STUDIO_PATH-DYspAN3z.mjs';
|
|
|
18
18
|
export { STUDIO_PATH, buildStudioUrl } from './packem_shared/STUDIO_PATH-DYspAN3z.mjs';
|
|
19
19
|
import { withWorkerStartupHint } from './packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs';
|
|
20
20
|
export { WORKER_STARTUP_HINT, augmentWorkerStartupError, isWorkerEntryEvalError } from './packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs';
|
|
21
|
-
import { wranglerValidatorPlugin } from './packem_shared/wranglerValidatorPlugin-
|
|
21
|
+
import { wranglerValidatorPlugin } from './packem_shared/wranglerValidatorPlugin-C5VWOD7N.mjs';
|
|
22
22
|
export { reconcileWranglerCrons } from './packem_shared/reconcileWranglerCrons-PxGwfCp_.mjs';
|
|
23
23
|
|
|
24
24
|
const agentRulesHintPlugin = (options) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { resolve, join } from 'node:path';
|
|
3
|
+
import { LunoraError } from '@lunora/errors';
|
|
3
4
|
|
|
4
5
|
const LUNORA_WORKER_VIRTUAL_ID = "virtual:lunora/worker";
|
|
5
6
|
const RESOLVED_VIRTUAL_PREFIX = "\0";
|
|
@@ -50,7 +51,7 @@ const projectUsesUmbrella = (projectRoot) => {
|
|
|
50
51
|
const buildWorkerEntrySource = (framework, generatedImportBase, hasContainers = false, useUmbrella = false, allowUnauthenticatedShardAccess = false) => {
|
|
51
52
|
const wiring = CLASS_A_WIRING[framework];
|
|
52
53
|
if (wiring === void 0) {
|
|
53
|
-
throw new
|
|
54
|
+
throw new LunoraError("INTERNAL", `[lunora] no class-A worker wiring for framework "${framework}"`);
|
|
54
55
|
}
|
|
55
56
|
const runtimeModule = useUmbrella ? "lunorash/runtime" : "@lunora/runtime";
|
|
56
57
|
const containersReexport = hasContainers ? `
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
import { validateWranglerProject, readWranglerJsonc } from '@lunora/config';
|
|
3
|
+
import { LunoraError } from '@lunora/errors';
|
|
3
4
|
import { l as lunoraLine } from './log-BjO9EWah.mjs';
|
|
4
5
|
|
|
5
6
|
const isLocalImagePath = (image) => image.startsWith("./") || image.startsWith("../") || image.startsWith("/") || image.includes("Dockerfile");
|
|
@@ -41,7 +42,8 @@ const wranglerValidatorPlugin = (options) => {
|
|
|
41
42
|
schemaDir: options.schemaDir
|
|
42
43
|
});
|
|
43
44
|
if (!result.wranglerPath) {
|
|
44
|
-
throw new
|
|
45
|
+
throw new LunoraError(
|
|
46
|
+
"INTERNAL",
|
|
45
47
|
[
|
|
46
48
|
"[lunora] wrangler.jsonc not found.",
|
|
47
49
|
` searched in: ${options.projectRoot}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/vite",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.46",
|
|
4
4
|
"description": "The Lunora Vite plugin: codegen, type sync, wrangler validation, and an error overlay over @cloudflare/vite-plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,14 +46,15 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@cloudflare/vite-plugin": "1.42.3",
|
|
49
|
-
"@lunora/codegen": "1.0.0-alpha.
|
|
50
|
-
"@lunora/config": "1.0.0-alpha.
|
|
49
|
+
"@lunora/codegen": "1.0.0-alpha.29",
|
|
50
|
+
"@lunora/config": "1.0.0-alpha.46",
|
|
51
|
+
"@lunora/errors": "1.0.0-alpha.1",
|
|
51
52
|
"@visulima/vite-overlay": "2.0.0-alpha.35",
|
|
52
53
|
"jsonc-parser": "^3.3.1",
|
|
53
54
|
"ts-morph": "^28.0.0"
|
|
54
55
|
},
|
|
55
56
|
"peerDependencies": {
|
|
56
|
-
"@lunora/studio": "1.0.0-alpha.
|
|
57
|
+
"@lunora/studio": "1.0.0-alpha.32",
|
|
57
58
|
"vite": "^8.1.0"
|
|
58
59
|
},
|
|
59
60
|
"peerDependenciesMeta": {
|