@stacksjs/buddy 0.75.555 → 0.75.557
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/upgrade.js +1 -1
- package/package.json +58 -58
package/dist/commands/upgrade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import process from"node:process";import{runUpgrade}from"@stacksjs/actions/upgrade/run";import{intro,log,onUnknownSubcommand,outro}from"@stacksjs/cli";import{ExitCode}from"@stacksjs/types";import{resultFailed}from"../result";export function upgrade(buddy){const descriptions={upgrade:"Upgrade the Stacks framework to the latest version",version:"Install a specific version (e.g., 0.70.23)",canary:"Upgrade to the latest canary (bleeding-edge `main`) build",stable:"Switch to the latest vetted stable release",dryRun:"Preview the selected upgrades without writing, installing, or compiling",allowDowngrade:"Accept a release that moves a dependency this app declares to an older version (refused by default)",force:"Force re-download, bypassing cache and version checks",from:"Sync from a local stacks checkout (e.g. ~/Code/stacks). Skips GitHub.",noPostinstall:"Skip dependency installation and post-sync hooks (auto-imports, database types, migrations, AI setup)",verbose:"Enable verbose output",dependencies:"Upgrade your dependencies (pantry.yaml & package.json)",bun:"Upgrade Bun to the latest version",shell:"Upgrade the shell integration (currently only supports Oh My Zsh)",binary:"Upgrade the `stacks` binary to the latest version",project:"Target a specific project",all:"Upgrade framework, dependencies, Bun, shell integration, and binary"};buddy.command("upgrade",descriptions.upgrade).option("-V, --version <version>",descriptions.version).option("--canary",descriptions.canary,{default:false}).option("--stable",descriptions.stable,{default:false}).option("--dry-run",descriptions.dryRun,{default:false}).option("--allow-downgrade",descriptions.allowDowngrade,{default:false}).option("-f, --force",descriptions.force,{default:false}).option("--from <path>",descriptions.from).option("--no-postinstall",descriptions.noPostinstall).option("--verbose",descriptions.verbose,{default:false}).alias("update").example("buddy upgrade").example("buddy update").example("buddy upgrade --from ~/Code/stacks").example("buddy upgrade --version 0.70.23").example("buddy upgrade --dry-run").example("buddy upgrade --allow-downgrade").example("buddy upgrade --canary").example("buddy upgrade --stable").example("buddy upgrade --force").action(async(options)=>{log.debug("Running `buddy upgrade` ...",options);const opts={...options};if(opts.postinstall===false){delete opts.postinstall;opts.noPostinstall=true}const perf=await intro("buddy upgrade");const result=await runUpgrade({...opts,framework:true});if(resultFailed(result)){await outro("While running buddy upgrade, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"Upgrade complete.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});buddy.command("upgrade:all",descriptions.all).option("--from <path>",descriptions.from).option("--dry-run",descriptions.dryRun,{default:false}).option("--canary",descriptions.canary,{default:false}).option("-f, --force",descriptions.force,{default:false}).option("-p, --project [project]",descriptions.project,{default:false}).option("--verbose",descriptions.verbose,{default:false}).example("buddy upgrade:all").action(async(options)=>{log.debug("Running `buddy upgrade:all` ...",options);const perf=await intro("buddy upgrade:all");options.all=true;const result=await runUpgrade(options);if(resultFailed(result)){await outro("While running buddy upgrade:all, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"All upgrades complete.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});buddy.command("upgrade:dependencies",descriptions.dependencies).option("--dry-run",descriptions.dryRun,{default:false}).option("-p, --project [project]",descriptions.project,{default:false}).option("--verbose",descriptions.verbose,{default:false}).alias("upgrade:deps").example("buddy upgrade:dependencies").action(async(options)=>{log.debug("Running `buddy upgrade:dependencies` ...",options);const perf=await intro("buddy upgrade:dependencies");options.dependencies=true;const result=await runUpgrade(options);if(resultFailed(result)){await outro("While running buddy upgrade:dependencies, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"Dependencies upgraded.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});buddy.command("upgrade:bun",descriptions.bun).option("--dry-run",descriptions.dryRun,{default:false}).option("--verbose",descriptions.verbose,{default:false}).example("buddy upgrade:bun").action(async(options)=>{log.debug("Running `buddy upgrade:bun` ...",options);const perf=await intro("buddy upgrade:bun");const result=await runUpgrade({...options,bun:true});if(resultFailed(result)){await outro("While running buddy upgrade:bun, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"Bun upgraded.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});buddy.command("upgrade:shell",descriptions.shell).option("--dry-run",descriptions.dryRun,{default:false}).option("--verbose",descriptions.verbose,{default:false}).example("buddy upgrade:shell").action(async(options)=>{log.debug("Running `buddy upgrade:shell` ...",options);const perf=await intro("buddy upgrade:shell");const result=await runUpgrade({...options,shell:true});if(resultFailed(result)){await outro("While running buddy upgrade:shell, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"Shell integration upgraded.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});buddy.command("upgrade:binary",descriptions.binary).option("--dry-run",descriptions.dryRun,{default:false}).option("--verbose",descriptions.verbose,{default:false}).example("buddy upgrade:binary").action(async(options)=>{if(process.getuid&&process.getuid()!==0){log.warn("To upgrade the binary, you need to run this command with sudo, or as root.");await log.flush();process.exit(ExitCode.FatalError)}log.debug("Running `buddy upgrade:binary` ...",options);const perf=await intro("buddy upgrade:binary");const result=await runUpgrade({...options,binary:true});if(resultFailed(result)){await outro("While running buddy upgrade:binary, there was an issue",{startTime:perf,useSeconds:true},result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Upgrade preview complete.":"Binary upgraded.",{startTime:perf,useSeconds:true});process.exit(ExitCode.Success)});onUnknownSubcommand(buddy,"upgrade")}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/buddy",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.557",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -95,73 +95,73 @@
|
|
|
95
95
|
"prepublishOnly": "bun run build"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@stacksjs/actions": "0.75.
|
|
99
|
-
"@stacksjs/docs": "0.75.
|
|
100
|
-
"@stacksjs/ai": "0.75.
|
|
101
|
-
"@stacksjs/alias": "0.75.
|
|
102
|
-
"@stacksjs/analytics": "0.75.
|
|
103
|
-
"@stacksjs/api": "0.75.
|
|
104
|
-
"@stacksjs/arrays": "0.75.
|
|
105
|
-
"@stacksjs/auth": "0.75.
|
|
106
|
-
"@stacksjs/browser-extension": "0.75.
|
|
107
|
-
"@stacksjs/build": "0.75.
|
|
98
|
+
"@stacksjs/actions": "0.75.557",
|
|
99
|
+
"@stacksjs/docs": "0.75.557",
|
|
100
|
+
"@stacksjs/ai": "0.75.557",
|
|
101
|
+
"@stacksjs/alias": "0.75.557",
|
|
102
|
+
"@stacksjs/analytics": "0.75.557",
|
|
103
|
+
"@stacksjs/api": "0.75.557",
|
|
104
|
+
"@stacksjs/arrays": "0.75.557",
|
|
105
|
+
"@stacksjs/auth": "0.75.557",
|
|
106
|
+
"@stacksjs/browser-extension": "0.75.557",
|
|
107
|
+
"@stacksjs/build": "0.75.557",
|
|
108
108
|
"@stacksjs/bumpx": "^0.2.26",
|
|
109
|
-
"@stacksjs/cache": "0.75.
|
|
110
|
-
"@stacksjs/chat": "0.75.
|
|
109
|
+
"@stacksjs/cache": "0.75.557",
|
|
110
|
+
"@stacksjs/chat": "0.75.557",
|
|
111
111
|
"@stacksjs/clapp": "^0.2.17",
|
|
112
|
-
"@stacksjs/cli": "0.75.
|
|
113
|
-
"@stacksjs/cloud": "0.75.
|
|
114
|
-
"@stacksjs/cms": "0.75.
|
|
115
|
-
"@stacksjs/collections": "0.75.
|
|
116
|
-
"@stacksjs/commerce": "0.75.
|
|
117
|
-
"@stacksjs/config": "0.75.
|
|
118
|
-
"@stacksjs/database": "0.75.
|
|
119
|
-
"@stacksjs/desktop-build": "0.75.
|
|
120
|
-
"@stacksjs/dns": "0.75.
|
|
112
|
+
"@stacksjs/cli": "0.75.557",
|
|
113
|
+
"@stacksjs/cloud": "0.75.557",
|
|
114
|
+
"@stacksjs/cms": "0.75.557",
|
|
115
|
+
"@stacksjs/collections": "0.75.557",
|
|
116
|
+
"@stacksjs/commerce": "0.75.557",
|
|
117
|
+
"@stacksjs/config": "0.75.557",
|
|
118
|
+
"@stacksjs/database": "0.75.557",
|
|
119
|
+
"@stacksjs/desktop-build": "0.75.557",
|
|
120
|
+
"@stacksjs/dns": "0.75.557",
|
|
121
121
|
"@stacksjs/dnsx": "^0.2.3",
|
|
122
|
-
"@stacksjs/email": "0.75.
|
|
123
|
-
"@stacksjs/enums": "0.75.
|
|
124
|
-
"@stacksjs/env": "0.75.
|
|
125
|
-
"@stacksjs/error-handling": "0.75.
|
|
126
|
-
"@stacksjs/events": "0.75.
|
|
127
|
-
"@stacksjs/features": "0.75.
|
|
128
|
-
"@stacksjs/git": "0.75.
|
|
122
|
+
"@stacksjs/email": "0.75.557",
|
|
123
|
+
"@stacksjs/enums": "0.75.557",
|
|
124
|
+
"@stacksjs/env": "0.75.557",
|
|
125
|
+
"@stacksjs/error-handling": "0.75.557",
|
|
126
|
+
"@stacksjs/events": "0.75.557",
|
|
127
|
+
"@stacksjs/features": "0.75.557",
|
|
128
|
+
"@stacksjs/git": "0.75.557",
|
|
129
129
|
"@stacksjs/gitit": "^0.2.5",
|
|
130
|
-
"@stacksjs/health": "0.75.
|
|
130
|
+
"@stacksjs/health": "0.75.557",
|
|
131
131
|
"@stacksjs/httx": "^0.1.10",
|
|
132
|
-
"@stacksjs/image": "0.75.
|
|
133
|
-
"@stacksjs/lint": "0.75.
|
|
134
|
-
"@stacksjs/logging": "0.75.
|
|
135
|
-
"@stacksjs/notifications": "0.75.
|
|
136
|
-
"@stacksjs/objects": "0.75.
|
|
137
|
-
"@stacksjs/orm": "0.75.
|
|
138
|
-
"@stacksjs/path": "0.75.
|
|
139
|
-
"@stacksjs/payments": "0.75.
|
|
140
|
-
"@stacksjs/realtime": "0.75.
|
|
141
|
-
"@stacksjs/router": "0.75.
|
|
132
|
+
"@stacksjs/image": "0.75.557",
|
|
133
|
+
"@stacksjs/lint": "0.75.557",
|
|
134
|
+
"@stacksjs/logging": "0.75.557",
|
|
135
|
+
"@stacksjs/notifications": "0.75.557",
|
|
136
|
+
"@stacksjs/objects": "0.75.557",
|
|
137
|
+
"@stacksjs/orm": "0.75.557",
|
|
138
|
+
"@stacksjs/path": "0.75.557",
|
|
139
|
+
"@stacksjs/payments": "0.75.557",
|
|
140
|
+
"@stacksjs/realtime": "0.75.557",
|
|
141
|
+
"@stacksjs/router": "0.75.557",
|
|
142
142
|
"@stacksjs/rpx": "^0.11.54",
|
|
143
|
-
"@stacksjs/scheduler": "0.75.
|
|
144
|
-
"@stacksjs/search-engine": "0.75.
|
|
145
|
-
"@stacksjs/security": "0.75.
|
|
146
|
-
"@stacksjs/server": "0.75.
|
|
147
|
-
"@stacksjs/sites": "0.75.
|
|
148
|
-
"@stacksjs/skills": "0.75.
|
|
149
|
-
"@stacksjs/socials": "0.75.
|
|
150
|
-
"@stacksjs/storage": "0.75.
|
|
151
|
-
"@stacksjs/strings": "0.75.
|
|
152
|
-
"@stacksjs/stx": "^0.2.
|
|
153
|
-
"@stacksjs/testing": "0.75.
|
|
154
|
-
"@stacksjs/tinker": "0.75.
|
|
143
|
+
"@stacksjs/scheduler": "0.75.557",
|
|
144
|
+
"@stacksjs/search-engine": "0.75.557",
|
|
145
|
+
"@stacksjs/security": "0.75.557",
|
|
146
|
+
"@stacksjs/server": "0.75.557",
|
|
147
|
+
"@stacksjs/sites": "0.75.557",
|
|
148
|
+
"@stacksjs/skills": "0.75.557",
|
|
149
|
+
"@stacksjs/socials": "0.75.557",
|
|
150
|
+
"@stacksjs/storage": "0.75.557",
|
|
151
|
+
"@stacksjs/strings": "0.75.557",
|
|
152
|
+
"@stacksjs/stx": "^0.2.864",
|
|
153
|
+
"@stacksjs/testing": "0.75.557",
|
|
154
|
+
"@stacksjs/tinker": "0.75.557",
|
|
155
155
|
"@stacksjs/tlsx": "^0.13.19",
|
|
156
156
|
"@stacksjs/ts-cloud": "^0.16.126",
|
|
157
|
-
"@stacksjs/tunnel": "0.75.
|
|
158
|
-
"@stacksjs/types": "0.75.
|
|
159
|
-
"@stacksjs/ui": "0.75.
|
|
160
|
-
"@stacksjs/utils": "0.75.
|
|
161
|
-
"@stacksjs/validation": "0.75.
|
|
157
|
+
"@stacksjs/tunnel": "0.75.557",
|
|
158
|
+
"@stacksjs/types": "0.75.557",
|
|
159
|
+
"@stacksjs/ui": "0.75.557",
|
|
160
|
+
"@stacksjs/utils": "0.75.557",
|
|
161
|
+
"@stacksjs/validation": "0.75.557",
|
|
162
162
|
"ajv": "^8.20.0",
|
|
163
163
|
"ajv-formats": "^3.0.1",
|
|
164
|
-
"bun-plugin-stx": "^0.2.
|
|
164
|
+
"bun-plugin-stx": "^0.2.864",
|
|
165
165
|
"ts-pantry": "^0.11.198"
|
|
166
166
|
},
|
|
167
167
|
"devDependencies": {
|