@stacksjs/buddy 0.75.403 → 0.75.404
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/libs.js +1 -1
- package/package.json +57 -57
package/dist/commands/libs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{relative}from"node:path";import process from"node:process";import{runAction}from"@stacksjs/actions";import{bold,dim,log,onUnknownSubcommand}from"@stacksjs/cli";import{Action}from"@stacksjs/enums";import{ExitCode}from"@stacksjs/types";import{resultFailed}from"../result";export function libs(buddy){const descriptions={list:"List the packages this project releases out of resources/functions and resources/components",build:"Build every configured library package",publish:"Publish the built library packages through pantry",json:"Print the resolved packages as JSON",dryRun:"Report what would be published without uploading anything",verbose:"Enable verbose output"};buddy.command("libs",descriptions.list).alias("libs:list").alias("libraries").option("--json",descriptions.json,{default:!1}).option("--verbose",descriptions.verbose,{default:!1}).example("buddy libs").action(async(options)=>{const{resolveLibraryPackages,LibraryConfigError}=await import("@stacksjs/actions")
|
|
1
|
+
import{relative}from"node:path";import process from"node:process";import{runAction}from"@stacksjs/actions";import{bold,dim,log,onUnknownSubcommand}from"@stacksjs/cli";import{Action}from"@stacksjs/enums";import{ExitCode}from"@stacksjs/types";import{resultFailed}from"../result";export function libs(buddy){const descriptions={list:"List the packages this project releases out of resources/functions and resources/components",build:"Build every configured library package",publish:"Publish the built library packages through pantry",json:"Print the resolved packages as JSON",dryRun:"Report what would be published without uploading anything",verbose:"Enable verbose output"};buddy.command("libs",descriptions.list).alias("libs:list").alias("libraries").option("--json",descriptions.json,{default:!1}).option("--verbose",descriptions.verbose,{default:!1}).example("buddy libs").action(async(options)=>{const{configuredLibrary,resolveLibraryPackages,LibraryConfigError}=await import("@stacksjs/actions");try{const packages=await resolveLibraryPackages(await configuredLibrary());if(options.json){console.log(JSON.stringify(packages.map((pkg)=>({name:pkg.name,kind:pkg.kind,dir:relative(process.cwd(),pkg.dir),private:pkg.private,runtime:pkg.runtime,sources:pkg.sources.map((source)=>relative(process.cwd(),source))})),null,2));return}if(!packages.length){log.info("No library packages are configured. Add one to `packages` in config/library.ts.");return}for(const pkg of packages){console.log(`${bold(pkg.name)} ${dim(`(${pkg.kind}${pkg.private?", private":""})`)}`);console.log(dim(` \u2192 ${relative(process.cwd(),pkg.dir)}`));for(const source of pkg.sources)console.log(dim(` \xB7 ${relative(process.cwd(),source)}`))}}catch(error){if(error instanceof LibraryConfigError){await log.exit(error.message,1);return}throw error}});buddy.command("libs:build",descriptions.build).option("--verbose",descriptions.verbose,{default:!1}).action(async(options)=>{const result=await runAction(Action.BuildLibs,options);if(resultFailed(result)){await log.error("Failed to build the library packages.",result.error);process.exit(ExitCode.FatalError)}});buddy.command("libs:publish",descriptions.publish).option("--dry-run",descriptions.dryRun,{default:!1}).option("--verbose",descriptions.verbose,{default:!1}).example("buddy libs:publish --dry-run").action(async(options)=>{const result=await runAction(Action.LibraryPublish,{...options,verbose:!0});if(resultFailed(result)){await log.error("Failed to publish the library packages.",result.error);process.exit(ExitCode.FatalError)}});onUnknownSubcommand(buddy,"libs")}
|
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.404",
|
|
6
6
|
"description": "Meet Buddy. The Stacks runtime.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -95,72 +95,72 @@
|
|
|
95
95
|
"prepublishOnly": "bun run build"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@stacksjs/actions": "0.75.
|
|
99
|
-
"@stacksjs/ai": "0.75.
|
|
100
|
-
"@stacksjs/alias": "0.75.
|
|
101
|
-
"@stacksjs/analytics": "0.75.
|
|
102
|
-
"@stacksjs/api": "0.75.
|
|
103
|
-
"@stacksjs/arrays": "0.75.
|
|
104
|
-
"@stacksjs/auth": "0.75.
|
|
105
|
-
"@stacksjs/browser-extension": "0.75.
|
|
106
|
-
"@stacksjs/build": "0.75.
|
|
98
|
+
"@stacksjs/actions": "0.75.404",
|
|
99
|
+
"@stacksjs/ai": "0.75.404",
|
|
100
|
+
"@stacksjs/alias": "0.75.404",
|
|
101
|
+
"@stacksjs/analytics": "0.75.404",
|
|
102
|
+
"@stacksjs/api": "0.75.404",
|
|
103
|
+
"@stacksjs/arrays": "0.75.404",
|
|
104
|
+
"@stacksjs/auth": "0.75.404",
|
|
105
|
+
"@stacksjs/browser-extension": "0.75.404",
|
|
106
|
+
"@stacksjs/build": "0.75.404",
|
|
107
107
|
"@stacksjs/bumpx": "^0.2.26",
|
|
108
|
-
"@stacksjs/cache": "0.75.
|
|
109
|
-
"@stacksjs/chat": "0.75.
|
|
108
|
+
"@stacksjs/cache": "0.75.404",
|
|
109
|
+
"@stacksjs/chat": "0.75.404",
|
|
110
110
|
"@stacksjs/clapp": "^0.2.16",
|
|
111
|
-
"@stacksjs/cli": "0.75.
|
|
112
|
-
"@stacksjs/cloud": "0.75.
|
|
113
|
-
"@stacksjs/cms": "0.75.
|
|
114
|
-
"@stacksjs/collections": "0.75.
|
|
115
|
-
"@stacksjs/commerce": "0.75.
|
|
116
|
-
"@stacksjs/config": "0.75.
|
|
117
|
-
"@stacksjs/database": "0.75.
|
|
118
|
-
"@stacksjs/desktop-build": "0.75.
|
|
119
|
-
"@stacksjs/dns": "0.75.
|
|
111
|
+
"@stacksjs/cli": "0.75.404",
|
|
112
|
+
"@stacksjs/cloud": "0.75.404",
|
|
113
|
+
"@stacksjs/cms": "0.75.404",
|
|
114
|
+
"@stacksjs/collections": "0.75.404",
|
|
115
|
+
"@stacksjs/commerce": "0.75.404",
|
|
116
|
+
"@stacksjs/config": "0.75.404",
|
|
117
|
+
"@stacksjs/database": "0.75.404",
|
|
118
|
+
"@stacksjs/desktop-build": "0.75.404",
|
|
119
|
+
"@stacksjs/dns": "0.75.404",
|
|
120
120
|
"@stacksjs/dnsx": "^0.2.3",
|
|
121
|
-
"@stacksjs/email": "0.75.
|
|
122
|
-
"@stacksjs/enums": "0.75.
|
|
123
|
-
"@stacksjs/env": "0.75.
|
|
124
|
-
"@stacksjs/error-handling": "0.75.
|
|
125
|
-
"@stacksjs/events": "0.75.
|
|
126
|
-
"@stacksjs/features": "0.75.
|
|
127
|
-
"@stacksjs/git": "0.75.
|
|
121
|
+
"@stacksjs/email": "0.75.404",
|
|
122
|
+
"@stacksjs/enums": "0.75.404",
|
|
123
|
+
"@stacksjs/env": "0.75.404",
|
|
124
|
+
"@stacksjs/error-handling": "0.75.404",
|
|
125
|
+
"@stacksjs/events": "0.75.404",
|
|
126
|
+
"@stacksjs/features": "0.75.404",
|
|
127
|
+
"@stacksjs/git": "0.75.404",
|
|
128
128
|
"@stacksjs/gitit": "^0.2.5",
|
|
129
|
-
"@stacksjs/health": "0.75.
|
|
129
|
+
"@stacksjs/health": "0.75.404",
|
|
130
130
|
"@stacksjs/httx": "^0.1.10",
|
|
131
|
-
"@stacksjs/image": "0.75.
|
|
132
|
-
"@stacksjs/lint": "0.75.
|
|
133
|
-
"@stacksjs/logging": "0.75.
|
|
134
|
-
"@stacksjs/notifications": "0.75.
|
|
135
|
-
"@stacksjs/objects": "0.75.
|
|
136
|
-
"@stacksjs/orm": "0.75.
|
|
137
|
-
"@stacksjs/path": "0.75.
|
|
138
|
-
"@stacksjs/payments": "0.75.
|
|
139
|
-
"@stacksjs/realtime": "0.75.
|
|
140
|
-
"@stacksjs/router": "0.75.
|
|
131
|
+
"@stacksjs/image": "0.75.404",
|
|
132
|
+
"@stacksjs/lint": "0.75.404",
|
|
133
|
+
"@stacksjs/logging": "0.75.404",
|
|
134
|
+
"@stacksjs/notifications": "0.75.404",
|
|
135
|
+
"@stacksjs/objects": "0.75.404",
|
|
136
|
+
"@stacksjs/orm": "0.75.404",
|
|
137
|
+
"@stacksjs/path": "0.75.404",
|
|
138
|
+
"@stacksjs/payments": "0.75.404",
|
|
139
|
+
"@stacksjs/realtime": "0.75.404",
|
|
140
|
+
"@stacksjs/router": "0.75.404",
|
|
141
141
|
"@stacksjs/rpx": "^0.11.54",
|
|
142
|
-
"@stacksjs/scheduler": "0.75.
|
|
143
|
-
"@stacksjs/search-engine": "0.75.
|
|
144
|
-
"@stacksjs/security": "0.75.
|
|
145
|
-
"@stacksjs/server": "0.75.
|
|
146
|
-
"@stacksjs/sites": "0.75.
|
|
147
|
-
"@stacksjs/skills": "0.75.
|
|
148
|
-
"@stacksjs/socials": "0.75.
|
|
149
|
-
"@stacksjs/storage": "0.75.
|
|
150
|
-
"@stacksjs/strings": "0.75.
|
|
151
|
-
"@stacksjs/stx": "0.2.
|
|
152
|
-
"@stacksjs/testing": "0.75.
|
|
153
|
-
"@stacksjs/tinker": "0.75.
|
|
142
|
+
"@stacksjs/scheduler": "0.75.404",
|
|
143
|
+
"@stacksjs/search-engine": "0.75.404",
|
|
144
|
+
"@stacksjs/security": "0.75.404",
|
|
145
|
+
"@stacksjs/server": "0.75.404",
|
|
146
|
+
"@stacksjs/sites": "0.75.404",
|
|
147
|
+
"@stacksjs/skills": "0.75.404",
|
|
148
|
+
"@stacksjs/socials": "0.75.404",
|
|
149
|
+
"@stacksjs/storage": "0.75.404",
|
|
150
|
+
"@stacksjs/strings": "0.75.404",
|
|
151
|
+
"@stacksjs/stx": "0.2.779",
|
|
152
|
+
"@stacksjs/testing": "0.75.404",
|
|
153
|
+
"@stacksjs/tinker": "0.75.404",
|
|
154
154
|
"@stacksjs/tlsx": "^0.13.19",
|
|
155
155
|
"@stacksjs/ts-cloud": "^0.16.91",
|
|
156
|
-
"@stacksjs/tunnel": "0.75.
|
|
157
|
-
"@stacksjs/types": "0.75.
|
|
158
|
-
"@stacksjs/ui": "0.75.
|
|
159
|
-
"@stacksjs/utils": "0.75.
|
|
160
|
-
"@stacksjs/validation": "0.75.
|
|
156
|
+
"@stacksjs/tunnel": "0.75.404",
|
|
157
|
+
"@stacksjs/types": "0.75.404",
|
|
158
|
+
"@stacksjs/ui": "0.75.404",
|
|
159
|
+
"@stacksjs/utils": "0.75.404",
|
|
160
|
+
"@stacksjs/validation": "0.75.404",
|
|
161
161
|
"ajv": "^8.20.0",
|
|
162
162
|
"ajv-formats": "^3.0.1",
|
|
163
|
-
"bun-plugin-stx": "0.2.
|
|
163
|
+
"bun-plugin-stx": "0.2.779",
|
|
164
164
|
"ts-pantry": "^0.11.146"
|
|
165
165
|
},
|
|
166
166
|
"devDependencies": {
|