@h3ravel/console 11.14.15 → 11.14.17

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/bin/fire.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import"./zero-CW4MtoXR.js";import"tsx/esm";import{Application as e,ContainerResolver as t,ServiceProvider as n}from"@h3ravel/core";import{FileSystem as r,Logger as i,TaskManager as a}from"@h3ravel/shared";import{Command as o,Kernel as s}from"@h3ravel/musket";import{execa as c}from"execa";import l from"preferred-pm";import{copyFile as u,readFile as d,writeFile as f}from"fs/promises";import p from"crypto";import m from"dotenv";import{mkdir as h,readFile as g,rm as _,writeFile as v}from"node:fs/promises";import{Str as y}from"@h3ravel/support";import b from"node:path";import{existsSync as x}from"node:fs";import{fork as S}from"child_process";import{dirname as C,join as w,resolve as T}from"path";var E=class e extends o{signature=`build
2
+ import"./zero-Dv_r7pNi.js";import"tsx/esm";import{Application as e,ContainerResolver as t,ServiceProvider as n}from"@h3ravel/core";import{FileSystem as r,Logger as i,TaskManager as a}from"@h3ravel/shared";import{Command as o,Kernel as s}from"@h3ravel/musket";import{execa as c}from"execa";import l from"preferred-pm";import{copyFile as u,readFile as d,writeFile as f}from"fs/promises";import p from"crypto";import m from"dotenv";import{mkdir as h,readFile as g,rm as _,writeFile as v}from"node:fs/promises";import{Str as y}from"@h3ravel/support";import b from"node:path";import{existsSync as x}from"node:fs";import{fork as S}from"child_process";import{dirname as C,join as w,resolve as T}from"path";var E=class e extends o{signature=`build
3
3
  {--m|minify : Minify your bundle output}
4
4
  {--d|dev : Build for dev but don't watch for changes}
5
5
  `;description=`Build the app for production`;async handle(){try{await this.fire()}catch(e){i.error(e)}}async fire(){let t=this.option(`dev`)?`.h3ravel/serve`:env(`DIST_DIR`,`dist`),n=this.option(`minify`),r=this.getVerbosity(),i=r>0;this.newLine(),await e.build({outDir:t,minify:n,verbosity:r,debug:i,mute:!1}),this.newLine()}static async build({debug:e,minify:t,mute:n,verbosity:r,outDir:i}={mute:!1,debug:!1,minify:!1,verbosity:0,outDir:`dist`}){let o=(await l(base_path()))?.name??`pnpm`,s={EXTENDED_DEBUG:e?`true`:`false`,CLI_BUILD:`true`,NODE_ENV:`production`,DIST_DIR:i,DIST_MINIFY:t,LOG_LEVEL:[`silent`,`info`,`warn`,`error`][r]},u=s.LOG_LEVEL===`silent`?`--silent`:null;if(n)return await c(o,[`tsdown`,u,`--config-loader`,`unconfig`,`-c`,`tsdown.default.config.ts`].filter(e=>e!==null),{stdout:`inherit`,stderr:`inherit`,cwd:base_path(),env:Object.assign({},process.env,s)});let d=i===`dist`?`Production`:`Development`;return await a.advancedTaskRunner([[`Creating ${d} Bundle`,`STARTED`],[`${d} Bundle Created`,`COMPLETED`]],async()=>{await c(o,[`tsdown`,u,`--config-loader`,`unconfig`,`-c`,`tsdown.default.config.ts`].filter(e=>e!==null),{stdout:`inherit`,stderr:`inherit`,cwd:base_path(),env:Object.assign({},process.env,s)})})}},D=class extends o{signature=`key:generate
package/bin/prepare.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./zero-CW4MtoXR.js";new e().prepare();export{};
2
+ import{t as e}from"./zero-Dv_r7pNi.js";new e().prepare();export{};
@@ -0,0 +1 @@
1
+ import{FileSystem as e,mainTsconfig as t}from"@h3ravel/shared";import{execa as n}from"execa";import r from"preferred-pm";import{mkdir as i,writeFile as a}from"node:fs/promises";import o,{join as s}from"node:path";import{existsSync as c}from"node:fs";var l=class{async prepare(l=`.h3ravel/serve`){let u=(await r(process.cwd()))?.name??`npm`,d=s(process.env.DIST_DIR??l);c(o.join(d.replace(`/serve`,``)))||await i(o.join(d.replace(`/serve`,``)),{recursive:!0}),await e.fileExists(o.join(d,`tsconfig.json`))||await a(o.join(d.replace(`/serve`,``),`tsconfig.json`),JSON.stringify(t,null,2));let f={EXTENDED_DEBUG:`false`,CLI_BUILD:`true`,NODE_ENV:`production`,DIST_DIR:d,LOG_LEVEL:`silent`};await n(u,[`tsdown`,`--silent`,`--config-loader`,`unconfig`,`-c`,`tsdown.default.config.ts`].filter(e=>e!==null),{stdout:`inherit`,stderr:`inherit`,cwd:s(process.cwd()),env:Object.assign({},process.env,f)})}};export{l as t};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/console",
3
- "version": "11.14.15",
3
+ "version": "11.14.17",
4
4
  "description": "CLI utilities for scaffolding, running migrations, tasks and for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -48,8 +48,8 @@
48
48
  "laravel"
49
49
  ],
50
50
  "peerDependencies": {
51
- "@h3ravel/core": "~1.21.11",
52
- "@h3ravel/support": "~0.15.10"
51
+ "@h3ravel/core": "~1.21.12",
52
+ "@h3ravel/support": "~0.15.11"
53
53
  },
54
54
  "devDependencies": {
55
55
  "typescript": "^5.9.2"
@@ -65,7 +65,7 @@
65
65
  "dotenv": "^17.2.3",
66
66
  "@h3ravel/musket": "~0.3.16",
67
67
  "tsx": "^4.20.6",
68
- "@h3ravel/shared": "~0.27.11"
68
+ "@h3ravel/shared": "~0.27.13"
69
69
  },
70
70
  "scripts": {
71
71
  "barrelx": "barrelsby --directory src --delete --singleQuotes",
@@ -1 +0,0 @@
1
- import{FileSystem as e,mainTsconfig as t}from"@h3ravel/shared";import{execa as n}from"execa";import r from"preferred-pm";import{mkdir as i,readdir as a,writeFile as o}from"node:fs/promises";import s,{join as c}from"node:path";var l=class{async prepare(l=`.h3ravel/serve`){let u=(await r(process.cwd()))?.name??`npm`,d=c(process.env.DIST_DIR??l);if(await e.fileExists(d)&&(await a(d)).length>0)return;await e.fileExists(s.join(d,`tsconfig.json`))||(await i(s.join(d.replace(`/serve`,``)),{recursive:!0}),await o(s.join(d.replace(`/serve`,``),`tsconfig.json`),JSON.stringify(t,null,2)));let f={EXTENDED_DEBUG:`false`,CLI_BUILD:`true`,NODE_ENV:`production`,DIST_DIR:d,LOG_LEVEL:`silent`};await n(u,[`tsdown`,`--silent`,`--config-loader`,`unconfig`,`-c`,`tsdown.default.config.ts`].filter(e=>e!==null),{stdout:`inherit`,stderr:`inherit`,cwd:c(process.cwd()),env:Object.assign({},process.env,f)})}};export{l as t};