Lines 21-61javascript
22 for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27 return function (mod) {
28 if (mod && mod.__esModule) return mod;
30 if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31 __setModuleDefault(result, mod);
35var __importDefault = (this && this.__importDefault) || function (mod) {
36 return (mod && mod.__esModule) ? mod : { "default": mod };
38Object.defineProperty(exports, "__esModule", { value: true });
39exports.resolveProjectSlug = resolveProjectSlug;
40exports.runDev = runDev;
42const child_process_1 = require("child_process");
43const path_1 = __importDefault(require("path"));
HighChild Process
Package source references child process execution.
dist/commands/dev.jsView on unpkg · L41 44const fs_1 = __importDefault(require("fs"));
45const os_1 = __importDefault(require("os"));
46const chalk_1 = __importDefault(require("chalk"));
47const js_yaml_1 = __importDefault(require("js-yaml"));
48const crypto_1 = require("crypto");
49const module_1 = require("module");
51 * Resolve the SA project slug for a workflow entry file and a target env.
53 * Walks up from the entry file to the project root (the directory containing
54 * `solidactions.yaml`), reads the declared `project:` name, and applies the
55 * SAME env→slug rule used by `deploy`: production keeps the bare name, every
56 * other environment appends `-<env>` (e.g. `sdk-test` → `sdk-test-dev`).
58 * Throws when the project root or the `project:` field cannot be found, so the
59 * caller surfaces a clear error instead of fetching against a bogus slug.
61function resolveProjectSlug(entryPath, env) {