@lunora/cli 1.0.0-alpha.202 → 1.0.0-alpha.203
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/bin.mjs +1 -1
- package/dist/index.d.mts +36 -6
- package/dist/index.d.ts +36 -6
- package/dist/index.mjs +1 -1
- package/dist/packem_chunks/handler.mjs +1 -1
- package/dist/packem_chunks/handler13.mjs +1 -1
- package/dist/packem_chunks/handler14.mjs +1 -1
- package/dist/packem_chunks/handler17.mjs +1 -1
- package/dist/packem_chunks/handler19.mjs +1 -1
- package/dist/packem_chunks/handler2.mjs +2 -2
- package/dist/packem_chunks/handler21.mjs +2 -2
- package/dist/packem_chunks/handler25.mjs +2 -2
- package/dist/packem_chunks/handler26.mjs +4 -4
- package/dist/packem_chunks/handler3.mjs +1 -1
- package/dist/packem_chunks/handler4.mjs +1 -1
- package/dist/packem_chunks/handler7.mjs +3 -3
- package/dist/packem_chunks/planDevCommand.mjs +6 -6
- package/dist/packem_chunks/runCodegenCommand.mjs +3 -3
- package/dist/packem_chunks/runDeployCommand.mjs +1 -1
- package/dist/packem_chunks/runInitCommand.mjs +11 -11
- package/dist/packem_shared/COMMANDS-D-2fKisr.mjs +1 -0
- package/dist/packem_shared/cli-HouJioGN.mjs +3 -0
- package/dist/packem_shared/{commands-BOgN2nF7.mjs → commands-BNKj7r1R.mjs} +7 -7
- package/dist/packem_shared/{lint-ignore-report-CDbcbtv7.mjs → lint-ignore-report-ajVhvqY-.mjs} +1 -1
- package/dist/packem_shared/runAddCommand-D1Dj8-pK.mjs +1 -0
- package/dist/packem_shared/wrangler-secrets-CCdt0mUl.mjs +1 -0
- package/package.json +2 -3
- package/dist/packem_shared/COMMANDS-su5nmqYP.mjs +0 -1
- package/dist/packem_shared/cli-RB-BoDnW.mjs +0 -3
- package/dist/packem_shared/detect-package-manager-DSaAqRof.mjs +0 -1
- package/dist/packem_shared/post-codegen-hook-DRdEoTsQ.mjs +0 -1
- package/dist/packem_shared/runAddCommand-BXz-PXbb.mjs +0 -1
- package/dist/packem_shared/wrangler-secrets-CE7jcf8E.mjs +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./detect-package-manager-DSaAqRof.mjs";import{r as n,a as i,b as t}from"./commands-BOgN2nF7.mjs";import"./buildRegistryIndex-Zi3bBqpc.mjs";import"./resolve-DZAGzg67.mjs";export{n as runAddCommand,i as runBuildIndexCommand,t as runRegistryViewCommand};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{resolveDeployDriver as c,resolveProjectTarget as d}from"@lunora/config";import{e as l,d as i}from"./detect-package-manager-DSaAqRof.mjs";import{defaultSpawner as m}from"./createRecordingSpawner-DJlNacZ6.mjs";const u=async(e,t,o)=>{try{const r=await m({args:t,captureStderr:!0,captureStdoutSilently:!0,command:e,cwd:o});return{code:r.code,stderr:r.stderr??"",stdout:r.stdout??""}}catch(r){return{code:1,stderr:r instanceof Error?r.message:String(r),stdout:""}}},f=e=>{let t;try{t=JSON.parse(e)}catch{return}return Array.isArray(t)?[...t.map(r=>r!==null&&typeof r=="object"?r.name:void 0).filter(r=>typeof r=="string"&&r.length>0)].toSorted((r,s)=>r.localeCompare(s)):void 0},v=async e=>{const t=c(d(e.cwd)).toolchain?.secretList({environment:e.env,temporary:e.temporary});if(t===void 0)return{error:"deploy target has no command-line toolchain",names:[],ok:!1};const{args:o,command:r}=l(i(e.cwd),t.tool,t.args),a=await(e.runner??u)(r,o,e.cwd);if(a.code!==0)return{error:a.stderr.trim()||`wrangler secret list exited ${String(a.code)}`,names:[],ok:!1};const n=f(a.stdout);return n===void 0?{error:"could not parse `wrangler secret list --format json` output",names:[],ok:!1}:{names:n,ok:!0}};export{v as l};
|