@zenithbuild/core 1.3.2 → 1.3.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/bin/zenith.js +8 -14
- package/package.json +3 -3
package/bin/zenith.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
2
|
import { createZenithBundler } from '@zenithbuild/bundler';
|
|
4
3
|
|
|
5
4
|
const args = process.argv.slice(2);
|
|
@@ -7,19 +6,14 @@ const command = args[0];
|
|
|
7
6
|
const root = process.cwd();
|
|
8
7
|
|
|
9
8
|
(async () => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
console.log("Usage: zenith [dev|build]");
|
|
19
|
-
process.exit(1);
|
|
20
|
-
}
|
|
21
|
-
} catch (e) {
|
|
22
|
-
console.error(e);
|
|
9
|
+
if (command === 'dev') {
|
|
10
|
+
// Direct delegation to bundler dev server
|
|
11
|
+
await import('@zenithbuild/bundler/dev-server');
|
|
12
|
+
} else if (command === 'build') {
|
|
13
|
+
const bundler = createZenithBundler();
|
|
14
|
+
await bundler.build({ root });
|
|
15
|
+
} else {
|
|
16
|
+
console.log("Usage: zenith [dev|build]");
|
|
23
17
|
process.exit(1);
|
|
24
18
|
}
|
|
25
19
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenithbuild/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Core library for the Zenith framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"typescript": "^5.9.3"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@zenithbuild/bundler": "1.3.
|
|
64
|
-
"@zenithbuild/compiler": "1.3.
|
|
63
|
+
"@zenithbuild/bundler": "1.3.2",
|
|
64
|
+
"@zenithbuild/compiler": "1.3.2",
|
|
65
65
|
"picocolors": "^1.1.1"
|
|
66
66
|
}
|
|
67
67
|
}
|