@nmakarov/cli-toolkit 0.57.0 → 0.59.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 +13 -6
- package/dist/deploy.cjs.map +1 -1
- package/dist/deploy.js +13 -6
- package/dist/deploy.js.map +1 -1
- package/dist/index.cjs +19 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli-runner.js
CHANGED
|
@@ -2867,6 +2867,12 @@ var Db = class _Db {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
if (!dbConnectionString) {
|
|
2869
2869
|
if (!dbName) {
|
|
2870
|
+
const env = context?.args?.env;
|
|
2871
|
+
if (env && String(env).toLowerCase() !== "local") {
|
|
2872
|
+
throw new ParamError(
|
|
2873
|
+
`Db: dbName not set for env="${env}" (set --dbName or DB_NAME_${String(env).toUpperCase()})`
|
|
2874
|
+
);
|
|
2875
|
+
}
|
|
2870
2876
|
dbName = "local";
|
|
2871
2877
|
}
|
|
2872
2878
|
const paramName = `dbConnectionString${capitalizeFirstLetter(dbName)}`;
|