@nmakarov/cli-toolkit 0.57.0 → 0.61.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/cli-runner.cjs +6 -0
- package/dist/cli-runner.cjs.map +1 -1
- package/dist/cli-runner.js +6 -0
- package/dist/cli-runner.js.map +1 -1
- package/dist/db.cjs +6 -0
- package/dist/db.cjs.map +1 -1
- package/dist/db.js +6 -0
- package/dist/db.js.map +1 -1
- package/dist/deploy.cjs +61 -13
- package/dist/deploy.cjs.map +1 -1
- package/dist/deploy.js +61 -13
- package/dist/deploy.js.map +1 -1
- package/dist/index.cjs +67 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +67 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/scripts/deploy/cli.js +2 -2
package/dist/cli-runner.cjs
CHANGED
|
@@ -2883,6 +2883,12 @@ var Db = class _Db {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
if (!dbConnectionString) {
|
|
2885
2885
|
if (!dbName) {
|
|
2886
|
+
const env = context?.args?.env;
|
|
2887
|
+
if (env && String(env).toLowerCase() !== "local") {
|
|
2888
|
+
throw new ParamError(
|
|
2889
|
+
`Db: dbName not set for env="${env}" (set --dbName or DB_NAME_${String(env).toUpperCase()})`
|
|
2890
|
+
);
|
|
2891
|
+
}
|
|
2886
2892
|
dbName = "local";
|
|
2887
2893
|
}
|
|
2888
2894
|
const paramName = `dbConnectionString${capitalizeFirstLetter(dbName)}`;
|