@solidactions/cli 0.4.0 → 0.4.1

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.
@@ -8,6 +8,7 @@ const child_process_1 = require("child_process");
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const fs_1 = __importDefault(require("fs"));
10
10
  const chalk_1 = __importDefault(require("chalk"));
11
+ const dotenv_1 = __importDefault(require("dotenv"));
11
12
  async function dev(file, options) {
12
13
  // Resolve the workflow file path
13
14
  const filePath = path_1.default.resolve(file);
@@ -35,6 +36,12 @@ async function dev(file, options) {
35
36
  console.log(chalk_1.default.gray('Update to the latest SDK version: npm install @solidactions/sdk@latest'));
36
37
  process.exit(1);
37
38
  }
39
+ // Load .env file from project root
40
+ const envPath = path_1.default.join(projectDir, '.env');
41
+ if (fs_1.default.existsSync(envPath)) {
42
+ dotenv_1.default.config({ path: envPath });
43
+ console.log(chalk_1.default.gray(`Loaded .env from ${projectDir}`));
44
+ }
38
45
  // Validate input JSON if provided
39
46
  const input = options.input || '{}';
40
47
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidactions/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "SolidActions CLI - Deploy and manage workflow automation",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -41,6 +41,7 @@
41
41
  "axios": "^1.6.0",
42
42
  "chalk": "^4.1.2",
43
43
  "commander": "^11.0.0",
44
+ "dotenv": "^17.3.1",
44
45
  "form-data": "^4.0.0",
45
46
  "fs-extra": "^11.0.0",
46
47
  "js-yaml": "^4.1.0",