@elevasis/sdk 1.5.1 → 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.
Files changed (2) hide show
  1. package/dist/cli.cjs +3 -15
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -43862,13 +43862,6 @@ function resolveApiKey(prod) {
43862
43862
  }
43863
43863
  return process.env.ELEVASIS_PLATFORM_KEY ?? "";
43864
43864
  }
43865
- function preParseEnvFlag(argv = process.argv) {
43866
- const idx = argv.indexOf("--env");
43867
- if (idx === -1 || idx + 1 >= argv.length) return void 0;
43868
- const envPath2 = (0, import_path.resolve)(argv[idx + 1]);
43869
- argv.splice(idx, 2);
43870
- return envPath2;
43871
- }
43872
43865
  function findEnvFile(startDir) {
43873
43866
  const raw = (0, import_path.resolve)(startDir ?? process.cwd());
43874
43867
  let cwd;
@@ -43997,7 +43990,7 @@ function wrapAction(commandName, fn) {
43997
43990
  // package.json
43998
43991
  var package_default = {
43999
43992
  name: "@elevasis/sdk",
44000
- version: "1.5.1",
43993
+ version: "1.5.2",
44001
43994
  description: "SDK for building Elevasis organization resources",
44002
43995
  type: "module",
44003
43996
  bin: {
@@ -45856,8 +45849,7 @@ function registerProjectCommands(program3) {
45856
45849
  }
45857
45850
 
45858
45851
  // src/cli/index.ts
45859
- var explicitEnvPath = preParseEnvFlag();
45860
- var envPath = explicitEnvPath ?? findEnvFile();
45852
+ var envPath = findEnvFile();
45861
45853
  if (envPath) {
45862
45854
  const result = (0, import_dotenv.config)({ path: envPath, override: true });
45863
45855
  if (result.error) {
@@ -45866,8 +45858,7 @@ if (envPath) {
45866
45858
  } else if (!process.env.ELEVASIS_PLATFORM_KEY) {
45867
45859
  const cwd = process.cwd();
45868
45860
  console.error(source_default.yellow(`\u26A0 No .env file found (searched upward from ${cwd})`));
45869
- console.error(source_default.gray(" Set ELEVASIS_PLATFORM_KEY in a .env at your project root,"));
45870
- console.error(source_default.gray(" or use --env <path> to specify the file location."));
45861
+ console.error(source_default.gray(" Set ELEVASIS_PLATFORM_KEY in a .env at your project root."));
45871
45862
  }
45872
45863
  var program2 = new Command();
45873
45864
  program2.name("elevasis-sdk").description(
@@ -45884,9 +45875,6 @@ Commands:
45884
45875
  elevasis-sdk deployments List deployments
45885
45876
  elevasis-sdk rename <id> --to <newId> [--prod] Rename resource across platform tables
45886
45877
 
45887
- Global options:
45888
- --env <path> Path to .env file (overrides automatic discovery)
45889
-
45890
45878
  Use "elevasis-sdk <command> --help" for more information about a command.`
45891
45879
  ).version(SDK_VERSION);
45892
45880
  registerCheckCommand(program2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "type": "module",
6
6
  "bin": {