jeasx 0.3.4 → 0.3.5

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/cli.js +5 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -41,15 +41,18 @@ async function build() {
41
41
 
42
42
  async function dev() {
43
43
  process.env.NODE_ENV = "development";
44
+ // Run build to prepare browser assets for fastify-static
45
+ process.argv = ["jeasx", "build"];
46
+ await build();
47
+ // Start the dev environment
44
48
  process.argv[2] = "start";
45
49
  process.argv[3] ??= "node_modules/jeasx/ecosystem.config.cjs";
46
- await clean();
47
50
  // @ts-ignore
48
51
  await import("pm2/bin/pm2-runtime");
49
52
  }
50
53
 
51
54
  async function clean() {
52
- await fs.rm("dist", { recursive: true, force: true });
55
+ await fs.rm("dist", { recursive: true, force: true, maxRetries: 3 });
53
56
  }
54
57
 
55
58
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeasx",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "jeasx - the ease of JSX with the power of SSR",
5
5
  "keywords": [
6
6
  "jsx",