nebutra 0.6.1 → 0.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nebutra",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "nebutra": {
5
5
  "status": "foundation",
6
6
  "graph": "core",
@@ -44,10 +44,11 @@
44
44
  "tsup": "^8.5.1",
45
45
  "typescript": "^5.9.3",
46
46
  "vitest": "^4.1.4",
47
- "@nebutra/brand": "3.0.0",
48
- "@nebutra/theme": "3.0.0",
49
- "@nebutra/ui": "3.0.0",
50
- "@nebutra/preset": "0.1.4"
47
+ "@nebutra/brand": "4.0.0",
48
+ "@nebutra/theme": "4.0.0",
49
+ "@nebutra/preset": "0.1.5",
50
+ "@nebutra/tokens": "4.0.0",
51
+ "@nebutra/ui": "4.0.0"
51
52
  },
52
53
  "scripts": {
53
54
  "dev": "tsup --watch",
@@ -1,6 +0,0 @@
1
- import{spawn as R}from"child_process";import{readdirSync as h,readFileSync as b}from"fs";import{dirname as y,resolve as v}from"path";import{fileURLToPath as x}from"url";import u from"picocolors";function w(){let t=x(import.meta.url),e=y(t),r=e,a="/";for(;r!==a;){try{let i=h(r);if(i.includes("pnpm-workspace.yaml"))return r;if(i.includes("package.json")){let s=v(r,"package.json");if(JSON.parse(b(s,"utf-8")).workspaces)return r}}catch{}r=y(r)}return e.split("/packages/")[0]||e}async function d(t){let{command:e,args:r,cwd:a=w(),env:c={},interactive:i=!1,label:s=e,dryRun:f=!1}=t;if(f){let o={mode:"dry-run",timestamp:new Date().toISOString(),command:e,args:r,cwd:a,env:Object.keys(c).length>0?c:void 0};return process.stdout.write(JSON.stringify(o,null,2)+`
2
- `),{exitCode:0,stdout:JSON.stringify(o),stderr:""}}return i&&!process.env.NEBUTRA_QUIET&&process.stderr.write(u.cyan(`\u2192 ${s}: ${e} ${r.join(" ")}
3
- `)),new Promise(o=>{let l=R(e,r,{cwd:a,env:{...process.env,...c},stdio:i?"inherit":["pipe","pipe","pipe"]}),p="",m="";i||(l.stdout?.on("data",n=>{p+=n.toString()}),l.stderr?.on("data",n=>{m+=n.toString()})),l.on("close",n=>{let g=n??1;!i&&!process.env.NEBUTRA_QUIET&&(g===0?process.stderr.write(u.green(`\u2713 ${s} completed
4
- `)):process.stderr.write(u.red(`\u2716 ${s} failed with exit code ${g}
5
- `))),o({exitCode:g,stdout:p,stderr:m})}),l.on("error",n=>{process.stderr.write(u.red(`\u2716 Failed to execute ${e}: ${n.message}
6
- `)),o({exitCode:1,stdout:p,stderr:n.message})})})}async function P(t,e){let r=["run"];return e?.filter&&r.push("--filter",e.filter),r.push(t),e?.args&&r.push("--",...e.args),d({command:"pnpm",args:r,dryRun:e?.dryRun,interactive:e?.interactive??!0,label:`pnpm run ${t}`})}async function N(t,e){let r=["run",t];return e?.filter&&r.push("--filter",e.filter),d({command:"turbo",args:r,dryRun:e?.dryRun,interactive:!0,label:`turbo run ${t}`})}async function C(t,e){let r=["compose"];return e?.profile&&r.push("--profile",e.profile),e?.file&&r.push("-f",e.file),r.push(...t.split(" ")),d({command:"docker",args:r,dryRun:e?.dryRun,interactive:!0,label:`docker compose ${t}`})}async function T(t,e){let r=["prisma",t];return e?.args&&r.push(...e.args),d({command:"npx",args:r,dryRun:e?.dryRun,interactive:e?.interactive??!0,label:`prisma ${t}`})}export{w as a,d as b,P as c,N as d,C as e,T as f};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f}from"./chunk-LGUMYJ4Q.js";export{b as delegate,e as dockerCompose,a as findMonorepoRoot,c as pnpmRun,f as prismaRun,d as turboRun};