@zenithbuild/core 1.0.1 → 1.0.4
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/zen-build.js +38 -38
- package/dist/zen-dev.js +38 -38
- package/dist/zen-preview.js +38 -38
- package/dist/zenith.js +38 -38
- package/package.json +4 -4
package/dist/zen-build.js
CHANGED
|
@@ -114,21 +114,21 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
114
114
|
module.exports.createColors = createColors;
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node
|
|
118
118
|
var require_compiler_native = __commonJS((exports, module) => {
|
|
119
119
|
module.exports = __require("./compiler-native-frej59m4.node");
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/index.js
|
|
123
123
|
var require_compiler_native2 = __commonJS((exports, module) => {
|
|
124
|
-
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native";
|
|
124
|
+
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native";
|
|
125
125
|
var { join } = __require("path");
|
|
126
126
|
var { statSync } = __require("fs");
|
|
127
127
|
var nativeBinding;
|
|
128
128
|
var nodePath = join(__dirname, "compiler-native.node");
|
|
129
129
|
var mtime = statSync(nodePath).mtimeMs;
|
|
130
130
|
try {
|
|
131
|
-
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native/compiler-native.node")];
|
|
131
|
+
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node")];
|
|
132
132
|
nativeBinding = require_compiler_native();
|
|
133
133
|
} catch (e) {
|
|
134
134
|
console.error("[Zenith Native] Failed to load native binding:", e.message);
|
|
@@ -137,7 +137,7 @@ var require_compiler_native2 = __commonJS((exports, module) => {
|
|
|
137
137
|
module.exports = nativeBinding;
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
//
|
|
140
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/componentDiscovery.js
|
|
141
141
|
var exports_componentDiscovery = {};
|
|
142
142
|
__export(exports_componentDiscovery, {
|
|
143
143
|
isComponentTag: () => isComponentTag,
|
|
@@ -179,7 +179,7 @@ var init_componentDiscovery = __esm(() => {
|
|
|
179
179
|
} catch (e2) {}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// node_modules/@zenithbuild/compiler/dist/transform/componentResolver.js
|
|
183
183
|
var exports_componentResolver = {};
|
|
184
184
|
__export(exports_componentResolver, {
|
|
185
185
|
resolveComponentsInIR: () => resolveComponentsInIR
|
|
@@ -416,7 +416,7 @@ function showServerPanel(options) {
|
|
|
416
416
|
`);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
//
|
|
419
|
+
// node_modules/@zenithbuild/compiler/dist/transform/transformTemplate.js
|
|
420
420
|
function transformTemplate(ir) {
|
|
421
421
|
let native;
|
|
422
422
|
try {
|
|
@@ -438,7 +438,7 @@ function transformTemplate(ir) {
|
|
|
438
438
|
throw new Error("[Zenith Native] Transformation bridge unavailable");
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
//
|
|
441
|
+
// node_modules/@zenithbuild/compiler/dist/finalize/finalizeOutput.js
|
|
442
442
|
var native;
|
|
443
443
|
try {
|
|
444
444
|
try {
|
|
@@ -486,7 +486,7 @@ ${errorMessage}`);
|
|
|
486
486
|
return output;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
//
|
|
489
|
+
// node_modules/@zenithbuild/compiler/dist/errors/compilerError.js
|
|
490
490
|
class CompilerError extends Error {
|
|
491
491
|
file;
|
|
492
492
|
line;
|
|
@@ -528,7 +528,7 @@ class InvariantError extends CompilerError {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// node_modules/@zenithbuild/compiler/dist/validate/invariants.js
|
|
532
532
|
var native2;
|
|
533
533
|
try {
|
|
534
534
|
try {
|
|
@@ -558,7 +558,7 @@ function validateIr(ir) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
//
|
|
561
|
+
// node_modules/@zenithbuild/compiler/dist/parseZenFile.js
|
|
562
562
|
import { readFileSync } from "fs";
|
|
563
563
|
var native3;
|
|
564
564
|
try {
|
|
@@ -599,7 +599,7 @@ function parseZenFile(filePath, sourceInput) {
|
|
|
599
599
|
throw new Error(`[Zenith Native] Parser bridge unavailable - cannot compile ${filePath}`);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
//
|
|
602
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/layouts.js
|
|
603
603
|
var native4;
|
|
604
604
|
try {
|
|
605
605
|
try {
|
|
@@ -632,7 +632,7 @@ function discoverLayouts(layoutsDir) {
|
|
|
632
632
|
}
|
|
633
633
|
return new Map;
|
|
634
634
|
}
|
|
635
|
-
//
|
|
635
|
+
// node_modules/@zenithbuild/compiler/dist/transform/layoutProcessor.js
|
|
636
636
|
var native5;
|
|
637
637
|
try {
|
|
638
638
|
try {
|
|
@@ -657,7 +657,7 @@ function processLayout(source, layout, props = {}) {
|
|
|
657
657
|
}
|
|
658
658
|
return source;
|
|
659
659
|
}
|
|
660
|
-
//
|
|
660
|
+
// node_modules/rolldown/dist/shared/binding-C-UNREnT.mjs
|
|
661
661
|
import { createRequire } from "module";
|
|
662
662
|
var __create2 = Object.create;
|
|
663
663
|
var __defProp2 = Object.defineProperty;
|
|
@@ -1289,7 +1289,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
1289
1289
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
|
-
//
|
|
1292
|
+
// node_modules/rolldown/dist/shared/logs-NH298mHo.mjs
|
|
1293
1293
|
function spaces(index) {
|
|
1294
1294
|
let result = "";
|
|
1295
1295
|
while (index--)
|
|
@@ -1456,7 +1456,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
-
//
|
|
1459
|
+
// node_modules/rolldown/dist/shared/normalize-string-or-regex-Dq50a7l9.mjs
|
|
1460
1460
|
var import_binding = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
1461
1461
|
var BuiltinPlugin = class {
|
|
1462
1462
|
enforce;
|
|
@@ -1494,7 +1494,7 @@ function isReadonlyArray(input) {
|
|
|
1494
1494
|
return Array.isArray(input);
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
//
|
|
1497
|
+
// node_modules/rolldown/dist/shared/misc-CCZIsXVO.mjs
|
|
1498
1498
|
function arraify(value) {
|
|
1499
1499
|
return Array.isArray(value) ? value : [value];
|
|
1500
1500
|
}
|
|
@@ -1513,7 +1513,7 @@ function unsupported(info3) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
function noop(..._args) {}
|
|
1515
1515
|
|
|
1516
|
-
//
|
|
1516
|
+
// node_modules/rolldown/dist/shared/parse-ast-index-B6LAhWD8.mjs
|
|
1517
1517
|
function wrap$1(result) {
|
|
1518
1518
|
let program, module, comments, errors;
|
|
1519
1519
|
return {
|
|
@@ -1601,10 +1601,10 @@ function parseAst(sourceText, options, filename) {
|
|
|
1601
1601
|
}), filename, sourceText);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
//
|
|
1604
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1605
1605
|
import path2 from "path";
|
|
1606
1606
|
|
|
1607
|
-
//
|
|
1607
|
+
// node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
1608
1608
|
class And {
|
|
1609
1609
|
kind;
|
|
1610
1610
|
args;
|
|
@@ -1695,7 +1695,7 @@ function include(expr) {
|
|
|
1695
1695
|
function exclude(expr) {
|
|
1696
1696
|
return new Exclude(expr);
|
|
1697
1697
|
}
|
|
1698
|
-
//
|
|
1698
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1699
1699
|
import fsp from "fs/promises";
|
|
1700
1700
|
var version = "1.0.0-rc.1";
|
|
1701
1701
|
var VERSION = version;
|
|
@@ -3917,7 +3917,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3917
3917
|
};
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
|
-
//
|
|
3920
|
+
// node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs
|
|
3921
3921
|
import { Worker } from "worker_threads";
|
|
3922
3922
|
import path3 from "path";
|
|
3923
3923
|
import { styleText } from "util";
|
|
@@ -6043,7 +6043,7 @@ var RolldownBuild = class RolldownBuild2 {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
};
|
|
6045
6045
|
|
|
6046
|
-
//
|
|
6046
|
+
// node_modules/rolldown/dist/shared/watch-B2WRkpw2.mjs
|
|
6047
6047
|
var signals = [];
|
|
6048
6048
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6049
6049
|
if (process.platform !== "win32")
|
|
@@ -6231,13 +6231,13 @@ function onExit(...args2) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
var import_binding5 = /* @__PURE__ */ __toESM2(require_binding());
|
|
6233
6233
|
|
|
6234
|
-
//
|
|
6234
|
+
// node_modules/rolldown/dist/shared/rolldown-CIC_OHw3.mjs
|
|
6235
6235
|
var rolldown = async (input) => {
|
|
6236
6236
|
validateOption("input", input);
|
|
6237
6237
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6238
6238
|
};
|
|
6239
6239
|
|
|
6240
|
-
//
|
|
6240
|
+
// node_modules/rolldown/dist/index.mjs
|
|
6241
6241
|
import { isMainThread } from "worker_threads";
|
|
6242
6242
|
var import_binding6 = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
6243
6243
|
if (isMainThread) {
|
|
@@ -6248,7 +6248,7 @@ if (isMainThread) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
var BindingMagicString = import_binding6.BindingMagicString;
|
|
6250
6250
|
|
|
6251
|
-
//
|
|
6251
|
+
// node_modules/@zenithbuild/compiler/dist/bundler.js
|
|
6252
6252
|
async function bundlePageScript(plan) {
|
|
6253
6253
|
const VIRTUAL_ENTRY = "\x00zenith:entry";
|
|
6254
6254
|
const virtualModules = new Map;
|
|
@@ -6292,21 +6292,21 @@ async function bundlePageScript(plan) {
|
|
|
6292
6292
|
}
|
|
6293
6293
|
return output[0].code;
|
|
6294
6294
|
}
|
|
6295
|
-
//
|
|
6295
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
6296
6296
|
import fs5 from "fs";
|
|
6297
6297
|
import path8 from "path";
|
|
6298
6298
|
|
|
6299
|
-
//
|
|
6299
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6300
6300
|
import fs2 from "fs";
|
|
6301
6301
|
import path4 from "path";
|
|
6302
6302
|
|
|
6303
|
-
//
|
|
6303
|
+
// node_modules/@zenithbuild/router/index.js
|
|
6304
6304
|
import { createRequire as createRequire2 } from "module";
|
|
6305
6305
|
var require2 = createRequire2(import.meta.url);
|
|
6306
6306
|
var native6 = require2("./zenith-router.node");
|
|
6307
6307
|
var { generateRouteManifestNative, renderRouteNative, resolveRouteNative, generateRuntimeRouterNative, SegmentType, routerBridge } = native6;
|
|
6308
6308
|
|
|
6309
|
-
//
|
|
6309
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6310
6310
|
var SEGMENT_SCORES = {
|
|
6311
6311
|
[SegmentType.Static]: 10,
|
|
6312
6312
|
[SegmentType.Dynamic]: 5,
|
|
@@ -6435,7 +6435,7 @@ function generateRouteDefinition(filePath, pagesDir) {
|
|
|
6435
6435
|
};
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
-
//
|
|
6438
|
+
// node_modules/@zenithbuild/compiler/dist/build-analyzer.js
|
|
6439
6439
|
function analyzePageSource(source) {
|
|
6440
6440
|
const scriptMatch = source.match(/<script[^>]*>([\s\S]*?)<\/script>/i);
|
|
6441
6441
|
const scriptContent = scriptMatch?.[1] || "";
|
|
@@ -6493,7 +6493,7 @@ function getBuildOutputType(analysis) {
|
|
|
6493
6493
|
return "static";
|
|
6494
6494
|
}
|
|
6495
6495
|
|
|
6496
|
-
//
|
|
6496
|
+
// node_modules/@zenithbuild/compiler/dist/runtime/bundle-generator.js
|
|
6497
6497
|
import { readFileSync as readFileSync2, existsSync } from "fs";
|
|
6498
6498
|
import path5 from "path";
|
|
6499
6499
|
function generateBundleJS(pluginData) {
|
|
@@ -7720,7 +7720,7 @@ ${lifecycleJS ? ` // ============================================
|
|
|
7720
7720
|
`;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
-
//
|
|
7723
|
+
// node_modules/@zenithbuild/compiler/dist/css/index.js
|
|
7724
7724
|
import { spawn, spawnSync } from "child_process";
|
|
7725
7725
|
import path6 from "path";
|
|
7726
7726
|
import fs3 from "fs";
|
|
@@ -7865,7 +7865,7 @@ function resolveGlobalsCss(projectRoot) {
|
|
|
7865
7865
|
return null;
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
|
-
//
|
|
7868
|
+
// node_modules/@zenithbuild/compiler/dist/core/config/loader.js
|
|
7869
7869
|
import fs4 from "fs";
|
|
7870
7870
|
import path7 from "path";
|
|
7871
7871
|
async function loadZenithConfig(projectRoot) {
|
|
@@ -7899,7 +7899,7 @@ async function loadZenithConfig(projectRoot) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
-
//
|
|
7902
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/registry.js
|
|
7903
7903
|
var pluginDataStore = {};
|
|
7904
7904
|
function getPluginDataByNamespace(namespace) {
|
|
7905
7905
|
return pluginDataStore[namespace] || [];
|
|
@@ -7950,7 +7950,7 @@ function createPluginContext(projectRoot) {
|
|
|
7950
7950
|
};
|
|
7951
7951
|
}
|
|
7952
7952
|
|
|
7953
|
-
//
|
|
7953
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/bridge.js
|
|
7954
7954
|
var hookRegistry = new Map;
|
|
7955
7955
|
function registerHook(hook, handler) {
|
|
7956
7956
|
if (!hookRegistry.has(hook)) {
|
|
@@ -7999,7 +7999,7 @@ function createBridgeAPI() {
|
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
|
|
8002
|
-
//
|
|
8002
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
8003
8003
|
async function compilePage(pagePath, pagesDir, baseDir = process.cwd()) {
|
|
8004
8004
|
const source = fs5.readFileSync(pagePath, "utf-8");
|
|
8005
8005
|
const analysis = analyzePageSource(source);
|
|
@@ -8289,7 +8289,7 @@ async function buildSSG(options) {
|
|
|
8289
8289
|
console.log(` ${page.routePath.padEnd(20)} \u2192 ${page.outputDir}/index.html (${type})`);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
//
|
|
8292
|
+
// node_modules/@zenithbuild/compiler/dist/index.js
|
|
8293
8293
|
async function compileZenSource(source, filePath, options) {
|
|
8294
8294
|
let ir = parseZenFile(filePath, source);
|
|
8295
8295
|
if (options?.componentsDir) {
|
package/dist/zen-dev.js
CHANGED
|
@@ -114,21 +114,21 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
114
114
|
module.exports.createColors = createColors;
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node
|
|
118
118
|
var require_compiler_native = __commonJS((exports, module) => {
|
|
119
119
|
module.exports = __require("./compiler-native-frej59m4.node");
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/index.js
|
|
123
123
|
var require_compiler_native2 = __commonJS((exports, module) => {
|
|
124
|
-
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native";
|
|
124
|
+
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native";
|
|
125
125
|
var { join } = __require("path");
|
|
126
126
|
var { statSync } = __require("fs");
|
|
127
127
|
var nativeBinding;
|
|
128
128
|
var nodePath = join(__dirname, "compiler-native.node");
|
|
129
129
|
var mtime = statSync(nodePath).mtimeMs;
|
|
130
130
|
try {
|
|
131
|
-
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native/compiler-native.node")];
|
|
131
|
+
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node")];
|
|
132
132
|
nativeBinding = require_compiler_native();
|
|
133
133
|
} catch (e) {
|
|
134
134
|
console.error("[Zenith Native] Failed to load native binding:", e.message);
|
|
@@ -137,7 +137,7 @@ var require_compiler_native2 = __commonJS((exports, module) => {
|
|
|
137
137
|
module.exports = nativeBinding;
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
//
|
|
140
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/componentDiscovery.js
|
|
141
141
|
var exports_componentDiscovery = {};
|
|
142
142
|
__export(exports_componentDiscovery, {
|
|
143
143
|
isComponentTag: () => isComponentTag,
|
|
@@ -179,7 +179,7 @@ var init_componentDiscovery = __esm(() => {
|
|
|
179
179
|
} catch (e2) {}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// node_modules/@zenithbuild/compiler/dist/transform/componentResolver.js
|
|
183
183
|
var exports_componentResolver = {};
|
|
184
184
|
__export(exports_componentResolver, {
|
|
185
185
|
resolveComponentsInIR: () => resolveComponentsInIR
|
|
@@ -416,7 +416,7 @@ function showServerPanel(options) {
|
|
|
416
416
|
`);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
//
|
|
419
|
+
// node_modules/@zenithbuild/compiler/dist/transform/transformTemplate.js
|
|
420
420
|
function transformTemplate(ir) {
|
|
421
421
|
let native;
|
|
422
422
|
try {
|
|
@@ -438,7 +438,7 @@ function transformTemplate(ir) {
|
|
|
438
438
|
throw new Error("[Zenith Native] Transformation bridge unavailable");
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
//
|
|
441
|
+
// node_modules/@zenithbuild/compiler/dist/finalize/finalizeOutput.js
|
|
442
442
|
var native;
|
|
443
443
|
try {
|
|
444
444
|
try {
|
|
@@ -486,7 +486,7 @@ ${errorMessage}`);
|
|
|
486
486
|
return output;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
//
|
|
489
|
+
// node_modules/@zenithbuild/compiler/dist/errors/compilerError.js
|
|
490
490
|
class CompilerError extends Error {
|
|
491
491
|
file;
|
|
492
492
|
line;
|
|
@@ -528,7 +528,7 @@ class InvariantError extends CompilerError {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// node_modules/@zenithbuild/compiler/dist/validate/invariants.js
|
|
532
532
|
var native2;
|
|
533
533
|
try {
|
|
534
534
|
try {
|
|
@@ -558,7 +558,7 @@ function validateIr(ir) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
//
|
|
561
|
+
// node_modules/@zenithbuild/compiler/dist/parseZenFile.js
|
|
562
562
|
import { readFileSync } from "fs";
|
|
563
563
|
var native3;
|
|
564
564
|
try {
|
|
@@ -599,7 +599,7 @@ function parseZenFile(filePath, sourceInput) {
|
|
|
599
599
|
throw new Error(`[Zenith Native] Parser bridge unavailable - cannot compile ${filePath}`);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
//
|
|
602
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/layouts.js
|
|
603
603
|
var native4;
|
|
604
604
|
try {
|
|
605
605
|
try {
|
|
@@ -632,7 +632,7 @@ function discoverLayouts(layoutsDir) {
|
|
|
632
632
|
}
|
|
633
633
|
return new Map;
|
|
634
634
|
}
|
|
635
|
-
//
|
|
635
|
+
// node_modules/@zenithbuild/compiler/dist/transform/layoutProcessor.js
|
|
636
636
|
var native5;
|
|
637
637
|
try {
|
|
638
638
|
try {
|
|
@@ -657,7 +657,7 @@ function processLayout(source, layout, props = {}) {
|
|
|
657
657
|
}
|
|
658
658
|
return source;
|
|
659
659
|
}
|
|
660
|
-
//
|
|
660
|
+
// node_modules/rolldown/dist/shared/binding-C-UNREnT.mjs
|
|
661
661
|
import { createRequire } from "module";
|
|
662
662
|
var __create2 = Object.create;
|
|
663
663
|
var __defProp2 = Object.defineProperty;
|
|
@@ -1289,7 +1289,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
1289
1289
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
|
-
//
|
|
1292
|
+
// node_modules/rolldown/dist/shared/logs-NH298mHo.mjs
|
|
1293
1293
|
function spaces(index) {
|
|
1294
1294
|
let result = "";
|
|
1295
1295
|
while (index--)
|
|
@@ -1456,7 +1456,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
-
//
|
|
1459
|
+
// node_modules/rolldown/dist/shared/normalize-string-or-regex-Dq50a7l9.mjs
|
|
1460
1460
|
var import_binding = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
1461
1461
|
var BuiltinPlugin = class {
|
|
1462
1462
|
enforce;
|
|
@@ -1494,7 +1494,7 @@ function isReadonlyArray(input) {
|
|
|
1494
1494
|
return Array.isArray(input);
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
//
|
|
1497
|
+
// node_modules/rolldown/dist/shared/misc-CCZIsXVO.mjs
|
|
1498
1498
|
function arraify(value) {
|
|
1499
1499
|
return Array.isArray(value) ? value : [value];
|
|
1500
1500
|
}
|
|
@@ -1513,7 +1513,7 @@ function unsupported(info3) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
function noop(..._args) {}
|
|
1515
1515
|
|
|
1516
|
-
//
|
|
1516
|
+
// node_modules/rolldown/dist/shared/parse-ast-index-B6LAhWD8.mjs
|
|
1517
1517
|
function wrap$1(result) {
|
|
1518
1518
|
let program, module, comments, errors;
|
|
1519
1519
|
return {
|
|
@@ -1601,10 +1601,10 @@ function parseAst(sourceText, options, filename) {
|
|
|
1601
1601
|
}), filename, sourceText);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
//
|
|
1604
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1605
1605
|
import path2 from "path";
|
|
1606
1606
|
|
|
1607
|
-
//
|
|
1607
|
+
// node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
1608
1608
|
class And {
|
|
1609
1609
|
kind;
|
|
1610
1610
|
args;
|
|
@@ -1695,7 +1695,7 @@ function include(expr) {
|
|
|
1695
1695
|
function exclude(expr) {
|
|
1696
1696
|
return new Exclude(expr);
|
|
1697
1697
|
}
|
|
1698
|
-
//
|
|
1698
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1699
1699
|
import fsp from "fs/promises";
|
|
1700
1700
|
var version = "1.0.0-rc.1";
|
|
1701
1701
|
var VERSION = version;
|
|
@@ -3917,7 +3917,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3917
3917
|
};
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
|
-
//
|
|
3920
|
+
// node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs
|
|
3921
3921
|
import { Worker } from "worker_threads";
|
|
3922
3922
|
import path3 from "path";
|
|
3923
3923
|
import { styleText } from "util";
|
|
@@ -6043,7 +6043,7 @@ var RolldownBuild = class RolldownBuild2 {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
};
|
|
6045
6045
|
|
|
6046
|
-
//
|
|
6046
|
+
// node_modules/rolldown/dist/shared/watch-B2WRkpw2.mjs
|
|
6047
6047
|
var signals = [];
|
|
6048
6048
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6049
6049
|
if (process.platform !== "win32")
|
|
@@ -6231,13 +6231,13 @@ function onExit(...args2) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
var import_binding5 = /* @__PURE__ */ __toESM2(require_binding());
|
|
6233
6233
|
|
|
6234
|
-
//
|
|
6234
|
+
// node_modules/rolldown/dist/shared/rolldown-CIC_OHw3.mjs
|
|
6235
6235
|
var rolldown = async (input) => {
|
|
6236
6236
|
validateOption("input", input);
|
|
6237
6237
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6238
6238
|
};
|
|
6239
6239
|
|
|
6240
|
-
//
|
|
6240
|
+
// node_modules/rolldown/dist/index.mjs
|
|
6241
6241
|
import { isMainThread } from "worker_threads";
|
|
6242
6242
|
var import_binding6 = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
6243
6243
|
if (isMainThread) {
|
|
@@ -6248,7 +6248,7 @@ if (isMainThread) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
var BindingMagicString = import_binding6.BindingMagicString;
|
|
6250
6250
|
|
|
6251
|
-
//
|
|
6251
|
+
// node_modules/@zenithbuild/compiler/dist/bundler.js
|
|
6252
6252
|
async function bundlePageScript(plan) {
|
|
6253
6253
|
const VIRTUAL_ENTRY = "\x00zenith:entry";
|
|
6254
6254
|
const virtualModules = new Map;
|
|
@@ -6292,21 +6292,21 @@ async function bundlePageScript(plan) {
|
|
|
6292
6292
|
}
|
|
6293
6293
|
return output[0].code;
|
|
6294
6294
|
}
|
|
6295
|
-
//
|
|
6295
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
6296
6296
|
import fs5 from "fs";
|
|
6297
6297
|
import path8 from "path";
|
|
6298
6298
|
|
|
6299
|
-
//
|
|
6299
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6300
6300
|
import fs2 from "fs";
|
|
6301
6301
|
import path4 from "path";
|
|
6302
6302
|
|
|
6303
|
-
//
|
|
6303
|
+
// node_modules/@zenithbuild/router/index.js
|
|
6304
6304
|
import { createRequire as createRequire2 } from "module";
|
|
6305
6305
|
var require2 = createRequire2(import.meta.url);
|
|
6306
6306
|
var native6 = require2("./zenith-router.node");
|
|
6307
6307
|
var { generateRouteManifestNative, renderRouteNative, resolveRouteNative, generateRuntimeRouterNative, SegmentType, routerBridge } = native6;
|
|
6308
6308
|
|
|
6309
|
-
//
|
|
6309
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6310
6310
|
var SEGMENT_SCORES = {
|
|
6311
6311
|
[SegmentType.Static]: 10,
|
|
6312
6312
|
[SegmentType.Dynamic]: 5,
|
|
@@ -6435,7 +6435,7 @@ function generateRouteDefinition(filePath, pagesDir) {
|
|
|
6435
6435
|
};
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
-
//
|
|
6438
|
+
// node_modules/@zenithbuild/compiler/dist/build-analyzer.js
|
|
6439
6439
|
function analyzePageSource(source) {
|
|
6440
6440
|
const scriptMatch = source.match(/<script[^>]*>([\s\S]*?)<\/script>/i);
|
|
6441
6441
|
const scriptContent = scriptMatch?.[1] || "";
|
|
@@ -6493,7 +6493,7 @@ function getBuildOutputType(analysis) {
|
|
|
6493
6493
|
return "static";
|
|
6494
6494
|
}
|
|
6495
6495
|
|
|
6496
|
-
//
|
|
6496
|
+
// node_modules/@zenithbuild/compiler/dist/runtime/bundle-generator.js
|
|
6497
6497
|
import { readFileSync as readFileSync2, existsSync } from "fs";
|
|
6498
6498
|
import path5 from "path";
|
|
6499
6499
|
function generateBundleJS(pluginData) {
|
|
@@ -7720,7 +7720,7 @@ ${lifecycleJS ? ` // ============================================
|
|
|
7720
7720
|
`;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
-
//
|
|
7723
|
+
// node_modules/@zenithbuild/compiler/dist/css/index.js
|
|
7724
7724
|
import { spawn, spawnSync } from "child_process";
|
|
7725
7725
|
import path6 from "path";
|
|
7726
7726
|
import fs3 from "fs";
|
|
@@ -7865,7 +7865,7 @@ function resolveGlobalsCss(projectRoot) {
|
|
|
7865
7865
|
return null;
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
|
-
//
|
|
7868
|
+
// node_modules/@zenithbuild/compiler/dist/core/config/loader.js
|
|
7869
7869
|
import fs4 from "fs";
|
|
7870
7870
|
import path7 from "path";
|
|
7871
7871
|
async function loadZenithConfig(projectRoot) {
|
|
@@ -7899,7 +7899,7 @@ async function loadZenithConfig(projectRoot) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
-
//
|
|
7902
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/registry.js
|
|
7903
7903
|
var pluginDataStore = {};
|
|
7904
7904
|
function getPluginDataByNamespace(namespace) {
|
|
7905
7905
|
return pluginDataStore[namespace] || [];
|
|
@@ -7950,7 +7950,7 @@ function createPluginContext(projectRoot) {
|
|
|
7950
7950
|
};
|
|
7951
7951
|
}
|
|
7952
7952
|
|
|
7953
|
-
//
|
|
7953
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/bridge.js
|
|
7954
7954
|
var hookRegistry = new Map;
|
|
7955
7955
|
function registerHook(hook, handler) {
|
|
7956
7956
|
if (!hookRegistry.has(hook)) {
|
|
@@ -7999,7 +7999,7 @@ function createBridgeAPI() {
|
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
|
|
8002
|
-
//
|
|
8002
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
8003
8003
|
async function compilePage(pagePath, pagesDir, baseDir = process.cwd()) {
|
|
8004
8004
|
const source = fs5.readFileSync(pagePath, "utf-8");
|
|
8005
8005
|
const analysis = analyzePageSource(source);
|
|
@@ -8289,7 +8289,7 @@ async function buildSSG(options) {
|
|
|
8289
8289
|
console.log(` ${page.routePath.padEnd(20)} \u2192 ${page.outputDir}/index.html (${type})`);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
//
|
|
8292
|
+
// node_modules/@zenithbuild/compiler/dist/index.js
|
|
8293
8293
|
async function compileZenSource(source, filePath, options) {
|
|
8294
8294
|
let ir = parseZenFile(filePath, source);
|
|
8295
8295
|
if (options?.componentsDir) {
|
package/dist/zen-preview.js
CHANGED
|
@@ -114,21 +114,21 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
114
114
|
module.exports.createColors = createColors;
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node
|
|
118
118
|
var require_compiler_native = __commonJS((exports, module) => {
|
|
119
119
|
module.exports = __require("./compiler-native-frej59m4.node");
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/index.js
|
|
123
123
|
var require_compiler_native2 = __commonJS((exports, module) => {
|
|
124
|
-
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native";
|
|
124
|
+
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native";
|
|
125
125
|
var { join } = __require("path");
|
|
126
126
|
var { statSync } = __require("fs");
|
|
127
127
|
var nativeBinding;
|
|
128
128
|
var nodePath = join(__dirname, "compiler-native.node");
|
|
129
129
|
var mtime = statSync(nodePath).mtimeMs;
|
|
130
130
|
try {
|
|
131
|
-
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native/compiler-native.node")];
|
|
131
|
+
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node")];
|
|
132
132
|
nativeBinding = require_compiler_native();
|
|
133
133
|
} catch (e) {
|
|
134
134
|
console.error("[Zenith Native] Failed to load native binding:", e.message);
|
|
@@ -137,7 +137,7 @@ var require_compiler_native2 = __commonJS((exports, module) => {
|
|
|
137
137
|
module.exports = nativeBinding;
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
//
|
|
140
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/componentDiscovery.js
|
|
141
141
|
var exports_componentDiscovery = {};
|
|
142
142
|
__export(exports_componentDiscovery, {
|
|
143
143
|
isComponentTag: () => isComponentTag,
|
|
@@ -179,7 +179,7 @@ var init_componentDiscovery = __esm(() => {
|
|
|
179
179
|
} catch (e2) {}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// node_modules/@zenithbuild/compiler/dist/transform/componentResolver.js
|
|
183
183
|
var exports_componentResolver = {};
|
|
184
184
|
__export(exports_componentResolver, {
|
|
185
185
|
resolveComponentsInIR: () => resolveComponentsInIR
|
|
@@ -416,7 +416,7 @@ function showServerPanel(options) {
|
|
|
416
416
|
`);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
//
|
|
419
|
+
// node_modules/@zenithbuild/compiler/dist/transform/transformTemplate.js
|
|
420
420
|
function transformTemplate(ir) {
|
|
421
421
|
let native;
|
|
422
422
|
try {
|
|
@@ -438,7 +438,7 @@ function transformTemplate(ir) {
|
|
|
438
438
|
throw new Error("[Zenith Native] Transformation bridge unavailable");
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
//
|
|
441
|
+
// node_modules/@zenithbuild/compiler/dist/finalize/finalizeOutput.js
|
|
442
442
|
var native;
|
|
443
443
|
try {
|
|
444
444
|
try {
|
|
@@ -486,7 +486,7 @@ ${errorMessage}`);
|
|
|
486
486
|
return output;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
//
|
|
489
|
+
// node_modules/@zenithbuild/compiler/dist/errors/compilerError.js
|
|
490
490
|
class CompilerError extends Error {
|
|
491
491
|
file;
|
|
492
492
|
line;
|
|
@@ -528,7 +528,7 @@ class InvariantError extends CompilerError {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// node_modules/@zenithbuild/compiler/dist/validate/invariants.js
|
|
532
532
|
var native2;
|
|
533
533
|
try {
|
|
534
534
|
try {
|
|
@@ -558,7 +558,7 @@ function validateIr(ir) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
//
|
|
561
|
+
// node_modules/@zenithbuild/compiler/dist/parseZenFile.js
|
|
562
562
|
import { readFileSync } from "fs";
|
|
563
563
|
var native3;
|
|
564
564
|
try {
|
|
@@ -599,7 +599,7 @@ function parseZenFile(filePath, sourceInput) {
|
|
|
599
599
|
throw new Error(`[Zenith Native] Parser bridge unavailable - cannot compile ${filePath}`);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
//
|
|
602
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/layouts.js
|
|
603
603
|
var native4;
|
|
604
604
|
try {
|
|
605
605
|
try {
|
|
@@ -632,7 +632,7 @@ function discoverLayouts(layoutsDir) {
|
|
|
632
632
|
}
|
|
633
633
|
return new Map;
|
|
634
634
|
}
|
|
635
|
-
//
|
|
635
|
+
// node_modules/@zenithbuild/compiler/dist/transform/layoutProcessor.js
|
|
636
636
|
var native5;
|
|
637
637
|
try {
|
|
638
638
|
try {
|
|
@@ -657,7 +657,7 @@ function processLayout(source, layout, props = {}) {
|
|
|
657
657
|
}
|
|
658
658
|
return source;
|
|
659
659
|
}
|
|
660
|
-
//
|
|
660
|
+
// node_modules/rolldown/dist/shared/binding-C-UNREnT.mjs
|
|
661
661
|
import { createRequire } from "module";
|
|
662
662
|
var __create2 = Object.create;
|
|
663
663
|
var __defProp2 = Object.defineProperty;
|
|
@@ -1289,7 +1289,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
1289
1289
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
|
-
//
|
|
1292
|
+
// node_modules/rolldown/dist/shared/logs-NH298mHo.mjs
|
|
1293
1293
|
function spaces(index) {
|
|
1294
1294
|
let result = "";
|
|
1295
1295
|
while (index--)
|
|
@@ -1456,7 +1456,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
-
//
|
|
1459
|
+
// node_modules/rolldown/dist/shared/normalize-string-or-regex-Dq50a7l9.mjs
|
|
1460
1460
|
var import_binding = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
1461
1461
|
var BuiltinPlugin = class {
|
|
1462
1462
|
enforce;
|
|
@@ -1494,7 +1494,7 @@ function isReadonlyArray(input) {
|
|
|
1494
1494
|
return Array.isArray(input);
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
//
|
|
1497
|
+
// node_modules/rolldown/dist/shared/misc-CCZIsXVO.mjs
|
|
1498
1498
|
function arraify(value) {
|
|
1499
1499
|
return Array.isArray(value) ? value : [value];
|
|
1500
1500
|
}
|
|
@@ -1513,7 +1513,7 @@ function unsupported(info3) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
function noop(..._args) {}
|
|
1515
1515
|
|
|
1516
|
-
//
|
|
1516
|
+
// node_modules/rolldown/dist/shared/parse-ast-index-B6LAhWD8.mjs
|
|
1517
1517
|
function wrap$1(result) {
|
|
1518
1518
|
let program, module, comments, errors;
|
|
1519
1519
|
return {
|
|
@@ -1601,10 +1601,10 @@ function parseAst(sourceText, options, filename) {
|
|
|
1601
1601
|
}), filename, sourceText);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
//
|
|
1604
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1605
1605
|
import path2 from "path";
|
|
1606
1606
|
|
|
1607
|
-
//
|
|
1607
|
+
// node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
1608
1608
|
class And {
|
|
1609
1609
|
kind;
|
|
1610
1610
|
args;
|
|
@@ -1695,7 +1695,7 @@ function include(expr) {
|
|
|
1695
1695
|
function exclude(expr) {
|
|
1696
1696
|
return new Exclude(expr);
|
|
1697
1697
|
}
|
|
1698
|
-
//
|
|
1698
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1699
1699
|
import fsp from "fs/promises";
|
|
1700
1700
|
var version = "1.0.0-rc.1";
|
|
1701
1701
|
var VERSION = version;
|
|
@@ -3917,7 +3917,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3917
3917
|
};
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
|
-
//
|
|
3920
|
+
// node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs
|
|
3921
3921
|
import { Worker } from "worker_threads";
|
|
3922
3922
|
import path3 from "path";
|
|
3923
3923
|
import { styleText } from "util";
|
|
@@ -6043,7 +6043,7 @@ var RolldownBuild = class RolldownBuild2 {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
};
|
|
6045
6045
|
|
|
6046
|
-
//
|
|
6046
|
+
// node_modules/rolldown/dist/shared/watch-B2WRkpw2.mjs
|
|
6047
6047
|
var signals = [];
|
|
6048
6048
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6049
6049
|
if (process.platform !== "win32")
|
|
@@ -6231,13 +6231,13 @@ function onExit(...args2) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
var import_binding5 = /* @__PURE__ */ __toESM2(require_binding());
|
|
6233
6233
|
|
|
6234
|
-
//
|
|
6234
|
+
// node_modules/rolldown/dist/shared/rolldown-CIC_OHw3.mjs
|
|
6235
6235
|
var rolldown = async (input) => {
|
|
6236
6236
|
validateOption("input", input);
|
|
6237
6237
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6238
6238
|
};
|
|
6239
6239
|
|
|
6240
|
-
//
|
|
6240
|
+
// node_modules/rolldown/dist/index.mjs
|
|
6241
6241
|
import { isMainThread } from "worker_threads";
|
|
6242
6242
|
var import_binding6 = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
6243
6243
|
if (isMainThread) {
|
|
@@ -6248,7 +6248,7 @@ if (isMainThread) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
var BindingMagicString = import_binding6.BindingMagicString;
|
|
6250
6250
|
|
|
6251
|
-
//
|
|
6251
|
+
// node_modules/@zenithbuild/compiler/dist/bundler.js
|
|
6252
6252
|
async function bundlePageScript(plan) {
|
|
6253
6253
|
const VIRTUAL_ENTRY = "\x00zenith:entry";
|
|
6254
6254
|
const virtualModules = new Map;
|
|
@@ -6292,21 +6292,21 @@ async function bundlePageScript(plan) {
|
|
|
6292
6292
|
}
|
|
6293
6293
|
return output[0].code;
|
|
6294
6294
|
}
|
|
6295
|
-
//
|
|
6295
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
6296
6296
|
import fs5 from "fs";
|
|
6297
6297
|
import path8 from "path";
|
|
6298
6298
|
|
|
6299
|
-
//
|
|
6299
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6300
6300
|
import fs2 from "fs";
|
|
6301
6301
|
import path4 from "path";
|
|
6302
6302
|
|
|
6303
|
-
//
|
|
6303
|
+
// node_modules/@zenithbuild/router/index.js
|
|
6304
6304
|
import { createRequire as createRequire2 } from "module";
|
|
6305
6305
|
var require2 = createRequire2(import.meta.url);
|
|
6306
6306
|
var native6 = require2("./zenith-router.node");
|
|
6307
6307
|
var { generateRouteManifestNative, renderRouteNative, resolveRouteNative, generateRuntimeRouterNative, SegmentType, routerBridge } = native6;
|
|
6308
6308
|
|
|
6309
|
-
//
|
|
6309
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6310
6310
|
var SEGMENT_SCORES = {
|
|
6311
6311
|
[SegmentType.Static]: 10,
|
|
6312
6312
|
[SegmentType.Dynamic]: 5,
|
|
@@ -6435,7 +6435,7 @@ function generateRouteDefinition(filePath, pagesDir) {
|
|
|
6435
6435
|
};
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
-
//
|
|
6438
|
+
// node_modules/@zenithbuild/compiler/dist/build-analyzer.js
|
|
6439
6439
|
function analyzePageSource(source) {
|
|
6440
6440
|
const scriptMatch = source.match(/<script[^>]*>([\s\S]*?)<\/script>/i);
|
|
6441
6441
|
const scriptContent = scriptMatch?.[1] || "";
|
|
@@ -6493,7 +6493,7 @@ function getBuildOutputType(analysis) {
|
|
|
6493
6493
|
return "static";
|
|
6494
6494
|
}
|
|
6495
6495
|
|
|
6496
|
-
//
|
|
6496
|
+
// node_modules/@zenithbuild/compiler/dist/runtime/bundle-generator.js
|
|
6497
6497
|
import { readFileSync as readFileSync2, existsSync } from "fs";
|
|
6498
6498
|
import path5 from "path";
|
|
6499
6499
|
function generateBundleJS(pluginData) {
|
|
@@ -7720,7 +7720,7 @@ ${lifecycleJS ? ` // ============================================
|
|
|
7720
7720
|
`;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
-
//
|
|
7723
|
+
// node_modules/@zenithbuild/compiler/dist/css/index.js
|
|
7724
7724
|
import { spawn, spawnSync } from "child_process";
|
|
7725
7725
|
import path6 from "path";
|
|
7726
7726
|
import fs3 from "fs";
|
|
@@ -7865,7 +7865,7 @@ function resolveGlobalsCss(projectRoot) {
|
|
|
7865
7865
|
return null;
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
|
-
//
|
|
7868
|
+
// node_modules/@zenithbuild/compiler/dist/core/config/loader.js
|
|
7869
7869
|
import fs4 from "fs";
|
|
7870
7870
|
import path7 from "path";
|
|
7871
7871
|
async function loadZenithConfig(projectRoot) {
|
|
@@ -7899,7 +7899,7 @@ async function loadZenithConfig(projectRoot) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
-
//
|
|
7902
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/registry.js
|
|
7903
7903
|
var pluginDataStore = {};
|
|
7904
7904
|
function getPluginDataByNamespace(namespace) {
|
|
7905
7905
|
return pluginDataStore[namespace] || [];
|
|
@@ -7950,7 +7950,7 @@ function createPluginContext(projectRoot) {
|
|
|
7950
7950
|
};
|
|
7951
7951
|
}
|
|
7952
7952
|
|
|
7953
|
-
//
|
|
7953
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/bridge.js
|
|
7954
7954
|
var hookRegistry = new Map;
|
|
7955
7955
|
function registerHook(hook, handler) {
|
|
7956
7956
|
if (!hookRegistry.has(hook)) {
|
|
@@ -7999,7 +7999,7 @@ function createBridgeAPI() {
|
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
|
|
8002
|
-
//
|
|
8002
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
8003
8003
|
async function compilePage(pagePath, pagesDir, baseDir = process.cwd()) {
|
|
8004
8004
|
const source = fs5.readFileSync(pagePath, "utf-8");
|
|
8005
8005
|
const analysis = analyzePageSource(source);
|
|
@@ -8289,7 +8289,7 @@ async function buildSSG(options) {
|
|
|
8289
8289
|
console.log(` ${page.routePath.padEnd(20)} \u2192 ${page.outputDir}/index.html (${type})`);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
//
|
|
8292
|
+
// node_modules/@zenithbuild/compiler/dist/index.js
|
|
8293
8293
|
async function compileZenSource(source, filePath, options) {
|
|
8294
8294
|
let ir = parseZenFile(filePath, source);
|
|
8295
8295
|
if (options?.componentsDir) {
|
package/dist/zenith.js
CHANGED
|
@@ -114,21 +114,21 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
114
114
|
module.exports.createColors = createColors;
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
//
|
|
117
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node
|
|
118
118
|
var require_compiler_native = __commonJS((exports, module) => {
|
|
119
119
|
module.exports = __require("./compiler-native-frej59m4.node");
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
//
|
|
122
|
+
// node_modules/@zenithbuild/compiler/native/compiler-native/index.js
|
|
123
123
|
var require_compiler_native2 = __commonJS((exports, module) => {
|
|
124
|
-
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native";
|
|
124
|
+
var __dirname = "/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native";
|
|
125
125
|
var { join } = __require("path");
|
|
126
126
|
var { statSync } = __require("fs");
|
|
127
127
|
var nativeBinding;
|
|
128
128
|
var nodePath = join(__dirname, "compiler-native.node");
|
|
129
129
|
var mtime = statSync(nodePath).mtimeMs;
|
|
130
130
|
try {
|
|
131
|
-
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-compiler/native/compiler-native/compiler-native.node")];
|
|
131
|
+
delete __require.cache[__require.resolve("/Users/judahsullivan/Personal/zenith/zenith-core/node_modules/@zenithbuild/compiler/native/compiler-native/compiler-native.node")];
|
|
132
132
|
nativeBinding = require_compiler_native();
|
|
133
133
|
} catch (e) {
|
|
134
134
|
console.error("[Zenith Native] Failed to load native binding:", e.message);
|
|
@@ -137,7 +137,7 @@ var require_compiler_native2 = __commonJS((exports, module) => {
|
|
|
137
137
|
module.exports = nativeBinding;
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
//
|
|
140
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/componentDiscovery.js
|
|
141
141
|
var exports_componentDiscovery = {};
|
|
142
142
|
__export(exports_componentDiscovery, {
|
|
143
143
|
isComponentTag: () => isComponentTag,
|
|
@@ -179,7 +179,7 @@ var init_componentDiscovery = __esm(() => {
|
|
|
179
179
|
} catch (e2) {}
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//
|
|
182
|
+
// node_modules/@zenithbuild/compiler/dist/transform/componentResolver.js
|
|
183
183
|
var exports_componentResolver = {};
|
|
184
184
|
__export(exports_componentResolver, {
|
|
185
185
|
resolveComponentsInIR: () => resolveComponentsInIR
|
|
@@ -416,7 +416,7 @@ function showServerPanel(options) {
|
|
|
416
416
|
`);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
//
|
|
419
|
+
// node_modules/@zenithbuild/compiler/dist/transform/transformTemplate.js
|
|
420
420
|
function transformTemplate(ir) {
|
|
421
421
|
let native;
|
|
422
422
|
try {
|
|
@@ -438,7 +438,7 @@ function transformTemplate(ir) {
|
|
|
438
438
|
throw new Error("[Zenith Native] Transformation bridge unavailable");
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
//
|
|
441
|
+
// node_modules/@zenithbuild/compiler/dist/finalize/finalizeOutput.js
|
|
442
442
|
var native;
|
|
443
443
|
try {
|
|
444
444
|
try {
|
|
@@ -486,7 +486,7 @@ ${errorMessage}`);
|
|
|
486
486
|
return output;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
|
-
//
|
|
489
|
+
// node_modules/@zenithbuild/compiler/dist/errors/compilerError.js
|
|
490
490
|
class CompilerError extends Error {
|
|
491
491
|
file;
|
|
492
492
|
line;
|
|
@@ -528,7 +528,7 @@ class InvariantError extends CompilerError {
|
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
//
|
|
531
|
+
// node_modules/@zenithbuild/compiler/dist/validate/invariants.js
|
|
532
532
|
var native2;
|
|
533
533
|
try {
|
|
534
534
|
try {
|
|
@@ -558,7 +558,7 @@ function validateIr(ir) {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
//
|
|
561
|
+
// node_modules/@zenithbuild/compiler/dist/parseZenFile.js
|
|
562
562
|
import { readFileSync } from "fs";
|
|
563
563
|
var native3;
|
|
564
564
|
try {
|
|
@@ -599,7 +599,7 @@ function parseZenFile(filePath, sourceInput) {
|
|
|
599
599
|
throw new Error(`[Zenith Native] Parser bridge unavailable - cannot compile ${filePath}`);
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
-
//
|
|
602
|
+
// node_modules/@zenithbuild/compiler/dist/discovery/layouts.js
|
|
603
603
|
var native4;
|
|
604
604
|
try {
|
|
605
605
|
try {
|
|
@@ -632,7 +632,7 @@ function discoverLayouts(layoutsDir) {
|
|
|
632
632
|
}
|
|
633
633
|
return new Map;
|
|
634
634
|
}
|
|
635
|
-
//
|
|
635
|
+
// node_modules/@zenithbuild/compiler/dist/transform/layoutProcessor.js
|
|
636
636
|
var native5;
|
|
637
637
|
try {
|
|
638
638
|
try {
|
|
@@ -657,7 +657,7 @@ function processLayout(source, layout, props = {}) {
|
|
|
657
657
|
}
|
|
658
658
|
return source;
|
|
659
659
|
}
|
|
660
|
-
//
|
|
660
|
+
// node_modules/rolldown/dist/shared/binding-C-UNREnT.mjs
|
|
661
661
|
import { createRequire } from "module";
|
|
662
662
|
var __create2 = Object.create;
|
|
663
663
|
var __defProp2 = Object.defineProperty;
|
|
@@ -1289,7 +1289,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
1289
1289
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
1290
1290
|
});
|
|
1291
1291
|
|
|
1292
|
-
//
|
|
1292
|
+
// node_modules/rolldown/dist/shared/logs-NH298mHo.mjs
|
|
1293
1293
|
function spaces(index) {
|
|
1294
1294
|
let result = "";
|
|
1295
1295
|
while (index--)
|
|
@@ -1456,7 +1456,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
|
-
//
|
|
1459
|
+
// node_modules/rolldown/dist/shared/normalize-string-or-regex-Dq50a7l9.mjs
|
|
1460
1460
|
var import_binding = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
1461
1461
|
var BuiltinPlugin = class {
|
|
1462
1462
|
enforce;
|
|
@@ -1494,7 +1494,7 @@ function isReadonlyArray(input) {
|
|
|
1494
1494
|
return Array.isArray(input);
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
//
|
|
1497
|
+
// node_modules/rolldown/dist/shared/misc-CCZIsXVO.mjs
|
|
1498
1498
|
function arraify(value) {
|
|
1499
1499
|
return Array.isArray(value) ? value : [value];
|
|
1500
1500
|
}
|
|
@@ -1513,7 +1513,7 @@ function unsupported(info3) {
|
|
|
1513
1513
|
}
|
|
1514
1514
|
function noop(..._args) {}
|
|
1515
1515
|
|
|
1516
|
-
//
|
|
1516
|
+
// node_modules/rolldown/dist/shared/parse-ast-index-B6LAhWD8.mjs
|
|
1517
1517
|
function wrap$1(result) {
|
|
1518
1518
|
let program, module, comments, errors;
|
|
1519
1519
|
return {
|
|
@@ -1601,10 +1601,10 @@ function parseAst(sourceText, options, filename) {
|
|
|
1601
1601
|
}), filename, sourceText);
|
|
1602
1602
|
}
|
|
1603
1603
|
|
|
1604
|
-
//
|
|
1604
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1605
1605
|
import path2 from "path";
|
|
1606
1606
|
|
|
1607
|
-
//
|
|
1607
|
+
// node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
|
|
1608
1608
|
class And {
|
|
1609
1609
|
kind;
|
|
1610
1610
|
args;
|
|
@@ -1695,7 +1695,7 @@ function include(expr) {
|
|
|
1695
1695
|
function exclude(expr) {
|
|
1696
1696
|
return new Exclude(expr);
|
|
1697
1697
|
}
|
|
1698
|
-
//
|
|
1698
|
+
// node_modules/rolldown/dist/shared/bindingify-input-options-Cb-01HR1.mjs
|
|
1699
1699
|
import fsp from "fs/promises";
|
|
1700
1700
|
var version = "1.0.0-rc.1";
|
|
1701
1701
|
var VERSION = version;
|
|
@@ -3917,7 +3917,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
|
|
|
3917
3917
|
};
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
3920
|
-
//
|
|
3920
|
+
// node_modules/rolldown/dist/shared/rolldown-build-KB1YaNe-.mjs
|
|
3921
3921
|
import { Worker } from "worker_threads";
|
|
3922
3922
|
import path3 from "path";
|
|
3923
3923
|
import { styleText } from "util";
|
|
@@ -6043,7 +6043,7 @@ var RolldownBuild = class RolldownBuild2 {
|
|
|
6043
6043
|
}
|
|
6044
6044
|
};
|
|
6045
6045
|
|
|
6046
|
-
//
|
|
6046
|
+
// node_modules/rolldown/dist/shared/watch-B2WRkpw2.mjs
|
|
6047
6047
|
var signals = [];
|
|
6048
6048
|
signals.push("SIGHUP", "SIGINT", "SIGTERM");
|
|
6049
6049
|
if (process.platform !== "win32")
|
|
@@ -6231,13 +6231,13 @@ function onExit(...args2) {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
var import_binding5 = /* @__PURE__ */ __toESM2(require_binding());
|
|
6233
6233
|
|
|
6234
|
-
//
|
|
6234
|
+
// node_modules/rolldown/dist/shared/rolldown-CIC_OHw3.mjs
|
|
6235
6235
|
var rolldown = async (input) => {
|
|
6236
6236
|
validateOption("input", input);
|
|
6237
6237
|
return new RolldownBuild(await PluginDriver.callOptionsHook(input));
|
|
6238
6238
|
};
|
|
6239
6239
|
|
|
6240
|
-
//
|
|
6240
|
+
// node_modules/rolldown/dist/index.mjs
|
|
6241
6241
|
import { isMainThread } from "worker_threads";
|
|
6242
6242
|
var import_binding6 = /* @__PURE__ */ __toESM2(require_binding(), 1);
|
|
6243
6243
|
if (isMainThread) {
|
|
@@ -6248,7 +6248,7 @@ if (isMainThread) {
|
|
|
6248
6248
|
}
|
|
6249
6249
|
var BindingMagicString = import_binding6.BindingMagicString;
|
|
6250
6250
|
|
|
6251
|
-
//
|
|
6251
|
+
// node_modules/@zenithbuild/compiler/dist/bundler.js
|
|
6252
6252
|
async function bundlePageScript(plan) {
|
|
6253
6253
|
const VIRTUAL_ENTRY = "\x00zenith:entry";
|
|
6254
6254
|
const virtualModules = new Map;
|
|
@@ -6292,21 +6292,21 @@ async function bundlePageScript(plan) {
|
|
|
6292
6292
|
}
|
|
6293
6293
|
return output[0].code;
|
|
6294
6294
|
}
|
|
6295
|
-
//
|
|
6295
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
6296
6296
|
import fs5 from "fs";
|
|
6297
6297
|
import path8 from "path";
|
|
6298
6298
|
|
|
6299
|
-
//
|
|
6299
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6300
6300
|
import fs2 from "fs";
|
|
6301
6301
|
import path4 from "path";
|
|
6302
6302
|
|
|
6303
|
-
//
|
|
6303
|
+
// node_modules/@zenithbuild/router/index.js
|
|
6304
6304
|
import { createRequire as createRequire2 } from "module";
|
|
6305
6305
|
var require2 = createRequire2(import.meta.url);
|
|
6306
6306
|
var native6 = require2("./zenith-router.node");
|
|
6307
6307
|
var { generateRouteManifestNative, renderRouteNative, resolveRouteNative, generateRuntimeRouterNative, SegmentType, routerBridge } = native6;
|
|
6308
6308
|
|
|
6309
|
-
//
|
|
6309
|
+
// node_modules/@zenithbuild/router/src/manifest.ts
|
|
6310
6310
|
var SEGMENT_SCORES = {
|
|
6311
6311
|
[SegmentType.Static]: 10,
|
|
6312
6312
|
[SegmentType.Dynamic]: 5,
|
|
@@ -6435,7 +6435,7 @@ function generateRouteDefinition(filePath, pagesDir) {
|
|
|
6435
6435
|
};
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
-
//
|
|
6438
|
+
// node_modules/@zenithbuild/compiler/dist/build-analyzer.js
|
|
6439
6439
|
function analyzePageSource(source) {
|
|
6440
6440
|
const scriptMatch = source.match(/<script[^>]*>([\s\S]*?)<\/script>/i);
|
|
6441
6441
|
const scriptContent = scriptMatch?.[1] || "";
|
|
@@ -6493,7 +6493,7 @@ function getBuildOutputType(analysis) {
|
|
|
6493
6493
|
return "static";
|
|
6494
6494
|
}
|
|
6495
6495
|
|
|
6496
|
-
//
|
|
6496
|
+
// node_modules/@zenithbuild/compiler/dist/runtime/bundle-generator.js
|
|
6497
6497
|
import { readFileSync as readFileSync2, existsSync } from "fs";
|
|
6498
6498
|
import path5 from "path";
|
|
6499
6499
|
function generateBundleJS(pluginData) {
|
|
@@ -7720,7 +7720,7 @@ ${lifecycleJS ? ` // ============================================
|
|
|
7720
7720
|
`;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
-
//
|
|
7723
|
+
// node_modules/@zenithbuild/compiler/dist/css/index.js
|
|
7724
7724
|
import { spawn, spawnSync } from "child_process";
|
|
7725
7725
|
import path6 from "path";
|
|
7726
7726
|
import fs3 from "fs";
|
|
@@ -7865,7 +7865,7 @@ function resolveGlobalsCss(projectRoot) {
|
|
|
7865
7865
|
return null;
|
|
7866
7866
|
}
|
|
7867
7867
|
|
|
7868
|
-
//
|
|
7868
|
+
// node_modules/@zenithbuild/compiler/dist/core/config/loader.js
|
|
7869
7869
|
import fs4 from "fs";
|
|
7870
7870
|
import path7 from "path";
|
|
7871
7871
|
async function loadZenithConfig(projectRoot) {
|
|
@@ -7899,7 +7899,7 @@ async function loadZenithConfig(projectRoot) {
|
|
|
7899
7899
|
}
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
-
//
|
|
7902
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/registry.js
|
|
7903
7903
|
var pluginDataStore = {};
|
|
7904
7904
|
function getPluginDataByNamespace(namespace) {
|
|
7905
7905
|
return pluginDataStore[namespace] || [];
|
|
@@ -7950,7 +7950,7 @@ function createPluginContext(projectRoot) {
|
|
|
7950
7950
|
};
|
|
7951
7951
|
}
|
|
7952
7952
|
|
|
7953
|
-
//
|
|
7953
|
+
// node_modules/@zenithbuild/compiler/dist/core/plugins/bridge.js
|
|
7954
7954
|
var hookRegistry = new Map;
|
|
7955
7955
|
function registerHook(hook, handler) {
|
|
7956
7956
|
if (!hookRegistry.has(hook)) {
|
|
@@ -7999,7 +7999,7 @@ function createBridgeAPI() {
|
|
|
7999
7999
|
};
|
|
8000
8000
|
}
|
|
8001
8001
|
|
|
8002
|
-
//
|
|
8002
|
+
// node_modules/@zenithbuild/compiler/dist/ssg-build.js
|
|
8003
8003
|
async function compilePage(pagePath, pagesDir, baseDir = process.cwd()) {
|
|
8004
8004
|
const source = fs5.readFileSync(pagePath, "utf-8");
|
|
8005
8005
|
const analysis = analyzePageSource(source);
|
|
@@ -8289,7 +8289,7 @@ async function buildSSG(options) {
|
|
|
8289
8289
|
console.log(` ${page.routePath.padEnd(20)} \u2192 ${page.outputDir}/index.html (${type})`);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
//
|
|
8292
|
+
// node_modules/@zenithbuild/compiler/dist/index.js
|
|
8293
8293
|
async function compileZenSource(source, filePath, options) {
|
|
8294
8294
|
let ir = parseZenFile(filePath, source);
|
|
8295
8295
|
if (options?.componentsDir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Core library for the Zenith framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"typescript": "^5"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@zenithbuild/compiler": "
|
|
68
|
-
"@zenithbuild/router": "
|
|
67
|
+
"@zenithbuild/compiler": "latest",
|
|
68
|
+
"@zenithbuild/router": "latest",
|
|
69
69
|
"picocolors": "^1.1.1"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|