@geekmidas/cli 0.44.0 ā 0.45.0
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/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/deploy/index.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"description": "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
"lodash.kebabcase": "^4.1.1",
|
|
49
49
|
"openapi-typescript": "^7.4.2",
|
|
50
50
|
"prompts": "~2.4.2",
|
|
51
|
+
"@geekmidas/constructs": "~0.7.0",
|
|
51
52
|
"@geekmidas/envkit": "~0.6.0",
|
|
53
|
+
"@geekmidas/errors": "~0.1.0",
|
|
52
54
|
"@geekmidas/logger": "~0.4.0",
|
|
53
|
-
"@geekmidas/schema": "~0.1.0"
|
|
54
|
-
"@geekmidas/constructs": "~0.7.0",
|
|
55
|
-
"@geekmidas/errors": "~0.1.0"
|
|
55
|
+
"@geekmidas/schema": "~0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/lodash.kebabcase": "^4.1.9",
|
package/src/deploy/index.ts
CHANGED
|
@@ -808,12 +808,20 @@ export async function workspaceDeployCommand(
|
|
|
808
808
|
|
|
809
809
|
if (dockerServices.postgres || dockerServices.redis) {
|
|
810
810
|
logger.log('\nš§ Provisioning infrastructure services...');
|
|
811
|
+
// Pass existing URLs from secrets to skip re-creating services
|
|
812
|
+
const existingUrls = stageSecrets
|
|
813
|
+
? {
|
|
814
|
+
DATABASE_URL: stageSecrets.urls?.DATABASE_URL,
|
|
815
|
+
REDIS_URL: stageSecrets.urls?.REDIS_URL,
|
|
816
|
+
}
|
|
817
|
+
: undefined;
|
|
811
818
|
await provisionServices(
|
|
812
819
|
api,
|
|
813
820
|
project.projectId,
|
|
814
821
|
environmentId,
|
|
815
822
|
workspace.name,
|
|
816
823
|
dockerServices,
|
|
824
|
+
existingUrls,
|
|
817
825
|
);
|
|
818
826
|
}
|
|
819
827
|
|