@mostajs/orm-cli 0.6.1 → 0.6.2
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/bin/mostajs.sh +14 -0
- package/package.json +1 -1
package/bin/mostajs.sh
CHANGED
|
@@ -4056,6 +4056,20 @@ SGBD_URI=$bs_uri
|
|
|
4056
4056
|
DB_SCHEMA_STRATEGY=$bs_strategy
|
|
4057
4057
|
CFG
|
|
4058
4058
|
ok " wrote $CONFIG_DIR/config.env (dialect=$bs_dialect)"
|
|
4059
|
+
|
|
4060
|
+
# Also write to .env so the bridge picks it up at runtime
|
|
4061
|
+
# (the bridge reads .env, not .mostajs/config.env)
|
|
4062
|
+
local dotenv="$PROJECT_ROOT/.env"
|
|
4063
|
+
touch "$dotenv"
|
|
4064
|
+
# Remove old entries if present, then append
|
|
4065
|
+
sed -i '/^DB_DIALECT=/d; /^SGBD_URI=/d; /^DB_SCHEMA_STRATEGY=/d' "$dotenv"
|
|
4066
|
+
cat >> "$dotenv" <<ENVVARS
|
|
4067
|
+
DB_DIALECT=$bs_dialect
|
|
4068
|
+
SGBD_URI=$bs_uri
|
|
4069
|
+
DB_SCHEMA_STRATEGY=$bs_strategy
|
|
4070
|
+
ENVVARS
|
|
4071
|
+
ok " wrote DB_DIALECT + SGBD_URI to .env"
|
|
4072
|
+
|
|
4059
4073
|
load_env
|
|
4060
4074
|
fi
|
|
4061
4075
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mostajs/orm-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Universal CLI to integrate @mostajs/orm into any project — one-shot `mostajs bootstrap` migrates a Prisma project (codemod + deps + schema convert + DDL) to 13 databases with zero code change.",
|
|
5
5
|
"author": "Dr Hamid MADANI <drmdh@msn.com>",
|
|
6
6
|
"license": "AGPL-3.0-or-later",
|