bimba-cli 0.1.3 → 0.1.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/index.ts +3 -13
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -63,25 +63,15 @@ if(flags.help) {
63
63
  }
64
64
 
65
65
 
66
- // no entrypoint
67
- if(!flags.entry) {
66
+ // no entrypoint or outdir
67
+ if(!flags.entry || !flags.outdir) {
68
68
  console.log("");
69
- console.log("No entrypoint provided: "+theme.flags('bimba file.imba --outdir public'));
69
+ console.log("You should provide entrypoint and the output dir: "+theme.flags('bimba file.imba --outdir public'));
70
70
  console.log("For more information: "+theme.flags('--help'));
71
71
  console.log("");
72
72
  process.exit(1);
73
73
  }
74
74
 
75
- // no outdir
76
- if(flags.outdir){
77
- console.log("");
78
- console.log("No output dir is provided: "+theme.flags('bimba file.imba --outdir public'));
79
- console.log("For more information: "+theme.flags('--help'));
80
- console.log("");
81
- process.exit(1);
82
- }
83
-
84
-
85
75
  // build
86
76
  bundle();
87
77
  watch(bundle);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bimba-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "repository": "github:HeapVoid/bimba",
5
5
  "module": "index.ts",
6
6
  "bin": {