@stacksjs/actions 0.70.54 → 0.70.56
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/action.js +2 -0
- package/dist/actions.js +2 -0
- package/dist/add.js +2 -0
- package/dist/ai/request-model-access.js +2 -0
- package/dist/{src/blog.js → blog.js} +1 -1
- package/dist/{src/build → build}/frontend-static.js +1 -1
- package/dist/build.js +2 -0
- package/dist/{chunk-qg9crz2r.js → chunk-nn1a9b4f.js} +1 -1
- package/dist/{chunk-17srgdca.js → chunk-z7qb1602.js} +1 -1
- package/dist/commit.js +2 -0
- package/dist/{src/deploy → deploy}/index.js +2 -2
- package/dist/dev/api.js +6 -0
- package/dist/dev/dashboard-globals.js +3 -0
- package/dist/dev/dashboard-utils.js +2 -0
- package/dist/{src/dev → dev}/dashboard.js +2 -2
- package/dist/dev/index.js +2 -0
- package/dist/dev/migrate-watcher.js +2 -0
- package/dist/dev/views.js +2 -0
- package/dist/discover-packages.js +2 -0
- package/dist/examples.js +2 -0
- package/dist/generate/component-meta.js +3 -0
- package/dist/generate/env-files.js +26 -0
- package/dist/generate/ide-helpers.js +3 -0
- package/dist/generate/index.js +2 -0
- package/dist/generate/lib-entries.js +3 -0
- package/dist/generate/vscode-custom-data.js +3 -0
- package/dist/helpers/component-meta.js +2 -0
- package/dist/helpers/index.js +2 -0
- package/dist/helpers/lib-entries.js +2 -0
- package/dist/{src/helpers → helpers}/package-json.js +1 -1
- package/dist/helpers/utils.js +2 -0
- package/dist/helpers/vscode-custom-data.js +2 -0
- package/dist/index.js +2 -0
- package/dist/make-command.js +2 -0
- package/dist/make-job.js +2 -0
- package/dist/make-policy.js +2 -0
- package/dist/make-resource.js +2 -0
- package/dist/make.js +2 -0
- package/dist/orm/base.js +2 -0
- package/dist/release.js +3 -0
- package/dist/run-action.js +2 -0
- package/dist/scaffold-crud.js +2 -0
- package/dist/setup/index.js +2 -0
- package/dist/setup/ssl.js +2 -0
- package/dist/stacks.js +2 -0
- package/dist/templates.js +2 -0
- package/dist/types.js +2 -0
- package/dist/upgrade/dependencies.js +2 -0
- package/dist/upgrade/framework-utils.js +2 -0
- package/dist/{src/upgrade → upgrade}/framework.js +1 -1
- package/dist/upgrade/index.js +2 -0
- package/dist/upgrade.js +2 -0
- package/package.json +28 -22
- package/dist/src/action.js +0 -2
- package/dist/src/actions.js +0 -2
- package/dist/src/add.js +0 -2
- package/dist/src/ai/request-model-access.js +0 -2
- package/dist/src/build.js +0 -2
- package/dist/src/commit.js +0 -2
- package/dist/src/dev/api.js +0 -6
- package/dist/src/dev/dashboard-globals.js +0 -3
- package/dist/src/dev/dashboard-utils.js +0 -2
- package/dist/src/dev/index.js +0 -2
- package/dist/src/dev/migrate-watcher.js +0 -2
- package/dist/src/dev/views.js +0 -2
- package/dist/src/discover-packages.js +0 -2
- package/dist/src/examples.js +0 -2
- package/dist/src/generate/component-meta.js +0 -3
- package/dist/src/generate/env-files.js +0 -26
- package/dist/src/generate/ide-helpers.js +0 -3
- package/dist/src/generate/index.js +0 -2
- package/dist/src/generate/lib-entries.js +0 -3
- package/dist/src/generate/vscode-custom-data.js +0 -3
- package/dist/src/helpers/component-meta.js +0 -2
- package/dist/src/helpers/index.js +0 -2
- package/dist/src/helpers/lib-entries.js +0 -2
- package/dist/src/helpers/utils.js +0 -2
- package/dist/src/helpers/vscode-custom-data.js +0 -2
- package/dist/src/index.js +0 -2
- package/dist/src/make-command.js +0 -2
- package/dist/src/make-job.js +0 -2
- package/dist/src/make-policy.js +0 -2
- package/dist/src/make-resource.js +0 -2
- package/dist/src/make.js +0 -2
- package/dist/src/orm/base.js +0 -2
- package/dist/src/release.js +0 -3
- package/dist/src/run-action.js +0 -2
- package/dist/src/scaffold-crud.js +0 -2
- package/dist/src/setup/index.js +0 -2
- package/dist/src/setup/ssl.js +0 -2
- package/dist/src/stacks.js +0 -2
- package/dist/src/templates.js +0 -2
- package/dist/src/types.js +0 -2
- package/dist/src/upgrade/dependencies.js +0 -2
- package/dist/src/upgrade/framework-utils.js +0 -2
- package/dist/src/upgrade/index.js +0 -2
- package/dist/src/upgrade.js +0 -2
- /package/dist/{src/auth → auth}/client.js +0 -0
- /package/dist/{src/auth → auth}/prune.js +0 -0
- /package/dist/{src/auth → auth}/setup.js +0 -0
- /package/dist/{src/auth → auth}/token.js +0 -0
- /package/dist/{src/build → build}/cli.js +0 -0
- /package/dist/{src/build → build}/component-libs.js +0 -0
- /package/dist/{src/build → build}/core.js +0 -0
- /package/dist/{src/build → build}/desktop.js +0 -0
- /package/dist/{src/build → build}/docs.js +0 -0
- /package/dist/{src/build → build}/server.js +0 -0
- /package/dist/{src/build → build}/stacks.js +0 -0
- /package/dist/{src/build → build}/views.js +0 -0
- /package/dist/{src/bump.js → bump.js} +0 -0
- /package/dist/{src/cdn → cdn}/invalidate-cache.js +0 -0
- /package/dist/{src/changelog.js → changelog.js} +0 -0
- /package/dist/{src/check → check}/ports.js +0 -0
- /package/dist/{src/clean.js → clean.js} +0 -0
- /package/dist/{src/copy-types.js → copy-types.js} +0 -0
- /package/dist/{src/database → database}/seed.js +0 -0
- /package/dist/{src/deploy → deploy}/create-receipt-rule.js +0 -0
- /package/dist/{src/dev → dev}/components.js +0 -0
- /package/dist/{src/dev → dev}/desktop.js +0 -0
- /package/dist/{src/dev → dev}/docs.js +0 -0
- /package/dist/{src/dev → dev}/system-tray.js +0 -0
- /package/dist/{src/domains → domains}/add.js +0 -0
- /package/dist/{src/domains → domains}/purchase.js +0 -0
- /package/dist/{src/domains → domains}/remove.js +0 -0
- /package/dist/{src/find-projects.js → find-projects.js} +0 -0
- /package/dist/{src/fresh.js → fresh.js} +0 -0
- /package/dist/{src/generate → generate}/action-types.js +0 -0
- /package/dist/{src/generate → generate}/custom-cli-file.js +0 -0
- /package/dist/{src/generate → generate}/pantry-file.js +0 -0
- /package/dist/{src/generate → generate}/symlink-core.js +0 -0
- /package/dist/{src/generate → generate}/types.js +0 -0
- /package/dist/{src/generate → generate}/web-types.js +0 -0
- /package/dist/{src/key-generate.js → key-generate.js} +0 -0
- /package/dist/{src/lint → lint}/fix.js +0 -0
- /package/dist/{src/lint → lint}/index.js +0 -0
- /package/dist/{src/migrate → migrate}/database.js +0 -0
- /package/dist/{src/migrate → migrate}/fresh.js +0 -0
- /package/dist/{src/orm → orm}/test.js +0 -0
- /package/dist/{src/prepublish.js → prepublish.js} +0 -0
- /package/dist/{src/queue → queue}/clear.js +0 -0
- /package/dist/{src/queue → queue}/dlq-purge.js +0 -0
- /package/dist/{src/queue → queue}/dlq-retry.js +0 -0
- /package/dist/{src/queue → queue}/dlq.js +0 -0
- /package/dist/{src/queue → queue}/failed.js +0 -0
- /package/dist/{src/queue → queue}/flush.js +0 -0
- /package/dist/{src/queue → queue}/inspect.js +0 -0
- /package/dist/{src/queue → queue}/list.js +0 -0
- /package/dist/{src/queue → queue}/monitor.js +0 -0
- /package/dist/{src/queue → queue}/pause.js +0 -0
- /package/dist/{src/queue → queue}/quarantine.js +0 -0
- /package/dist/{src/queue → queue}/resume.js +0 -0
- /package/dist/{src/queue → queue}/retry.js +0 -0
- /package/dist/{src/queue → queue}/schedule-list.js +0 -0
- /package/dist/{src/queue → queue}/schedule.js +0 -0
- /package/dist/{src/queue → queue}/status.js +0 -0
- /package/dist/{src/queue → queue}/table.js +0 -0
- /package/dist/{src/queue → queue}/unquarantine.js +0 -0
- /package/dist/{src/queue → queue}/work.js +0 -0
- /package/dist/{src/route → route}/list.js +0 -0
- /package/dist/{src/saas → saas}/setup.js +0 -0
- /package/dist/{src/schedule → schedule}/run.js +0 -0
- /package/dist/{src/search → search}/flush.js +0 -0
- /package/dist/{src/search → search}/import.js +0 -0
- /package/dist/{src/search → search}/settings-list.js +0 -0
- /package/dist/{src/search → search}/settings.js +0 -0
- /package/dist/{src/serve → serve}/api.js +0 -0
- /package/dist/{src/test → test}/feature.js +0 -0
- /package/dist/{src/test → test}/index.js +0 -0
- /package/dist/{src/test → test}/ui.js +0 -0
- /package/dist/{src/test → test}/unit.js +0 -0
- /package/dist/{src/typecheck.js → typecheck.js} +0 -0
- /package/dist/{src/upgrade → upgrade}/binary.js +0 -0
- /package/dist/{src/upgrade → upgrade}/bun.js +0 -0
- /package/dist/{src/upgrade → upgrade}/shell.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.70.
|
|
4
|
+
"version": "0.70.56",
|
|
5
5
|
"description": "The Stacks actions.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -29,17 +29,23 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./dist/index.d.ts",
|
|
32
|
-
"
|
|
33
|
-
"
|
|
32
|
+
"development": "./src/index.ts",
|
|
33
|
+
"bun": "./dist/index.js",
|
|
34
|
+
"import": "./dist/index.js",
|
|
35
|
+
"default": "./dist/index.js"
|
|
34
36
|
},
|
|
35
37
|
"./run-action": {
|
|
36
38
|
"types": "./dist/run-action.d.ts",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
+
"development": "./src/run-action.ts",
|
|
40
|
+
"bun": "./dist/run-action.js",
|
|
41
|
+
"import": "./dist/run-action.js",
|
|
42
|
+
"default": "./dist/run-action.js"
|
|
39
43
|
},
|
|
40
44
|
"./*": {
|
|
41
|
-
"
|
|
42
|
-
"
|
|
45
|
+
"development": "./src/*",
|
|
46
|
+
"bun": "./dist/*",
|
|
47
|
+
"import": "./dist/*",
|
|
48
|
+
"default": "./dist/*"
|
|
43
49
|
}
|
|
44
50
|
},
|
|
45
51
|
"module": "dist/index.js",
|
|
@@ -59,22 +65,22 @@
|
|
|
59
65
|
"@stacksjs/ts-md": "^0.1.1"
|
|
60
66
|
},
|
|
61
67
|
"devDependencies": {
|
|
62
|
-
"@stacksjs/api": "0.70.
|
|
63
|
-
"@stacksjs/cli": "0.70.
|
|
64
|
-
"@stacksjs/config": "0.70.
|
|
65
|
-
"@stacksjs/database": "0.70.
|
|
68
|
+
"@stacksjs/api": "0.70.56",
|
|
69
|
+
"@stacksjs/cli": "0.70.56",
|
|
70
|
+
"@stacksjs/config": "0.70.56",
|
|
71
|
+
"@stacksjs/database": "0.70.56",
|
|
66
72
|
"@stacksjs/tlsx": "^0.13.2",
|
|
67
73
|
"better-dx": "^0.2.12",
|
|
68
|
-
"@stacksjs/dns": "0.70.
|
|
69
|
-
"@stacksjs/enums": "0.70.
|
|
70
|
-
"@stacksjs/env": "0.70.
|
|
71
|
-
"@stacksjs/error-handling": "0.70.
|
|
72
|
-
"@stacksjs/logging": "0.70.
|
|
73
|
-
"@stacksjs/path": "0.70.
|
|
74
|
-
"@stacksjs/security": "0.70.
|
|
75
|
-
"@stacksjs/storage": "0.70.
|
|
76
|
-
"@stacksjs/strings": "0.70.
|
|
77
|
-
"@stacksjs/utils": "0.70.
|
|
78
|
-
"@stacksjs/validation": "0.70.
|
|
74
|
+
"@stacksjs/dns": "0.70.56",
|
|
75
|
+
"@stacksjs/enums": "0.70.56",
|
|
76
|
+
"@stacksjs/env": "0.70.56",
|
|
77
|
+
"@stacksjs/error-handling": "0.70.56",
|
|
78
|
+
"@stacksjs/logging": "0.70.56",
|
|
79
|
+
"@stacksjs/path": "0.70.56",
|
|
80
|
+
"@stacksjs/security": "0.70.56",
|
|
81
|
+
"@stacksjs/storage": "0.70.56",
|
|
82
|
+
"@stacksjs/strings": "0.70.56",
|
|
83
|
+
"@stacksjs/utils": "0.70.56",
|
|
84
|
+
"@stacksjs/validation": "0.70.56"
|
|
79
85
|
}
|
|
80
86
|
}
|
package/dist/src/action.js
DELETED
package/dist/src/actions.js
DELETED
package/dist/src/add.js
DELETED
package/dist/src/build.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Va as B}from"../chunk-9x17v4x2.js";import"../chunk-e8505qz8.js";import"../chunk-ag4fy7cx.js";import"../chunk-s735m9mg.js";import"../chunk-rzhs51h1.js";import"../chunk-4qzb8g3z.js";import{NpmScript as z}from"@stacksjs/enums";import{log as x}from"@stacksjs/logging";import{hasComponents as D,hasFunctions as G}from"@stacksjs/storage";import{runNpmScript as A}from"@stacksjs/utils";async function H(q){if(q.components)await I(q);else if(q.webComponents||q.elements)await E(q);else if(q.functions)await O(q);else if(q.docs)await K(q);else if(q.stacks)await M(q);await B()}async function W(q){return await H(q)}async function I(q){await A(z.GenerateEntries,q),await J(q),await E(q)}async function J(q){if(D())x.info("Building your component library..."),await A(z.BuildComponents,q),x.success("Your component library was built successfully");else x.warn("No components found."),x.info("Before you can build components,"),x.info("you need to have created some in the ./components folder.")}async function E(q){if(x.info("Building your component library for production use & npm/CDN distribution..."),D())await A(z.BuildWebComponents,q),x.success("Your Web Component library was built successfully");else x.info("No components found.")}async function K(q){x.info("Building the documentation site..."),await A(z.BuildDocs,q),x.success("Docs built successfully")}async function M(q){x.info("Building the Stacks Framework..."),await A(z.BuildStacks,q),x.success("Stacks built successfully")}async function O(q){if(G())x.info("Building your functions library for production usages..."),x.info("Production usages include: manual npm distribution and/or CDN distribution"),await A(z.BuildFunctions,q),x.success("Functions library built successfully");else x.info("No functions found")}export{E as webComponentLibrary,J as vueComponentLibrary,M as stacks,H as invoke,O as functionsLibrary,K as docs,I as componentLibraries,W as build};
|
package/dist/src/commit.js
DELETED
package/dist/src/dev/api.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{pb as J}from"../../chunk-4qzb8g3z.js";import{existsSync as Y}from"fs";import Z from"process";import{parseOptions as Q}from"@stacksjs/cli";import{config as T,overridesReady as U}from"@stacksjs/config";import{path as K}from"@stacksjs/path";import{route as L}from"@stacksjs/router";import{generateAutoImportFiles as W,injectGlobalAutoImports as F}from"@stacksjs/server";var v=Q();await U;var X=Number(Z.env.PORT_API)||T.ports?.api||3008,P=K.storagePath("framework/auto-imports/models.ts");if(!Y(P))await W();await F();try{let z=K.appPath("Lib/typesense-dev.ts");if(Y(z)){let B=await import(z);if(typeof B.ensureTypesenseRunning==="function")await B.ensureTypesenseRunning()}}catch(z){let{log:B}=await import("@stacksjs/cli");B.warn(`[api:dev] search engine bootstrap skipped: ${z.message}`)}try{let z=K.appPath("Listener.ts");if(Y(z)){let B=await import(z);if(typeof B.handleEvents==="function")await B.handleEvents()}}catch(z){let{log:B}=await import("@stacksjs/cli");B.warn(`[api:dev] failed to bootstrap event listeners \u2014 dispatched events will be ignored: ${z.message}`)}try{let{startModelMigrationWatcher:z}=await import("./migrate-watcher.js");z()}catch(z){let{log:B}=await import("@stacksjs/cli");B.debug(`[api:dev] auto-migrate watcher not started: ${z.message}`)}var R=await import(K.frameworkPath("defaults/app/Middleware/Cors.ts")),_=R.default;L.use(_.toRouterHandler());var f=/^[a-zA-Z0-9._-]{8,128}$/;L.use(async(z,B)=>{let N=z?.headers?.get?.("x-request-id")||z?.headers?.get?.("X-Request-ID")||"",V=typeof N==="string"&&f.test(N)?N:crypto.randomUUID();z._requestId=V,z._startNs=Z.hrtime.bigint();let C=await B();if(C&&C.status===404&&(C.headers.get("content-type")||"").includes("json"))try{let H=await C.clone().json();if(H&&(H.message==="Not Found"||H.error==="Not Found")){let G=new URL(z.url),O={...H,path:G.pathname,method:z.method,request_id:V},$=new Headers(C.headers);return $.set("X-Request-ID",V),new Response(JSON.stringify(O),{status:404,headers:$})}}catch{}return C});await L.importRoutes();try{await L.serve({port:X,hostname:"127.0.0.1"}),console.log(`
|
|
3
|
-
\u279C API server ready: http://localhost:${X}
|
|
4
|
-
`)}catch(z){if((z?.code||z?.errno)==="EADDRINUSE"||String(z?.message||"").includes("EADDRINUSE"))console.error(`
|
|
5
|
-
[dev/api] Port ${X} is already in use. Kill the other process and re-run \`./buddy dev\`, or set PORT_API to another port.
|
|
6
|
-
`),Z.exit(1);throw z}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../../chunk-4qzb8g3z.js";import{existsSync as $,readdirSync as U,statSync as k}from"fs";import{join as V}from"path";import w from"process";import{projectPath as W,storagePath as D}from"@stacksjs/path";var H=[D("framework/defaults/resources/functions/dashboard"),W("resources/functions"),W("app/Helpers")];async function F(q={}){let B=globalThis,C=[],G=0;for(let J of H){if(!$(J))continue;let K;try{K=U(J)}catch{continue}for(let A of K){let z=V(J,A),M;try{M=k(z)}catch{continue}if(M.isDirectory()){let O;try{O=U(z)}catch{continue}for(let Q of O){if(!X(Q))continue;let Z=V(z,Q),T=await Y(Z,B,q.verbose);G+=T.added,C.push(...T.collisions)}continue}if(!X(A))continue;let N=await Y(z,B,q.verbose);G+=N.added,C.push(...N.collisions)}}if(q.verbose)w.stdout.write(`[dashboard] hoisted ${G} helper globals`+(C.length>0?` (skipped ${C.length} collisions: ${C.slice(0,5).join(", ")}\u2026)`:"")+`
|
|
3
|
-
`)}function X(q){if(!/\.(?:ts|tsx|js|mjs)$/.test(q))return!1;if(q.startsWith("_"))return!1;if(q.endsWith(".test.ts")||q.endsWith(".spec.ts"))return!1;if(q.endsWith(".d.ts"))return!1;return!0}async function Y(q,B,C){let G;try{G=await import(q)}catch{return{added:0,collisions:[]}}let J=[],K=0;for(let[A,z]of Object.entries(G)){if(A==="default"||A.startsWith("_"))continue;if(typeof z==="function"||z&&typeof z==="object"){if(B[A]===void 0)B[A]=z,K++;else if(B[A]!==z)J.push(A)}}return{added:K,collisions:J}}export{F as hoistDashboardGlobals};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Aa as k,Ba as l,Ca as m,qa as a,ra as b,sa as c,ta as d,ua as e,va as f,wa as g,xa as h,ya as i,za as j}from"../../chunk-jv7ry09n.js";import"../../chunk-4qzb8g3z.js";export{k as waitForServer,f as scanModelsDir,d as modelNameToId,i as isPortAvailable,a as iconMap,e as getModelIcon,j as findAvailablePort,b as excludeModels,g as discoverModels,c as dedicatedPages,l as buildSidebarConfig,h as buildManifest,m as buildDashboardUrl};
|
package/dist/src/dev/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Da as a,Ea as b,Fa as c,Ga as d,Ha as e,Ia as f,Ja as g,Ka as h,La as i}from"../../chunk-ny1racy0.js";import"../../chunk-s735m9mg.js";import"../../chunk-rzhs51h1.js";import"../../chunk-4qzb8g3z.js";export{g as runSystemTrayDevServer,b as runFrontendDevServer,i as runDocsDevServer,a as runDevServer,h as runDesktopDevServer,f as runDashboardDevServer,e as runComponentsDevServer,c as runBackendDevServer,d as runApiDevServer};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{pb as R}from"../../chunk-4qzb8g3z.js";import{existsSync as T,watch as U}from"fs";import V from"process";import{log as E}from"@stacksjs/logging";import{path as N}from"@stacksjs/path";var F,J=!1,K=!1;function _(){if(["0","false","off"].includes(String(V.env.STACKS_DEV_AUTO_MIGRATE).toLowerCase()))return;let A=[N.userModelsPath(""),N.storagePath("framework/models")].filter((z)=>{try{return T(z)}catch{return!1}});if(A.length===0)return;let I=(z)=>{if(z&&!z.endsWith(".ts"))return;if(F)clearTimeout(F);F=setTimeout(()=>void O(),400)},G=0;for(let z of A)try{U(z,{recursive:!0},(B,H)=>I(H)),G+=1}catch(B){E.debug(`[dev] model watch failed for ${z}: ${B instanceof Error?B.message:String(B)}`)}if(G>0)E.debug("[dev] auto-migrate watcher active \u2014 model edits will sync the database")}async function O(){if(J){K=!0;return}J=!0;try{let{previewPendingMigrations:A,generateMigrations:I,runDatabaseMigration:G}=await import("@stacksjs/database"),z=await A();if(z.length===0)return;let B=z.filter((Q)=>Q.destructive);if(B.length>0){E.warn(`[dev] ${B.length} destructive schema change${B.length===1?"":"s"} detected \u2014 not auto-applied. Run \`buddy migrate\` to review and apply.`);return}E.info(`[dev] Syncing database to models (${z.length} change${z.length===1?"":"s"})...`);let H=await I();if(H.isErr){E.error("[dev] auto-migrate: generation failed",H.error);return}let L=await G();if(L.isErr){E.error("[dev] auto-migrate: apply failed",L.error);return}E.success("[dev] Database is in sync with your models.")}catch(A){E.warn(`[dev] auto-migrate skipped: ${A instanceof Error?A.message:String(A)}`)}finally{if(J=!1,K){if(K=!1,F)clearTimeout(F);F=setTimeout(()=>void O(),400)}}}export{_ as startModelMigrationWatcher};
|
package/dist/src/dev/views.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{pb as O}from"../../chunk-4qzb8g3z.js";import{AsyncLocalStorage as g}from"async_hooks";import{existsSync as I}from"fs";import{config as G,overridesReady as h}from"@stacksjs/config";import{projectPath as Y}from"@stacksjs/path";var B=new g;function Z(){return B.getStore()??globalThis.__stxServeContext}globalThis.requestContext={cookie(z){return Z()?.cookies?.[z]??null},url(){return Z()?.url??""},locale(){return Z()?.locale??"de"}};var T=Y("serve.ts");try{if(await Bun.file(T).exists())await import(T);else await A()}catch{await A()}function p(z){let H={},J=z.headers.get("cookie")||"";if(!J)return H;for(let M of J.split(";")){let U=M.trim(),Q=U.indexOf("=");if(Q===-1)continue;let N=U.slice(0,Q).trim(),X=U.slice(Q+1).trim();if(!N)continue;try{H[N]=decodeURIComponent(X)}catch{H[N]=X}}return H}async function A(){await h;let{injectGlobalAutoImports:z,isApiBoundRequest:H,proxyToBackend:J}=await import("@stacksjs/server"),{applyRequestLocale:M}=await import("@stacksjs/i18n");await z();let{serve:U}=await import("../../chunk-8r76qydb.js"),{site:Q,i18n:N}=await q(),X="resources/views",$="storage/framework/defaults/resources/views",L=await V(["resources/views/layouts","resources/layouts"])??"resources/views/layouts",w="storage/framework/defaults/resources/layouts",b=await V(["resources/views/components","resources/components"])??"resources/views/components",R=Number(process.env.PORT)||3000,y=Number(process.env.PORT_API)||3008,m=Number(process.env.PORT_DOCS)||G.ports?.docs||3006,C=`http://127.0.0.1:${y}`,j=`http://127.0.0.1:${m}`,v=G?.auth?.defaultTokenName??"auth-token";await U({patterns:[X,$],port:R,componentsDir:"storage/framework/defaults/resources/components",layoutsDir:L,partialsDir:b,fallbackLayoutsDir:w,fallbackPartialsDir:$,quiet:!0,...N&&{i18n:N},...Q?.url&&{site:Q},auth:{cookieName:v,redirectTo:"/login"},onRequest:async(K)=>{let W=new URL(K.url),{maintenanceGate:x}=await import("@stacksjs/server"),F=await x(K);if(F)return F;let{renderBlog:S}=await import("../blog.js"),_=await S(K);if(_)return _;if(W.pathname==="/docs"||W.pathname.startsWith("/docs/"))return J(K,j,"/docs");if(H(K,W.pathname))return J(K,C);if(N&&K.method==="GET"){let E=W.pathname.match(/^\/locale\/([a-z]{2}(?:-[a-z]{2})?)\/?$/i);if(E){let{createLocaleSwitchResponse:k}=await import("@stacksjs/i18n");return k(K,E[1],N)}}let P=await M(K),D={cookies:p(K),url:K.url,locale:P};return globalThis.__stxServeSearch=W.search,globalThis.__stxServeContext=D,B.enterWith(D),null}})}async function V(z){for(let H of z)if(I(Y(H)))return H;return null}function f(z){let H=z.i18n.locales,J=z.i18n.defaultLocale??H[0];return{locales:H,defaultLocale:J,labels:z.i18n.labels??Object.fromEntries(H.map((M)=>[M,M.toUpperCase()])),translations:{},pickerSelector:z.i18n.pickerSelector??"#lang-picker"}}async function d(z){try{let{resolveI18n:H}=await import("@stacksjs/stx");if(typeof H==="function"){let J=H(z,Y());if(J)return J}}catch{}return f(z)}async function q(){let z=Y("site.config.ts");if(!I(z))return{};try{let J=(await import(z)).default;if(!J)return{};if(!J.i18n)return{site:J};let M=await d(J);return{site:J,i18n:M}}catch{}return{}}
|
package/dist/src/examples.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-4qzb8g3z.js";import D from"process";import{NpmScript as z}from"@stacksjs/enums";import{log as q}from"@stacksjs/logging";import{hasComponents as A}from"@stacksjs/storage";import{ExitCode as F}from"@stacksjs/types";import{runNpmScript as B}from"@stacksjs/utils";async function G(f){if(f.components||f.vue)await H(f);else if(f.webComponents||f.elements)await I(f);else q.error("An unsupported option was used. Please try again, check the documentation & report the issue, if needed.")}async function Q(f){return await G(f)}async function H(f){if(A())await B(z.ExampleVue,f),q.success("Your component library was built successfully");else q.info("No components found.")}async function I(f){if(A())q.info("Building your Web Component library..."),await B(z.BuildWebComponents,f),q.success("Your Web Component library was built successfully");else q.info("No components found."),D.exit(F.FatalError)}export{I as webComponentExample,G as invoke,Q as examples,H as componentExample};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import{ia as d}from"../../chunk-5pwpk005.js";import"../../chunk-4qzb8g3z.js";import{log as b}from"@stacksjs/logging";import{hasComponents as f}from"@stacksjs/storage";b.info("Generating component meta...");if(f())d();else b.info("No components found. Skipping component meta generation.");b.success("Generated component meta.");
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../../chunk-4qzb8g3z.js";import{env as P,envEnum as R}from"@stacksjs/env";import{log as T}from"@stacksjs/logging";import{path as I}from"@stacksjs/path";import{storage as D}from"@stacksjs/storage";var O=["APP_NAME","APP_ENV","APP_KEY","APP_URL","APP_DOMAIN","APP_MAINTENANCE","APP_MAINTENANCE_SECRET","APP_COMING_SOON","APP_COMING_SOON_SECRET","APP_ROOT","DEBUG","PORT","PORT_BACKEND","PORT_ADMIN","PORT_LIBRARY","PORT_DESKTOP","PORT_EMAIL","PORT_DOCS","PORT_INSPECT","PORT_API","PORT_SYSTEM_TRAY","API_PREFIX","DOCS_PREFIX","DB_CONNECTION","DB_HOST","DB_PORT","DB_DATABASE","DB_DATABASE_PATH","DB_USERNAME","DB_PASSWORD","DB_PREFIX","DB_SCHEMA","DB_QUERY_LOGGING_ENABLED","DB_QUERY_LOGGING_SLOW_THRESHOLD","DB_QUERY_LOGGING_RETENTION_DAYS","DB_QUERY_LOGGING_PRUNE_FREQUENCY","DB_QUERY_LOGGING_ANALYSIS_ENABLED","DB_QUERY_LOGGING_ANALYZE_ALL","DB_QUERY_LOGGING_EXPLAIN_PLAN","DB_QUERY_LOGGING_SUGGESTIONS","DATABASE_URL","AWS_ACCOUNT_ID","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_DEFAULT_REGION","AWS_DEFAULT_PASSWORD","AWS_REGION","AWS_HOSTED_ZONE_ID","AWS_S3_BUCKET","AWS_S3_PREFIX","AWS_SES_REGION","MAIL_MAILER","MAIL_HOST","MAIL_PORT","MAIL_USERNAME","MAIL_PASSWORD","MAIL_ENCRYPTION","MAIL_FROM_NAME","MAIL_FROM_ADDRESS","MAIL_DOMAIN","MAIL_DRIVER","MAIL_SERVER_MODE","MAIL_SERVER_PATH","SEARCH_ENGINE_DRIVER","MEILISEARCH_HOST","MEILISEARCH_KEY","STRIPE_SECRET_KEY","STRIPE_PUBLISHABLE_KEY","FRONTEND_APP_ENV","FRONTEND_APP_URL","REALTIME_MODE","BROADCAST_DRIVER","BROADCAST_HOST","BROADCAST_PORT","BROADCAST_SCHEME","BROADCAST_APP_ID","BROADCAST_APP_KEY","BROADCAST_APP_SECRET","BROADCAST_CORS_ORIGIN","BROADCAST_DEBUG","BROADCAST_REDIS_ENABLED","BROADCAST_REDIS_PREFIX","BROADCAST_RATE_LIMIT_ENABLED","BROADCAST_METRICS_ENABLED","REDIS_HOST","REDIS_PORT","REDIS_PASSWORD","PUSHER_APP_ID","PUSHER_APP_KEY","PUSHER_APP_SECRET","PUSHER_APP_CLUSTER","PUSHER_APP_USE_TLS","SSL_DOMAINS","LETSENCRYPT_EMAIL","CONNECT_INSTANCE_ALIAS","PHONE_NOTIFY_EMAIL","PHONE_FORWARD_NUMBER","STORAGE_DRIVER","STORAGE_ROOT","STORAGE_PUBLIC_URL","QUEUE_DRIVER","AUTH_USERNAME_FIELD","AUTH_PASSWORD_FIELD","AUTH_TOKEN_EXPIRY","AUTH_TOKEN_ROTATION","AUTH_PASSWORD_RESET_EXPIRE","AUTH_PASSWORD_RESET_THROTTLE"];T.info("Generating type env files...");var N=`
|
|
3
|
-
// This file is auto-generated by Stacks. Do not edit this file manually.
|
|
4
|
-
// If you want to change the environment variables, please edit the .env file.
|
|
5
|
-
//
|
|
6
|
-
// For more information, please visit: https://stacksjs.com/docs
|
|
7
|
-
|
|
8
|
-
declare module 'bun' {
|
|
9
|
-
namespace env {
|
|
10
|
-
${O.map((E)=>{let A=typeof P[E],_=P[E];if(!_)if(R[E])A=R[E]?.map((S)=>`'${S}'`).join(" | "),_=R[E]?.[0];else switch(A){case"number":_="0";break;case"boolean":_=!1;break;default:_=""}if(A="string",typeof _==="string"){if(_.toLowerCase()==="true"||_.toLowerCase()==="false")A="boolean";else if(!Number.isNaN(Number.parseFloat(_))&&Number.isFinite(Number(_)))A="number";else if(R[E])A=R[E].map((S)=>`'${S}'`).join(" | ")}else if(typeof _==="number")A="number";else if(typeof _==="boolean")A="boolean";return`const ${E}: ${A}`}).join(`
|
|
11
|
-
`)}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
`;await D.writeFile(I.frameworkPath("types/env.d.ts"),N);T.info(" - ./storage/framework/env.ts");var L=`
|
|
15
|
-
// This file is auto-generated by Stacks. Do not edit this file manually.
|
|
16
|
-
// If you want to change the environment variables, please edit the .env file.
|
|
17
|
-
//
|
|
18
|
-
// For more information, please visit: https://stacksjs.com/docs
|
|
19
|
-
|
|
20
|
-
export const envKeys = [
|
|
21
|
-
${O.map((E)=>`'${E}'`).join(`,
|
|
22
|
-
`)}
|
|
23
|
-
] as const
|
|
24
|
-
|
|
25
|
-
export type EnvKey = typeof envKeys[number]
|
|
26
|
-
`;await D.writeFile(I.frameworkPath("env.ts"),L);T.info(" - ./storage/framework/env.d.ts");
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import{$a as q,ab as x}from"../../chunk-e8505qz8.js";import"../../chunk-ag4fy7cx.js";import"../../chunk-4qzb8g3z.js";import{log as z}from"@stacksjs/logging";import{hasComponents as A}from"@stacksjs/storage";if(A())await x(),await q();else z.info("No components found. Skipping IDE helper generation.");
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Oa as a,Pa as b,Qa as c,Ra as d,Sa as e,Ta as f,Ua as g,Va as h,Wa as i,Xa as j,Ya as k,Za as l,_a as m}from"../../chunk-9x17v4x2.js";import"../../chunk-e8505qz8.js";import"../../chunk-ag4fy7cx.js";import"../../chunk-s735m9mg.js";import"../../chunk-rzhs51h1.js";import"../../chunk-4qzb8g3z.js";export{i as watchTypes,a as invoke,d as generateWebTypes,e as generateVsCodeCustomData,h as generateTypes,k as generateSeeder,j as generatePantryConfig,m as generateOpenApiSpec,c as generateLibEntries,f as generateIdeHelpers,l as generateCoreSymlink,g as generateComponentMeta,b as generate};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import{ka as i}from"../../chunk-jve1p4dz.js";import"../../chunk-ag4fy7cx.js";import"../../chunk-4qzb8g3z.js";import{library as o}from"@stacksjs/config";import{log as n}from"@stacksjs/logging";import{hasComponents as e,hasFunctions as t}from"@stacksjs/storage";async function r(){if(n.info("Generating library entry points..."),o.releaseable&&e())await i("web-components");else n.info("No components found. Skipping building component entry points.");if(o.releaseable&&t())await i("functions");else n.info("No functions found. Skipping building function entry point.")}await r();export{r as generateLibEntries};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import{$a as x}from"../../chunk-e8505qz8.js";import"../../chunk-ag4fy7cx.js";import"../../chunk-4qzb8g3z.js";import{log as q}from"@stacksjs/logging";import{hasComponents as z}from"@stacksjs/storage";q.info("Generating VS Code custom data...");if(z())await x();else q.info("No components found. Skipping VS Code custom data generation.");q.success("Generated VS Code custom data.");
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ka as a,la as b,ma as c,na as d,oa as e}from"../../chunk-jve1p4dz.js";import"../../chunk-ag4fy7cx.js";import"../../chunk-4qzb8g3z.js";export{a as generateLibEntry,e as generateEntryPointData,c as createWebComponentLibraryEntryPoint,b as createLibraryEntryPoint,d as createFunctionLibraryEntryPoint};
|
package/dist/src/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-e9tcbk71.js";import"../chunk-cdk2r2jd.js";import{q as D,r as E,s as F,t as G,u as H,v as I,w as J,x as K}from"../chunk-pqnzp7x8.js";import{A as ma,y as ka,z as la}from"../chunk-badehrwa.js";import{B as ia,C as ja}from"../chunk-x8nrbsk1.js";import{D as qa}from"../chunk-63swek9d.js";import{$ as da,E as L,F as M,H as N,I as O,J as P,L as Q,M as R,N as S,P as T,Q as U,R as V,S as W,T as X,U as Y,V as Z,W as _,X as $,Y as aa,Z as ba,_ as ca,aa as ea,ba as fa,ca as ga,da as ha}from"../chunk-rj1cbghx.js";import"../chunk-mcwfmqzb.js";import{fa as oa}from"../chunk-8gbewxns.js";import{ga as na}from"../chunk-5hwp0frq.js";import{ha as pa}from"../chunk-nm9h5rye.js";import{pa as C}from"../chunk-vsj8ns4p.js";import{Da as t,Ea as u,Fa as v,Ga as w,Ha as x,Ia as y,Ja as z,Ka as A,La as B}from"../chunk-ny1racy0.js";import{Na as s}from"../chunk-p601xr03.js";import{Oa as f,Pa as g,Qa as h,Ra as i,Sa as j,Ta as k,Ua as l,Va as m,Wa as n,Xa as o,Ya as p,Za as q,_a as r}from"../chunk-9x17v4x2.js";import"../chunk-e8505qz8.js";import"../chunk-ag4fy7cx.js";import"../chunk-s735m9mg.js";import{cb as a}from"../chunk-aazd6qpv.js";import{db as b,eb as c,fb as d}from"../chunk-rzhs51h1.js";import{ib as e}from"../chunk-23thftnv.js";import"../chunk-4qzb8g3z.js";export{n as watchTypes,la as uninstallStack,H as trustCertificate,F as sslCertificatesExist,J as setupSSL,L as setDryRun,ja as scaffoldCrud,z as runSystemTrayDevServer,N as runMake,u as runFrontendDevServer,B as runDocsDevServer,t as runDevServer,A as runDesktopDevServer,y as runDashboardDevServer,x as runComponentsDevServer,s as runCommit,v as runBackendDevServer,w as runApiDevServer,e as runAdd,c as runActions,b as runAction,ia as parseFields,ba as makeStack,qa as makeResource,ea as makeQueueTable,pa as makePolicy,X as makePage,U as makeNotification,W as makeMail,$ as makeLanguage,na as makeJob,Z as makeFunction,R as makeDatabase,P as makeComponent,oa as makeCommand,fa as makeCertificate,O as makeAction,ma as listStacks,K as isSSLSetupComplete,M as isDryRunActive,D as isDomainInHosts,G as isCertificateTrusted,f as invoke,ka as installStack,d as hasAction,i as generateWebTypes,j as generateVsCodeCustomData,m as generateTypes,p as generateSeeder,o as generatePantryConfig,r as generateOpenApiSpec,h as generateLibEntries,k as generateIdeHelpers,q as generateCoreSymlink,l as generateComponentMeta,I as generateCertificates,g as generate,C as discoverPackages,Y as createPage,ca as createNotification,ga as createModel,da as createMigration,ha as createMiddleware,V as createMail,aa as createLanguage,_ as createFunction,T as createFactory,S as createDatabase,Q as createComponent,E as addDomainToHosts,a as Action};
|
package/dist/src/make-command.js
DELETED
package/dist/src/make-job.js
DELETED
package/dist/src/make-policy.js
DELETED
package/dist/src/make.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$ as x,E as a,F as b,G as c,H as d,I as e,J as f,K as g,L as h,M as i,N as j,O as k,P as l,Q as m,R as n,S as o,T as p,U as q,V as r,W as s,X as t,Y as u,Z as v,_ as w,aa as y,ba as z,ca as A,da as B}from"../chunk-rj1cbghx.js";import"../chunk-mcwfmqzb.js";import"../chunk-s735m9mg.js";import"../chunk-rzhs51h1.js";import"../chunk-4qzb8g3z.js";export{a as setDryRun,v as makeStack,y as makeQueueTable,p as makePage,m as makeNotification,o as makeMail,t as makeLanguage,r as makeFunction,i as makeDatabase,f as makeComponent,z as makeCertificate,e as makeAction,d as make,b as isDryRunActive,c as invoke,k as factory,q as createPage,w as createNotification,A as createModel,x as createMigration,B as createMiddleware,n as createMail,u as createLanguage,s as createFunction,l as createFactory,j as createDatabase,h as createComponent,g as createAction};
|
package/dist/src/orm/base.js
DELETED
package/dist/src/release.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
// @bun
|
|
3
|
-
import"../chunk-e9tcbk71.js";import"../chunk-cdk2r2jd.js";import"../chunk-pqnzp7x8.js";import"../chunk-badehrwa.js";import"../chunk-x8nrbsk1.js";import"../chunk-63swek9d.js";import"../chunk-rj1cbghx.js";import"../chunk-mcwfmqzb.js";import"../chunk-8gbewxns.js";import"../chunk-5hwp0frq.js";import"../chunk-nm9h5rye.js";import"../chunk-vsj8ns4p.js";import"../chunk-ny1racy0.js";import"../chunk-p601xr03.js";import"../chunk-9x17v4x2.js";import"../chunk-e8505qz8.js";import"../chunk-ag4fy7cx.js";import"../chunk-s735m9mg.js";import"../chunk-aazd6qpv.js";import{eb as C}from"../chunk-rzhs51h1.js";import"../chunk-23thftnv.js";import"../chunk-4qzb8g3z.js";import{parseOptions as G}from"@stacksjs/cli";import{app as H}from"@stacksjs/config";import{Action as q}from"@stacksjs/enums";import{log as E}from"@stacksjs/logging";import{projectPath as I}from"@stacksjs/path";var J=G()??{},z={};for(let[B,F]of Object.entries(J)){if(B==="--"||B==="_")continue;z[B]=F}var K=z.dryRun===!0||z.dryRun==="true",L=K?[q.GenerateLibraryEntries,q.Bump]:[q.GenerateLibraryEntries,q.LintFix,q.Bump],x=await C(L,{cwd:I(),...z});if(x&&x.isErr)E.error(`Release failed: ${x.error?.message??String(x.error)}`),process.exit(1);E.success(`Successfully released ${H.name}`);
|
package/dist/src/run-action.js
DELETED
package/dist/src/setup/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../../chunk-cdk2r2jd.js";import{q as a,r as b,s as c,t as d,u as e,v as f,w as g,x as h}from"../../chunk-pqnzp7x8.js";import"../../chunk-4qzb8g3z.js";export{e as trustCertificate,c as sslCertificatesExist,g as setupSSL,h as isSSLSetupComplete,a as isDomainInHosts,d as isCertificateTrusted,f as generateCertificates,b as addDomainToHosts};
|
package/dist/src/setup/ssl.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{q as a,r as b,s as c,t as d,u as e,v as f,w as g,x as h}from"../../chunk-pqnzp7x8.js";import"../../chunk-4qzb8g3z.js";export{e as trustCertificate,c as sslCertificatesExist,g as setupSSL,h as isSSLSetupComplete,a as isDomainInHosts,d as isCertificateTrusted,f as generateCertificates,b as addDomainToHosts};
|
package/dist/src/stacks.js
DELETED
package/dist/src/templates.js
DELETED
package/dist/src/types.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-4qzb8g3z.js";import t from"process";import{NpmScript as e}from"@stacksjs/enums";import{log as s}from"@stacksjs/logging";import{ExitCode as i}from"@stacksjs/types";import{runNpmScript as p}from"@stacksjs/utils";async function m(r){let o=await p(e.TypesFix,r);if(o.isErr)s.error("There was an error fixing your types.",o.error),t.exit(i.FatalError);s.success("Types are set")}async function u(r){return await m(r)}export{u as types,m as invoke};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{c as a,d as b,e as c,f as d,g as e,h as f,i as g,j as h,k as i,l as j,m as k,n as l,o as m,p as n}from"../../chunk-n24m8prb.js";import"../../chunk-4qzb8g3z.js";export{g as writeSyncedVersion,e as writeChannel,m as snapshotTree,h as shouldShortCircuit,i as resolveUpgradeMessage,a as resolveUpgradeContext,j as resolveSuccessMessage,c as readVersion,f as readSyncedVersion,d as readChannel,n as diffSnapshots,l as detectLocalStacks,b as buildTemplateString,k as MANAGED_PATHS};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../../chunk-s735m9mg.js";import{db as r}from"../../chunk-rzhs51h1.js";import"../../chunk-4qzb8g3z.js";import e from"process";import{parseArgs as o}from"@stacksjs/cli";import{Action as i}from"@stacksjs/enums";import{ExitCode as t}from"@stacksjs/types";var a=o();if(a?.framework||a?.all)await r(i.UpgradeFramework,a);if(a?.dependencies||a?.all)await r(i.UpgradeDeps,a);if(a?.bun||a?.all)await r(i.UpgradeBun,a);if(a?.shell||a?.all)await r(i.UpgradeShell,a);if(a?.binary||a?.all)await r(i.UpgradeBinary,a);e.exit(t.Success);
|
package/dist/src/upgrade.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import"../chunk-4qzb8g3z.js";import{readFileSync as K}from"fs";import A from"process";import{intro as L,outro as B,runCommand as I}from"@stacksjs/cli";import{NpmScript as M}from"@stacksjs/enums";import{log as G}from"@stacksjs/logging";import{projectPath as J}from"@stacksjs/path";import*as w from"@stacksjs/storage";import{ExitCode as H}from"@stacksjs/types";var{version:Q}=JSON.parse(K(new URL("../package.json",import.meta.url),"utf8"));function _(b){try{console.log("checkForUncommittedChanges",b)}catch(q){console.error(q)}}async function $(b){let z=J("updates");if(w.doesFolderExist(z))await w.deleteFolder(z);G.info("Downloading framework updates..."),await I("giget stacks updates",b),G.success(`Your framework updated correctly to version: v${Q}`)}async function v(){let b=await L("buddy upgrade:dependencies"),q=await I(M.UpgradeDependencies,{cwd:J()});if(q.isErr)await B("While running the upgrade:dependencies command, there was an issue",{startTime:b,useSeconds:!0},q.error),A.exit(H.FatalError);await B("Freshly updated your dependencies.",{startTime:b,useSeconds:!0}),A.exit(H.Success)}export{v as updateDependencies,$ as downloadFrameworkUpdate,_ as checkForUncommittedChanges};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|