@geekmidas/cli 0.50.0 → 0.51.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 +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/deploy/index.ts +5 -3
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ const node_module = require_chunk.__toESM(require("node:module"));
|
|
|
31
31
|
|
|
32
32
|
//#region package.json
|
|
33
33
|
var name = "@geekmidas/cli";
|
|
34
|
-
var version = "0.
|
|
34
|
+
var version = "0.51.0";
|
|
35
35
|
var description = "CLI tools for building Lambda handlers, server applications, and generating OpenAPI specs";
|
|
36
36
|
var private$1 = false;
|
|
37
37
|
var type = "module";
|
|
@@ -5208,9 +5208,11 @@ async function initializePostgresUsers(api, postgres, serverHostname, users) {
|
|
|
5208
5208
|
logger$1.log(` Creating user "${user.name}" with schema "${schemaName}"...`);
|
|
5209
5209
|
await client.query(`
|
|
5210
5210
|
DO $$ BEGIN
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5211
|
+
IF NOT EXISTS (SELECT FROM pg_roles WHERE rolname = '${user.name}') THEN
|
|
5212
|
+
CREATE USER "${user.name}" WITH PASSWORD '${user.password}';
|
|
5213
|
+
ELSE
|
|
5214
|
+
ALTER USER "${user.name}" WITH PASSWORD '${user.password}';
|
|
5215
|
+
END IF;
|
|
5214
5216
|
END $$;
|
|
5215
5217
|
`);
|
|
5216
5218
|
if (user.usePublicSchema) await client.query(`
|