fast-ejs-builder 0.0.3 → 0.0.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/package.json +1 -1
  2. package/src/build-dev.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-ejs-builder",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Fast-EJS is a simple and fast tool to pre-render EJS templates into static HTML files with clean conventions and flexible data handling.",
5
5
  "keywords": [
6
6
  "tailwind",
package/src/build-dev.js CHANGED
@@ -1,9 +1,11 @@
1
1
  const { args, _d, _p } = require("../core");
2
2
  const ejsbuild = require("../src/build");
3
3
  const nodemon = require("nodemon");
4
- const { config } = require("../core/lib");
4
+ const { config, getConfig } = require("../core/lib");
5
5
 
6
6
  async function ejsbuild_dev() {
7
+ await getConfig();
8
+
7
9
  const toWatch = [
8
10
  config.pages.dir,
9
11
  config.components.dir,
@@ -12,7 +14,7 @@ async function ejsbuild_dev() {
12
14
  ];
13
15
 
14
16
  _d("Watching :", toWatch.map((d) => `'${d}'`).join(", "));
15
- await ejsbuild(); // needs await to get config
17
+ ejsbuild(); // no more needs await
16
18
 
17
19
  nodemon({
18
20
  watch: toWatch.map(_p),