periderm-cli 0.1.3 → 0.1.4

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/config.js +1 -5
  2. package/package.json +1 -1
package/dist/config.js CHANGED
@@ -1,13 +1,9 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import os from "node:os";
4
- import dotenv from "dotenv";
5
- // Try to load .env from the current working directory (useful for local development)
6
- dotenv.config({ path: path.resolve(process.cwd(), ".env") });
7
4
  const CONFIG_DIR = path.join(os.homedir(), ".periderm");
8
5
  const CONFIG_FILE = path.join(CONFIG_DIR, "config.json");
9
- // Read API URL purely from environment variables (local .env or Vercel config)
10
- const DEFAULT_API_URL = process.env.PERIDERM_API_URL;
6
+ const DEFAULT_API_URL = process.env.PERIDERM_API_URL || "https://periderm-cli.vercel.app";
11
7
  export function readConfig() {
12
8
  try {
13
9
  if (fs.existsSync(CONFIG_FILE)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "periderm-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "A pre-launch checklist for your codebase.",
5
5
  "type": "module",
6
6
  "bin": {