@zenithbuild/core 0.5.0-beta.2.2 → 0.5.0-beta.2.20
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/CORE_CONTRACT.md +2 -0
- package/README.md +5 -0
- package/bin/zenith.js +12 -0
- package/package.json +7 -7
package/CORE_CONTRACT.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# CORE_CONTRACT.md — Deterministic Utility Substrate
|
|
2
2
|
|
|
3
|
+
Canonical public docs: `../zenith-docs/documentation/contracts/core-contract.md`
|
|
4
|
+
|
|
3
5
|
> **This document is a legal boundary.**
|
|
4
6
|
> Core is a shared utility layer. It contains no business logic,
|
|
5
7
|
> no routing, no DOM, no framework behavior. Pure helper substrate only.
|
package/README.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
This is the **sole public entrypoint** for the Zenith framework.
|
|
4
4
|
|
|
5
|
+
## Canonical Docs
|
|
6
|
+
|
|
7
|
+
- Core contract: `../zenith-docs/documentation/contracts/core-contract.md`
|
|
8
|
+
- Zenith contract: `../zenith-docs/documentation/zenith-contract.md`
|
|
9
|
+
|
|
5
10
|
Use this package directly in your projects to run Zenith utilities and access the official APIs.
|
|
6
11
|
|
|
7
12
|
## Installation
|
package/bin/zenith.js
CHANGED
|
@@ -12,6 +12,18 @@ const require = createRequire(import.meta.url);
|
|
|
12
12
|
// Version mismatch check
|
|
13
13
|
const corePkgPath = join(__dirname, '../package.json');
|
|
14
14
|
const corePkg = JSON.parse(readFileSync(corePkgPath, 'utf-8'));
|
|
15
|
+
const args = process.argv.slice(2);
|
|
16
|
+
|
|
17
|
+
if (args.includes('--version') || args.includes('-v')) {
|
|
18
|
+
console.log(`zenith ${corePkg.version}`);
|
|
19
|
+
process.exit(0);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
23
|
+
const { cli } = await import('@zenithbuild/cli');
|
|
24
|
+
await cli(args);
|
|
25
|
+
process.exit(0);
|
|
26
|
+
}
|
|
15
27
|
|
|
16
28
|
const expectedInternals = [
|
|
17
29
|
'@zenithbuild/cli',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/core",
|
|
3
|
-
"version": "0.5.0-beta.2.
|
|
3
|
+
"version": "0.5.0-beta.2.20",
|
|
4
4
|
"description": "Deterministic utility substrate for the Zenith framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"src",
|
|
26
|
-
"bin
|
|
26
|
+
"bin",
|
|
27
27
|
"CORE_CONTRACT.md",
|
|
28
28
|
"README.md",
|
|
29
29
|
"contracts"
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zenithbuild/cli": "0.5.0-beta.2.
|
|
36
|
-
"@zenithbuild/compiler": "0.5.0-beta.2.
|
|
37
|
-
"@zenithbuild/runtime": "0.5.0-beta.2.
|
|
38
|
-
"@zenithbuild/router": "0.5.0-beta.2.
|
|
39
|
-
"@zenithbuild/bundler": "0.5.0-beta.2.
|
|
35
|
+
"@zenithbuild/cli": "0.5.0-beta.2.20",
|
|
36
|
+
"@zenithbuild/compiler": "0.5.0-beta.2.20",
|
|
37
|
+
"@zenithbuild/runtime": "0.5.0-beta.2.20",
|
|
38
|
+
"@zenithbuild/router": "0.5.0-beta.2.20",
|
|
39
|
+
"@zenithbuild/bundler": "0.5.0-beta.2.20"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"test": "npm run contract:deps && npm run contract:scan && npm run contract:api && npm run contract:template && npm run contract:golden",
|