@zenithbuild/core 1.3.3 → 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.
Files changed (2) hide show
  1. package/bin/zenith.js +8 -14
  2. package/package.json +1 -1
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
- const bundler = createZenithBundler();
11
-
12
- try {
13
- if (command === 'dev') {
14
- await bundler.dev({ root });
15
- } else if (command === 'build') {
16
- await bundler.build({ root });
17
- } else {
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",
3
+ "version": "1.3.4",
4
4
  "description": "Core library for the Zenith framework",
5
5
  "license": "MIT",
6
6
  "type": "module",