leanweb 1.2.0 → 1.2.1

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/README.md CHANGED
@@ -691,7 +691,8 @@ of the event.
691
691
  ### Post dist hook
692
692
 
693
693
  If `post-dist` file is present in the project root directory, it will be called
694
- after `lw dist` is done. This could be useful to copy dist/\* to somewhere else.
694
+ after `lw dist` is done. This could be useful to copy `dist/\*` to somewhere
695
+ else.
695
696
 
696
697
  ## More examples and tutorials
697
698
 
package/commands/dist.js CHANGED
@@ -62,8 +62,9 @@ if (args.length >= 3) {
62
62
  fse.copySync(`./${utils.dirs.build}/${resource}`, `./${utils.dirs.dist}/${resource}`, { dereference: true });
63
63
  });
64
64
 
65
- if (fs.statSync(`./post-dist`).isFile()) {
66
- await utils.exec(`./post-dist`);
65
+ const postDistFile = './post-dist';
66
+ if (fs.existsSync(postDistFile) && fs.statSync(postDistFile).isFile()) {
67
+ await utils.exec(postDistFile);
67
68
  }
68
69
  });
69
70
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leanweb",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Builds framework agnostic web components.",
5
5
  "bin": {
6
6
  "leanweb": "leanweb.js",