@overlayed/cli 0.0.4 → 0.0.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/dist/cli.js +1 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -5,4 +5,4 @@ import{Builtins as e,Cli as t,Command as n,UsageError as r}from"clipanion";impor
5
5
  [Docs](http://docs.overlayed.gg/cli/bundle)
6
6
  `,examples:[[`Basic usage`,`$0 bundle`]]});async execute(){let e=await this.resolveConfig(),t=a.createWriteStream(process.cwd()+`/app.zip`),n=await e.app.bundle();if(t.write(await n.generateAsync({type:`nodebuffer`})),e.site){let t=a.createWriteStream(process.cwd()+`/site.zip`),n=await e.site?.bundle();t.write(await n?.generateAsync({type:`nodebuffer`}))}this.context.stdout.write(i.green(`Bundle created successfully.`))}async resolveConfig(){let e=await N();if(e.length===0)throw new r(`No config file found matching `+this.overlayedConfigGlob);e.length>1&&this.context.stdout.write(i.yellow(`
7
7
  Multiple config files found matching ${M}, using the first one.
8
- `));let t=e.at(0);return{app:this.getAppBundler(t.app),site:t.site?this.getSiteBundler(t.site):void 0}}getAppBundler(e){let t=new R;return t.addGlobPattern(e.include,{ignore:e.exclude}),t}getSiteBundler(e){let t=new L;return t.addGlobPattern(e.include,{ignore:e.exclude}),t}};const B=process.argv.slice(2),V=new t({binaryName:`ogg`,binaryLabel:`Overlayed`});[z,e.HelpCommand].forEach(e=>{V.register(e)}),V.runExit(B);
8
+ `));let t=e.at(0);return{app:this.getAppBundler(t.app),site:t.site?this.getSiteBundler(t.site):void 0}}getAppBundler(e){let t=new R;return t.addGlobPattern(e.include,{ignore:e.exclude}),t}getSiteBundler(e){let t=new L;return t.addGlobPattern(e.include,{ignore:e.exclude}),t}};const B=process.argv.slice(2),V=new t({binaryName:`overlayed`,binaryLabel:`Overlayed`});[z,e.HelpCommand].forEach(e=>{V.register(e)}),V.runExit(B);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "keywords": [
10
10
  "typescript"
11
11
  ],
12
- "version": "0.0.4",
12
+ "version": "0.0.5",
13
13
  "description": "Overlayed CLI",
14
14
  "packageManager": "pnpm@10.6.3",
15
15
  "type": "module",