@mahameru/cli 0.0.11 → 0.0.12

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/dist/index.js +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ┌────────────────────────────────────────────┐
4
4
  * │ │
5
5
  * │ ▲ MahameruJS - CLI UTILITY │
6
- * │ Version: 0.0.11
6
+ * │ Version: 0.0.12
7
7
  * │ Built: 2026 │
8
8
  * │ │
9
9
  * │ Copyright (c) Bintan <hello@bintvn.co> │
@@ -34,7 +34,7 @@ bgCyanBright:e("",""),bgWhiteBright:e("","")}};t.exports=a
34
34
  ;function _(t){var e=g[t];if(void 0!==e)return e.exports;var i=g[t]={exports:{}};return f[t](i,i.exports,_),i.exports}
35
35
  _.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return _.d(e,{a:e}),e},_.d=(t,e)=>{
36
36
  for(var i in e)_.o(e,i)&&!_.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},
37
- _.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const v={rE:"0.0.11"
37
+ _.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const v={rE:"0.0.12"
38
38
  },b=(t=0)=>e=>`[${e+t}m`,x=(t=0)=>e=>`[${38+t};5;${e}m`,O=(t=0)=>(e,i,r)=>`[${38+t};2;${e};${i};${r}m`,y={modifier:{
39
39
  reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],
40
40
  strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],
@@ -665,12 +665,12 @@ modulesPath:r(Pe,"src","modules"),routesPath:r(Pe,"src","routes")}
665
665
  ;console.clear(),console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`),await He(a,["-e",m],Pe)
666
666
  }),t.command("build").description("Build Mahameru production application.").action(async()=>{
667
667
  console.log(`${_e().bold(_e().cyan("▲ Mahameru"))} ${_e().dim(`CLI v${i}`)}\n`)
668
- ;const t=fe(_e().cyan("Checking environment...")).start()
668
+ ;const t=fe(_e().cyan(" Checking environment...")).start()
669
669
  ;ke()||(t.fail(_e().red(" Current directory is not a Node.js project.")),process.exit(1))
670
670
  ;const e=r(Pe,"node_modules","typescript","bin","tsc")
671
671
  ;n(e)||(t.fail(_e().red(" TypeScript compiler (tsc) is not installed in this project.")),process.exit(1))
672
672
  ;const s=r(Pe,"node_modules","tsc-alias","dist","bin","index.js");n(s)||(t.fail(_e().red(" tsc-alias not installed.")),
673
- process.exit(1));try{t.text=_e().cyan("Starting build...");const i=await He(e,["--project","tsconfig.json"],Pe)
673
+ process.exit(1));try{t.text=_e().cyan(" Starting build...");const i=await He(e,["--project","tsconfig.json"],Pe)
674
674
  ;0!==i&&(t.fail(_e().red(" Build failed!")),process.exit(i))
675
675
  ;0!==await He(e,["--project","config.tsconfig.json"],Pe)&&(t.fail(_e().red(" Build failed!")),process.exit(i))
676
676
  ;const h=await He(s,["-p","tsconfig.json"],Pe);0!==h&&(t.fail(_e().red(" tsc-alias failed.")),process.exit(h))
@@ -679,7 +679,7 @@ const n=r(t,s);if(l(n).isDirectory()){e.push(n);continue}if(!n.endsWith(".js"))c
679
679
  ;(a.includes("'@/")||a.includes('"@/')||a.includes("'#/")||a.includes('"#/'))&&i.add(n)}}return[...i]}(r(Pe,"dist"))
680
680
  ;if(c.length>0){
681
681
  t.fail(_e().red(" Build produced unresolved path aliases.")),console.error(_e().yellow("Please use tsconfig path aliases such as @/* and avoid package.json imports for app source files."))
682
- ;for(const t of c)console.error(_e().red(` - ${t}`));process.exit(1)}t.succeed(_e().green("Build success."))}catch(e){
682
+ ;for(const t of c)console.error(_e().red(` - ${t}`));process.exit(1)}t.succeed(_e().green(" Build success."))}catch(e){
683
683
  t.fail(_e().red(" Terjadi kesalahan internal.")),console.error(e),process.exit(1)}}),
684
684
  t.command("start").description("Start Mahameru production server.").option("-p, --port <number>","Port to run the server on",Re).option("-h, --host <string>","Host to run the server on").action(async({host:t,port:s})=>{
685
685
  const n=r(Pe,"dist","mahameru.config.js"),o=p(n).href;let a=(await import(o).catch(()=>{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mahameru/cli",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "MahameruJS CLI Utility - The command-line interface for running and building Mahameru-based applications",
5
5
  "bin": {
6
6
  "mahameru": "./dist/index.js"