@elevasis/sdk 0.5.4 → 0.5.5

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 CHANGED
@@ -43695,13 +43695,15 @@ var esbuild = __toESM(require("esbuild"), 1);
43695
43695
  // src/cli/config.ts
43696
43696
  var DEV_API_URL = "http://localhost:5170";
43697
43697
  var PROD_API_URL = "https://api.elevasis.io";
43698
- function resolveApiUrl(cliOverride) {
43698
+ function resolveApiUrl(cliOverride, prod) {
43699
43699
  if (cliOverride) return cliOverride;
43700
+ if (prod) return PROD_API_URL;
43700
43701
  if (process.env.ELEVASIS_API_URL) return process.env.ELEVASIS_API_URL;
43701
43702
  if (process.env.NODE_ENV === "development") return DEV_API_URL;
43702
43703
  return PROD_API_URL;
43703
43704
  }
43704
- function resolveEnvironment() {
43705
+ function resolveEnvironment(prod) {
43706
+ if (prod) return "production";
43705
43707
  return process.env.NODE_ENV === "development" ? "development" : "production";
43706
43708
  }
43707
43709
 
@@ -43785,7 +43787,7 @@ async function apiDelete(endpoint, apiUrl = resolveApiUrl()) {
43785
43787
  // package.json
43786
43788
  var package_default = {
43787
43789
  name: "@elevasis/sdk",
43788
- version: "0.5.4",
43790
+ version: "0.5.5",
43789
43791
  description: "SDK for building Elevasis organization resources",
43790
43792
  "comment:bin": "IMPORTANT: This package shares the 'elevasis' binary name with @repo/cli. They never conflict because @elevasis/sdk must NEVER be added as a dependency of any workspace package (apps/*, packages/*, organizations/*). Workspace projects use @repo/cli for the 'elevasis' binary. External developers (outside the workspace) get this SDK's binary via npm install.",
43791
43793
  type: "module",
@@ -44304,10 +44306,10 @@ async function generateProjectMap(org) {
44304
44306
  await (0, import_promises.writeFile)((0, import_path.resolve)("docs/project-map.mdx"), lines.join("\n"), "utf-8");
44305
44307
  }
44306
44308
  function registerDeployCommand(program3) {
44307
- program3.command("deploy").description("Validate, bundle, upload, and deploy project resources\n Example: elevasis deploy --api-url http://localhost:5170").option("--api-url <url>", "API URL").option("--entry <path>", "Path to entry file (default: ./src/index.ts)").action(wrapAction("deploy", async (options2) => {
44309
+ program3.command("deploy").description("Validate, bundle, upload, and deploy project resources\n Example: elevasis deploy --api-url http://localhost:5170").option("--api-url <url>", "API URL").option("--entry <path>", "Path to entry file (default: ./src/index.ts)").option("--prod", "Deploy to production (overrides NODE_ENV=development)").action(wrapAction("deploy", async (options2) => {
44308
44310
  const startTime = Date.now();
44309
- const apiUrl = resolveApiUrl(options2.apiUrl);
44310
- const env2 = resolveEnvironment();
44311
+ const apiUrl = resolveApiUrl(options2.apiUrl, options2.prod);
44312
+ const env2 = resolveEnvironment(options2.prod);
44311
44313
  const entryPath = options2.entry ?? "./src/index.ts";
44312
44314
  const authSpinner = ora("Authenticating...").start();
44313
44315
  let orgName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevasis/sdk",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "SDK for building Elevasis organization resources",
5
5
  "comment:bin": "IMPORTANT: This package shares the 'elevasis' binary name with @repo/cli. They never conflict because @elevasis/sdk must NEVER be added as a dependency of any workspace package (apps/*, packages/*, organizations/*). Workspace projects use @repo/cli for the 'elevasis' binary. External developers (outside the workspace) get this SDK's binary via npm install.",
6
6
  "type": "module",
@@ -131,6 +131,7 @@ elevasis deploy
131
131
  | Flag | Description |
132
132
  | ---- | ----------- |
133
133
  | `--api-url <url>` | Override the API base URL (default: production) |
134
+ | `--prod` | Force production target, overriding `NODE_ENV=development` (internal use) |
134
135
 
135
136
  **Environment variables:**
136
137
 
@@ -491,7 +492,8 @@ These flags are accepted by all commands:
491
492
  - Production (default): `https://api.elevasis.io`
492
493
  - Development (`NODE_ENV=development`): `http://localhost:<port>`
493
494
  - Override: set `ELEVASIS_API_URL` or pass `--api-url`
495
+ - Force production: pass `--prod` on `deploy` (overrides `NODE_ENV=development`)
494
496
 
495
497
  ---
496
498
 
497
- **Last Updated:** 2026-02-25
499
+ **Last Updated:** 2026-03-03