dashnex 0.5.70 → 0.5.71
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/dist/commands/install.js +1 -1
- package/dist/package.js +1 -1
- package/package.json +2 -2
package/dist/commands/install.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{debug as e,debugError as o}from"../lib/debug.js";import{createSpinner as r}from"../lib/spinner.js";import s from"chalk";import n from"fs-extra";import t from"path";import{spawn as i}from"child_process";var
|
|
1
|
+
import{debug as e,debugError as o}from"../lib/debug.js";import{createSpinner as r}from"../lib/spinner.js";import s from"chalk";import n from"fs-extra";import t from"path";import{spawn as i}from"child_process";var a=async e=>new Promise(o=>{const r=i(`${e} --version`,{stdio:"ignore",shell:!0});r.on("error",()=>{o(!1)}),r.on("close",e=>{o(0===e)})}),c=async r=>{const s=await(async()=>await a("pnpm")?"pnpm":await a("npm")?"npm":null)();if(!s)throw new Error("Neither pnpm nor npm is available. Please install pnpm (recommended) or npm to continue.");const n=`${s} ${["install"].join(" ")}`;return e(`Using package manager: ${s}`),e(`Executing: ${n} in ${r}`),new Promise((e,s)=>{const t=[],a=[],c=i(n,{stdio:["ignore","pipe","pipe"],cwd:r,shell:!0,env:{...process.env,NPM_CONFIG_LOGLEVEL:"error"}});c.stdout&&c.stdout.on("data",e=>t.push(e)),c.stderr&&c.stderr.on("data",e=>a.push(e)),c.on("error",e=>{o(e),s(e)}),c.on("close",o=>{const r=null===o?0:o;0!==r&&(t.length&&process.stdout.write(Buffer.concat(t)),a.length&&process.stderr.write(Buffer.concat(a))),e(r)})})},p=class{async execute(){e("Install flow started");const i=t.join(process.cwd(),"dashnex.json");await n.pathExists(i)||(console.error(s.red("Run this command in a DashNex Web application folder.")),process.exit(1));const a=process.cwd(),p=r();p.start("Installing dependencies...");try{const e=await c(a);p.stop(),0!==e&&process.exit(e),process.exit(0)}catch(l){p.stop(),o(l),l instanceof Error?console.error(s.red(l.message)):console.error(s.red("Failed to run install")),process.exit(1)}}};export{p as InstallCommand,c as runInstallInDir};
|
package/dist/package.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={$schema:"https://json.schemastore.org/package",name:"@dashnex/cli",version:"0.5.
|
|
1
|
+
var e={$schema:"https://json.schemastore.org/package",name:"@dashnex/cli",version:"0.5.71",description:"Command-line interface for DashNex framework",homepage:"https://dashnex.io",type:"module",bin:{dashnex:"bin/dashnex"},exports:{".":{types:"./dist/server.d.ts",default:"./dist/server.js"},"./client":{types:"./dist/client.d.ts",default:"./dist/client.js"}},scripts:{build:"vite build",dev:"vite build --watch --mode development",test:"vitest run"},keywords:["dashnex","cli"],author:"Dashnex Team",license:"UNLICENSED",dependencies:{"adm-zip":"^0.5.17",chalk:"^5.6.2",commander:"^14.0.3",dotenv:"^17.4.2","fs-extra":"^11.3.4",ignore:"^7.0.5",inquirer:"^13.4.1"},devDependencies:{"@dashnex/types":"^1.0.2","@types/adm-zip":"^0.5.8","@types/fs-extra":"^11.0.4","@types/inquirer":"^9.0.9","@types/node":"^25.6.0",eslint:"^9.39.4","rollup-plugin-preserve-directives":"^0.4.0",terser:"^5.46.1",typescript:"^5.9.3",vite:"^8.0.8","vite-plugin-dts":"5.0.0-beta.6",vitest:"^4.1.4"},publishConfig:{registry:"https://npm.dashnex.com/"},files:["dist","bin"]};export{e as default};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "dashnex",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.71",
|
|
5
5
|
"description": "Command-line interface for DashNex framework",
|
|
6
6
|
"homepage": "https://dashnex.io",
|
|
7
7
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"adm-zip": "^0.5.17",
|
|
29
29
|
"chalk": "^5.6.2",
|
|
30
30
|
"commander": "^14.0.3",
|
|
31
|
-
"dotenv": "^17.4.
|
|
31
|
+
"dotenv": "^17.4.2",
|
|
32
32
|
"fs-extra": "^11.3.4",
|
|
33
33
|
"ignore": "^7.0.5",
|
|
34
34
|
"inquirer": "^13.4.1"
|