@elevasis/sdk 1.5.0 → 1.5.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/dist/cli.cjs +12 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -43863,7 +43863,13 @@ function resolveApiKey(prod) {
|
|
|
43863
43863
|
return process.env.ELEVASIS_PLATFORM_KEY ?? "";
|
|
43864
43864
|
}
|
|
43865
43865
|
function findEnvFile(startDir) {
|
|
43866
|
-
const
|
|
43866
|
+
const raw = (0, import_path.resolve)(startDir ?? process.cwd());
|
|
43867
|
+
let cwd;
|
|
43868
|
+
try {
|
|
43869
|
+
cwd = (0, import_fs.realpathSync)(raw);
|
|
43870
|
+
} catch {
|
|
43871
|
+
cwd = raw;
|
|
43872
|
+
}
|
|
43867
43873
|
let dir = cwd;
|
|
43868
43874
|
while (true) {
|
|
43869
43875
|
const candidate = (0, import_path.resolve)(dir, ".env");
|
|
@@ -43984,7 +43990,7 @@ function wrapAction(commandName, fn) {
|
|
|
43984
43990
|
// package.json
|
|
43985
43991
|
var package_default = {
|
|
43986
43992
|
name: "@elevasis/sdk",
|
|
43987
|
-
version: "1.5.
|
|
43993
|
+
version: "1.5.2",
|
|
43988
43994
|
description: "SDK for building Elevasis organization resources",
|
|
43989
43995
|
type: "module",
|
|
43990
43996
|
bin: {
|
|
@@ -45845,7 +45851,10 @@ function registerProjectCommands(program3) {
|
|
|
45845
45851
|
// src/cli/index.ts
|
|
45846
45852
|
var envPath = findEnvFile();
|
|
45847
45853
|
if (envPath) {
|
|
45848
|
-
(0, import_dotenv.config)({ path: envPath, override: true });
|
|
45854
|
+
const result = (0, import_dotenv.config)({ path: envPath, override: true });
|
|
45855
|
+
if (result.error) {
|
|
45856
|
+
console.error(source_default.yellow(`\u26A0 Found .env at ${envPath} but failed to load it: ${result.error.message}`));
|
|
45857
|
+
}
|
|
45849
45858
|
} else if (!process.env.ELEVASIS_PLATFORM_KEY) {
|
|
45850
45859
|
const cwd = process.cwd();
|
|
45851
45860
|
console.error(source_default.yellow(`\u26A0 No .env file found (searched upward from ${cwd})`));
|