@lunora/vite 1.0.0-alpha.5 → 1.0.0-alpha.7
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 +4 -4
- package/dist/packem_shared/{codegenPlugin-CHzvXqK6.mjs → codegenPlugin-MuvbqAP8.mjs} +7 -2
- package/dist/packem_shared/{devVariablesPlugin-DbDf7tmi.mjs → devVariablesPlugin-CVjkQay7.mjs} +1 -1
- package/dist/packem_shared/log-BjO9EWah.mjs +8 -0
- package/dist/packem_shared/{wranglerValidatorPlugin-DggqUjxL.mjs → wranglerValidatorPlugin-CEoJEghS.mjs} +1 -1
- package/package.json +4 -4
- package/dist/packem_shared/log-Bgkv6QhO.mjs +0 -6
package/dist/index.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { cloudflare } from '@cloudflare/vite-plugin';
|
|
|
2
2
|
import errorOverlayPlugin from '@visulima/vite-overlay';
|
|
3
3
|
import { detectAgentRules, claimAgentRulesHint, AGENT_RULES_HINT, detectFramework } from '@lunora/config';
|
|
4
4
|
export { detectFramework } from '@lunora/config';
|
|
5
|
-
import { l as lunoraLine } from './packem_shared/log-
|
|
6
|
-
import codegenPlugin from './packem_shared/codegenPlugin-
|
|
7
|
-
import devVariablesPlugin from './packem_shared/devVariablesPlugin-
|
|
5
|
+
import { l as lunoraLine } from './packem_shared/log-BjO9EWah.mjs';
|
|
6
|
+
import codegenPlugin from './packem_shared/codegenPlugin-MuvbqAP8.mjs';
|
|
7
|
+
import devVariablesPlugin from './packem_shared/devVariablesPlugin-CVjkQay7.mjs';
|
|
8
8
|
import { createCommandProbe, withDevWorkerEnv } from './packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs';
|
|
9
9
|
export { DEV_WORKER_ENV_VALUE, DEV_WORKER_ENV_VAR } from './packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs';
|
|
10
10
|
import { frameworkComposePlugin } from './packem_shared/CLASS_A_WIRING-CZVcjgKo.mjs';
|
|
@@ -15,7 +15,7 @@ import { studioPlugin } from './packem_shared/STUDIO_PATH-5ppCdBHa.mjs';
|
|
|
15
15
|
export { STUDIO_PATH, buildStudioUrl } from './packem_shared/STUDIO_PATH-5ppCdBHa.mjs';
|
|
16
16
|
import { withWorkerStartupHint } from './packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs';
|
|
17
17
|
export { WORKER_STARTUP_HINT, augmentWorkerStartupError, isWorkerEntryEvalError } from './packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs';
|
|
18
|
-
import { wranglerValidatorPlugin } from './packem_shared/wranglerValidatorPlugin-
|
|
18
|
+
import { wranglerValidatorPlugin } from './packem_shared/wranglerValidatorPlugin-CEoJEghS.mjs';
|
|
19
19
|
export { reconcileWranglerCrons } from './packem_shared/reconcileWranglerCrons-PxGwfCp_.mjs';
|
|
20
20
|
|
|
21
21
|
const agentRulesHintPlugin = (options) => {
|
|
@@ -3,7 +3,7 @@ import { resolve, sep, join } from 'node:path';
|
|
|
3
3
|
import { createCodegenProject, refreshCodegenProject, runCodegen, CodegenDiagnosticError } from '@lunora/codegen';
|
|
4
4
|
import { inferLunoraBindings, reconcileWranglerBindings } from '@lunora/config';
|
|
5
5
|
import { reconcileWranglerCrons } from './reconcileWranglerCrons-PxGwfCp_.mjs';
|
|
6
|
-
import { L as LUNORA_TAG } from './log-
|
|
6
|
+
import { L as LUNORA_TAG, a as advisoryLine } from './log-BjO9EWah.mjs';
|
|
7
7
|
|
|
8
8
|
const DEBOUNCE_MS = 100;
|
|
9
9
|
const TSCONFIG_VARIANT_RE = /[/\\]tsconfig\..+\.json$/u;
|
|
@@ -56,7 +56,12 @@ const runCodegenSafely = (options, logger, overlay, project) => {
|
|
|
56
56
|
logger.warn(`${LUNORA_TAG} cron trigger sync skipped: ${message}`);
|
|
57
57
|
}
|
|
58
58
|
for (const advisory of result.advisories) {
|
|
59
|
-
|
|
59
|
+
const line = advisoryLine(advisory.level, advisory.name, advisory.detail, advisory.remediation);
|
|
60
|
+
if (advisory.level === "ERROR") {
|
|
61
|
+
logger.error(line);
|
|
62
|
+
} else {
|
|
63
|
+
logger.warn(line);
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
66
|
return resolve(result.outputDirectory);
|
|
62
67
|
} catch (error) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { paintBadge, BADGES } from '@lunora/config';
|
|
2
|
+
|
|
3
|
+
const LUNORA_TAG = paintBadge(BADGES.lunora);
|
|
4
|
+
const lunoraLine = (message) => `${LUNORA_TAG} ${message}`;
|
|
5
|
+
const ADVISORY_BADGE = { ERROR: BADGES.error, INFO: BADGES.info, WARN: BADGES.warn };
|
|
6
|
+
const advisoryLine = (level, name, detail, remediation) => `${paintBadge(ADVISORY_BADGE[level])} ${name}: ${detail} — ${remediation}`;
|
|
7
|
+
|
|
8
|
+
export { LUNORA_TAG as L, advisoryLine as a, lunoraLine as l };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
2
|
import { validateWranglerProject, readWranglerJsonc } from '@lunora/config';
|
|
3
|
-
import { l as lunoraLine } from './log-
|
|
3
|
+
import { l as lunoraLine } from './log-BjO9EWah.mjs';
|
|
4
4
|
|
|
5
5
|
const isLocalImagePath = (image) => image.startsWith("./") || image.startsWith("../") || image.startsWith("/") || image.includes("Dockerfile");
|
|
6
6
|
const probeDocker = () => {
|
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.7",
|
|
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,14 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@cloudflare/vite-plugin": "1.42.0",
|
|
49
|
-
"@lunora/codegen": "1.0.0-alpha.
|
|
50
|
-
"@lunora/config": "1.0.0-alpha.
|
|
49
|
+
"@lunora/codegen": "1.0.0-alpha.5",
|
|
50
|
+
"@lunora/config": "1.0.0-alpha.7",
|
|
51
51
|
"@visulima/vite-overlay": "2.0.0-alpha.35",
|
|
52
52
|
"jsonc-parser": "^3.3.1",
|
|
53
53
|
"ts-morph": "^28.0.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@lunora/studio": "1.0.0-alpha.
|
|
56
|
+
"@lunora/studio": "1.0.0-alpha.4",
|
|
57
57
|
"vite": "^8.0.16"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|