onflyt-cli 0.1.1 → 0.1.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/bin/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import "../dist/index.js";
package/dist/index.js CHANGED
@@ -1712,7 +1712,7 @@ var init_config = __esm({
1712
1712
  CONFIG_DIR = join(homedir(), ".onflyt");
1713
1713
  CONFIG_FILE = join(CONFIG_DIR, "config.json");
1714
1714
  PROJECT_CONFIG_FILE = "onflyt.json";
1715
- API_URL = process.env.ONFLYT_API_URL || "";
1715
+ API_URL = process.env.ONFLYT_API_URL || "https://deploy-api.miiglu.com";
1716
1716
  }
1717
1717
  });
1718
1718
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onflyt-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "description": "Onflyt CLI - Deploy Node.js and Python APIs to serverless pods. Pay only per use.",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "main": "dist/index.js",
11
11
  "bin": {
12
- "onflyt": "dist/index.js"
12
+ "onflyt": "./bin/cli.js"
13
13
  },
14
14
  "scripts": {
15
15
  "dev": "tsx src/index.tsx",
@@ -58,4 +58,4 @@
58
58
  "engines": {
59
59
  "node": ">=18.0.0"
60
60
  }
61
- }
61
+ }
package/src/lib/config.ts CHANGED
@@ -6,7 +6,7 @@ const CONFIG_DIR = join(homedir(), ".onflyt");
6
6
  const CONFIG_FILE = join(CONFIG_DIR, "config.json");
7
7
  const PROJECT_CONFIG_FILE = "onflyt.json";
8
8
 
9
- export const API_URL = process.env.ONFLYT_API_URL || "";
9
+ export const API_URL = process.env.ONFLYT_API_URL || "__ONFLYT_API_URL__";
10
10
 
11
11
  export interface Config {
12
12
  token?: string;