@raisenow/tamaro-cli 1.6.0-dev.2 → 1.6.0-dev.3
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.js +13 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1015,6 +1015,9 @@ var promptBucketTamaroEmailConfig2 = async () => {
|
|
|
1015
1015
|
|
|
1016
1016
|
// src/commands/update-epms.ts
|
|
1017
1017
|
import { readFileSync as readFileSync3 } from "fs";
|
|
1018
|
+
import { basename as basename3 } from "path";
|
|
1019
|
+
import { config as dotenvConfig } from "dotenv";
|
|
1020
|
+
import { globSync as globSync2 } from "glob";
|
|
1018
1021
|
import yaml2 from "js-yaml";
|
|
1019
1022
|
|
|
1020
1023
|
// src/lib/epms/assert.ts
|
|
@@ -1190,6 +1193,14 @@ var updateEpms = async (options) => {
|
|
|
1190
1193
|
const { tag, dryrun } = options;
|
|
1191
1194
|
const dryRunFlag = dryrun ? `--dryrun` : "";
|
|
1192
1195
|
const configName = getWidgetUuid();
|
|
1196
|
+
const appEnvFiles = globSync2(paths.appEnv);
|
|
1197
|
+
const filePath = appEnvFiles.find((file) => basename3(file) === ".env");
|
|
1198
|
+
if (!filePath) {
|
|
1199
|
+
halt(
|
|
1200
|
+
'No ".env" file found. Please make sure to have a ".env" file with EPMS credentials in the root of your widget project.'
|
|
1201
|
+
);
|
|
1202
|
+
}
|
|
1203
|
+
dotenvConfig({ path: filePath, quiet: true });
|
|
1193
1204
|
if (!("configYml" in paths)) {
|
|
1194
1205
|
halt("Fatal error, this should never happen");
|
|
1195
1206
|
throw new Error();
|
|
@@ -1220,7 +1231,7 @@ var updateEpms = async (options) => {
|
|
|
1220
1231
|
const body = {
|
|
1221
1232
|
account_uuid: accountUuidStage,
|
|
1222
1233
|
organisation_uuid: organisationUuid,
|
|
1223
|
-
configured_version:
|
|
1234
|
+
configured_version: process.env.CORE_VERSION ?? "unknown",
|
|
1224
1235
|
read_only: false
|
|
1225
1236
|
};
|
|
1226
1237
|
logDataTable({
|
|
@@ -1242,7 +1253,7 @@ var assertIsNotCore5 = (ifCore) => {
|
|
|
1242
1253
|
// package.json
|
|
1243
1254
|
var package_default = {
|
|
1244
1255
|
name: "@raisenow/tamaro-cli",
|
|
1245
|
-
version: "1.6.0-dev.
|
|
1256
|
+
version: "1.6.0-dev.3",
|
|
1246
1257
|
author: {
|
|
1247
1258
|
name: "RaiseNow",
|
|
1248
1259
|
email: "development@raisenow.com"
|