@zenithbuild/compiler 1.3.9 → 1.3.15
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.d.ts +0 -4
- package/dist/index.js +1 -7
- package/package.json +2 -7
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,6 @@ export type ZenCompileOptions = {
|
|
|
6
6
|
* Map of component names to their definitions.
|
|
7
7
|
*/
|
|
8
8
|
components?: Map<string, any>;
|
|
9
|
-
/**
|
|
10
|
-
* Optional directory to discover components from
|
|
11
|
-
*/
|
|
12
|
-
componentsDir?: string;
|
|
13
9
|
/**
|
|
14
10
|
* Optional layout to wrap the page in
|
|
15
11
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
// Core Imports (Internal)
|
|
2
2
|
import { parseZenFile } from './parseZenFile';
|
|
3
3
|
import { InvariantError } from './errors/compilerError';
|
|
4
|
-
import { discoverComponents } from './discovery/componentDiscovery';
|
|
5
4
|
/**
|
|
6
5
|
* Compile Zenith source code using the unified "One True Bridge" (Native Syscall).
|
|
7
6
|
*/
|
|
8
7
|
export async function compile(source, filePath, options) {
|
|
9
8
|
const opts = options || {};
|
|
10
|
-
|
|
11
|
-
let components = opts.components || new Map();
|
|
12
|
-
if (opts.componentsDir) {
|
|
13
|
-
const discovered = discoverComponents(opts.componentsDir);
|
|
14
|
-
components = new Map([...components, ...discovered]);
|
|
15
|
-
}
|
|
9
|
+
const components = opts.components || new Map();
|
|
16
10
|
const finalized = parseZenFile(filePath, source, {
|
|
17
11
|
mode: 'full',
|
|
18
12
|
components: components ? Object.fromEntries(components) : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/compiler",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "The Iron Heart: Native Compiler for the Zenith Framework",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,12 +9,7 @@
|
|
|
9
9
|
"./config": "./dist/core/config/loader.js",
|
|
10
10
|
"./plugins": "./dist/core/plugins/bridge.js",
|
|
11
11
|
"./registry": "./dist/core/plugins/registry.js",
|
|
12
|
-
"./
|
|
13
|
-
"./discovery": "./dist/discovery/componentDiscovery.js",
|
|
14
|
-
"./layouts": "./dist/discovery/layouts.js",
|
|
15
|
-
"./transform": "./dist/transform/layoutProcessor.js",
|
|
16
|
-
"./css": "./dist/css/index.js",
|
|
17
|
-
"./bundler": "./dist/bundler/index.js"
|
|
12
|
+
"./transform": "./dist/transform/layoutProcessor.js"
|
|
18
13
|
},
|
|
19
14
|
"files": [
|
|
20
15
|
"dist",
|