@stacksjs/buddy 0.74.41 → 0.74.42

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.
@@ -1 +1 @@
1
- import{execFileSync}from"node:child_process";import process from"node:process";import{runAction}from"@stacksjs/actions";import{intro,italic,log,onUnknownSubcommand,outro}from"@stacksjs/cli";import{Action}from"@stacksjs/enums";import{ExitCode}from"@stacksjs/types";import{resultFailed}from"../result";const descriptions={release:"Release a new version of your libraries/packages",project:"Target a specific project",dryRun:"Run the release without actually releasing",bump:"Non-interactive bump: patch | minor | major | prepatch | preminor | premajor | prerelease | x.y.z",verbose:"Enable verbose output"};export function release(buddy){buddy.command("release",descriptions.release).option("--dry-run",descriptions.dryRun,{default:!1}).option("-p, --project [project]",descriptions.project,{default:!1}).option("--bump <type>",descriptions.bump).option("--verbose",descriptions.verbose,{default:!1}).action(async(options)=>{log.debug("Running `buddy release` ...",options);if(options.dryRun)log.warn("Dry run enabled. No changes will be made or committed.");const startTime=await intro("buddy release"),result=await runAction(Action.Release,options);if(resultFailed(result)){await log.error("Failed to release",result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Dry run complete. Nothing was committed, tagged or pushed.":"Triggered CI/CD Release via GitHub Actions",{startTime,useSeconds:!0});if(!options.dryRun)log.info(`Follow along: ${italic(resolveGitHubActionsUrl(readOriginRemote()))}`)});onUnknownSubcommand(buddy,"release")}export function resolveGitHubActionsUrl(remoteUrl,repository=process.env.GITHUB_REPOSITORY,serverUrl=process.env.GITHUB_SERVER_URL??"https://github.com"){const repo=repository?.trim()||remoteUrl?.trim().match(/github\.com[/:]([^/\s]+\/[^/\s]+?)(?:\.git)?$/)?.[1];return repo?`${serverUrl.replace(/\/$/,"")}/${repo}/actions`:"https://github.com/stacksjs/stacks/actions"}function readOriginRemote(){try{return execFileSync("git",["config","--get","remote.origin.url"],{encoding:"utf8"}).trim()}catch{return}}
1
+ import{execFileSync}from"node:child_process";import process from"node:process";import{runAction}from"@stacksjs/actions";import{intro,italic,log,onUnknownSubcommand,outro}from"@stacksjs/cli";import{Action}from"@stacksjs/enums";import{ExitCode}from"@stacksjs/types";import{resultFailed}from"../result";const descriptions={release:"Release a new version of your libraries/packages",project:"Target a specific project",dryRun:"Run the release without actually releasing",bump:"Non-interactive bump: patch | minor | major | prepatch | preminor | premajor | prerelease | calendar | x.y.z",verbose:"Enable verbose output"};export function release(buddy){buddy.command("release",descriptions.release).option("--dry-run",descriptions.dryRun,{default:!1}).option("-p, --project [project]",descriptions.project,{default:!1}).option("--bump <type>",descriptions.bump).option("--verbose",descriptions.verbose,{default:!1}).action(async(options)=>{log.debug("Running `buddy release` ...",options);if(options.dryRun)log.warn("Dry run enabled. No changes will be made or committed.");const startTime=await intro("buddy release"),result=await runAction(Action.Release,options);if(resultFailed(result)){await log.error("Failed to release",result.error);process.exit(ExitCode.FatalError)}await outro(options.dryRun?"Dry run complete. Nothing was committed, tagged or pushed.":"Triggered CI/CD Release via GitHub Actions",{startTime,useSeconds:!0});if(!options.dryRun)log.info(`Follow along: ${italic(resolveGitHubActionsUrl(readOriginRemote()))}`)});onUnknownSubcommand(buddy,"release")}export function resolveGitHubActionsUrl(remoteUrl,repository=process.env.GITHUB_REPOSITORY,serverUrl=process.env.GITHUB_SERVER_URL??"https://github.com"){const repo=repository?.trim()||remoteUrl?.trim().match(/github\.com[/:]([^/\s]+\/[^/\s]+?)(?:\.git)?$/)?.[1];return repo?`${serverUrl.replace(/\/$/,"")}/${repo}/actions`:"https://github.com/stacksjs/stacks/actions"}function readOriginRemote(){try{return execFileSync("git",["config","--get","remote.origin.url"],{encoding:"utf8"}).trim()}catch{return}}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/buddy",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.74.41",
5
+ "version": "0.74.42",
6
6
  "description": "Meet Buddy. The Stacks runtime.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -95,66 +95,66 @@
95
95
  "prepublishOnly": "bun run build"
96
96
  },
97
97
  "dependencies": {
98
- "@stacksjs/actions": "^0.74.41",
99
- "@stacksjs/ai": "^0.74.41",
100
- "@stacksjs/alias": "^0.74.41",
101
- "@stacksjs/analytics": "^0.74.41",
102
- "@stacksjs/api": "^0.74.41",
103
- "@stacksjs/arrays": "^0.74.41",
104
- "@stacksjs/auth": "^0.74.41",
105
- "@stacksjs/browser-extension": "^0.74.41",
106
- "@stacksjs/build": "^0.74.41",
107
- "@stacksjs/cache": "^0.74.41",
108
- "@stacksjs/chat": "^0.74.41",
98
+ "@stacksjs/actions": "^0.74.42",
99
+ "@stacksjs/ai": "^0.74.42",
100
+ "@stacksjs/alias": "^0.74.42",
101
+ "@stacksjs/analytics": "^0.74.42",
102
+ "@stacksjs/api": "^0.74.42",
103
+ "@stacksjs/arrays": "^0.74.42",
104
+ "@stacksjs/auth": "^0.74.42",
105
+ "@stacksjs/browser-extension": "^0.74.42",
106
+ "@stacksjs/build": "^0.74.42",
107
+ "@stacksjs/cache": "^0.74.42",
108
+ "@stacksjs/chat": "^0.74.42",
109
109
  "@stacksjs/clapp": "^0.2.12",
110
- "@stacksjs/cli": "^0.74.41",
111
- "@stacksjs/cloud": "^0.74.41",
112
- "@stacksjs/cms": "^0.74.41",
113
- "@stacksjs/collections": "^0.74.41",
114
- "@stacksjs/config": "^0.74.41",
115
- "@stacksjs/database": "^0.74.41",
116
- "@stacksjs/desktop-build": "^0.74.41",
117
- "@stacksjs/dns": "^0.74.41",
110
+ "@stacksjs/cli": "^0.74.42",
111
+ "@stacksjs/cloud": "^0.74.42",
112
+ "@stacksjs/cms": "^0.74.42",
113
+ "@stacksjs/collections": "^0.74.42",
114
+ "@stacksjs/config": "^0.74.42",
115
+ "@stacksjs/database": "^0.74.42",
116
+ "@stacksjs/desktop-build": "^0.74.42",
117
+ "@stacksjs/dns": "^0.74.42",
118
118
  "@stacksjs/dnsx": "^0.2.3",
119
- "@stacksjs/email": "^0.74.41",
120
- "@stacksjs/enums": "^0.74.41",
121
- "@stacksjs/env": "^0.74.41",
122
- "@stacksjs/error-handling": "^0.74.41",
123
- "@stacksjs/events": "^0.74.41",
124
- "@stacksjs/features": "^0.74.41",
125
- "@stacksjs/git": "^0.74.41",
119
+ "@stacksjs/email": "^0.74.42",
120
+ "@stacksjs/enums": "^0.74.42",
121
+ "@stacksjs/env": "^0.74.42",
122
+ "@stacksjs/error-handling": "^0.74.42",
123
+ "@stacksjs/events": "^0.74.42",
124
+ "@stacksjs/features": "^0.74.42",
125
+ "@stacksjs/git": "^0.74.42",
126
126
  "@stacksjs/gitit": "^0.2.5",
127
- "@stacksjs/health": "^0.74.41",
127
+ "@stacksjs/health": "^0.74.42",
128
128
  "@stacksjs/httx": "^0.1.10",
129
- "@stacksjs/image": "^0.74.41",
130
- "@stacksjs/lint": "^0.74.41",
131
- "@stacksjs/logging": "^0.74.41",
132
- "@stacksjs/notifications": "^0.74.41",
133
- "@stacksjs/objects": "^0.74.41",
134
- "@stacksjs/orm": "^0.74.41",
135
- "@stacksjs/path": "^0.74.41",
136
- "@stacksjs/payments": "^0.74.41",
137
- "@stacksjs/realtime": "^0.74.41",
138
- "@stacksjs/router": "^0.74.41",
129
+ "@stacksjs/image": "^0.74.42",
130
+ "@stacksjs/lint": "^0.74.42",
131
+ "@stacksjs/logging": "^0.74.42",
132
+ "@stacksjs/notifications": "^0.74.42",
133
+ "@stacksjs/objects": "^0.74.42",
134
+ "@stacksjs/orm": "^0.74.42",
135
+ "@stacksjs/path": "^0.74.42",
136
+ "@stacksjs/payments": "^0.74.42",
137
+ "@stacksjs/realtime": "^0.74.42",
138
+ "@stacksjs/router": "^0.74.42",
139
139
  "@stacksjs/rpx": "^0.11.53",
140
- "@stacksjs/scheduler": "^0.74.41",
141
- "@stacksjs/search-engine": "^0.74.41",
142
- "@stacksjs/security": "^0.74.41",
143
- "@stacksjs/server": "^0.74.41",
144
- "@stacksjs/sites": "^0.74.41",
145
- "@stacksjs/skills": "^0.74.41",
146
- "@stacksjs/storage": "^0.74.41",
147
- "@stacksjs/strings": "^0.74.41",
140
+ "@stacksjs/scheduler": "^0.74.42",
141
+ "@stacksjs/search-engine": "^0.74.42",
142
+ "@stacksjs/security": "^0.74.42",
143
+ "@stacksjs/server": "^0.74.42",
144
+ "@stacksjs/sites": "^0.74.42",
145
+ "@stacksjs/skills": "^0.74.42",
146
+ "@stacksjs/storage": "^0.74.42",
147
+ "@stacksjs/strings": "^0.74.42",
148
148
  "@stacksjs/stx": "^0.2.285",
149
- "@stacksjs/testing": "^0.74.41",
150
- "@stacksjs/tinker": "^0.74.41",
149
+ "@stacksjs/testing": "^0.74.42",
150
+ "@stacksjs/tinker": "^0.74.42",
151
151
  "@stacksjs/tlsx": "^0.13.19",
152
152
  "@stacksjs/ts-cloud": "^0.16.0",
153
- "@stacksjs/tunnel": "^0.74.41",
154
- "@stacksjs/types": "^0.74.41",
155
- "@stacksjs/ui": "^0.74.41",
156
- "@stacksjs/utils": "^0.74.41",
157
- "@stacksjs/validation": "^0.74.41",
153
+ "@stacksjs/tunnel": "^0.74.42",
154
+ "@stacksjs/types": "^0.74.42",
155
+ "@stacksjs/ui": "^0.74.42",
156
+ "@stacksjs/utils": "^0.74.42",
157
+ "@stacksjs/validation": "^0.74.42",
158
158
  "ajv": "^8.20.0",
159
159
  "ajv-formats": "^3.0.1",
160
160
  "bun-plugin-stx": "^0.2.285",