vaderjs 1.4.9 → 1.5.0

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/bundler/index.js +9 -4
  2. package/package.json +1 -1
package/bundler/index.js CHANGED
@@ -72,9 +72,11 @@ const generatePage = async (
72
72
  }
73
73
  let headHtml = "";
74
74
  if (head) {
75
- headHtml = document(head());
75
+ headHtml = document(head());
76
76
  }
77
- Bun.write(
77
+
78
+ console.log(route)
79
+ await Bun.write(
78
80
  process.cwd() + "/dist/" + route + "/index.html",
79
81
  `<!DOCTYPE html><head>${headHtml}</head>${h}
80
82
  <script type="module">
@@ -84,7 +86,6 @@ const generatePage = async (
84
86
  </script>
85
87
  `
86
88
  );
87
-
88
89
  console.log(
89
90
  ansiColors.blue(
90
91
  `${process.env.filePath.replace(".js", ".jsx")} - ${parseInt(
@@ -94,4 +95,8 @@ const generatePage = async (
94
95
  );
95
96
  process.exit(0);
96
97
  };
97
- generatePage({ path: process.env.INPUT, route: process.env.OUT });
98
+ try {
99
+ generatePage({ path: process.env.INPUT, route: process.env.OUT });
100
+ } catch (error) {
101
+ console.log(ansiColors.red(error))
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vaderjs",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "A simple and powerful JavaScript library for building modern web applications.",
5
5
  "main":"./index.js",
6
6
  "bin": {