UNPKG

dce-dev-wizard

Version:

Wizard for managing development apps at Harvard DCE.

23 lines 880 B
"use strict"; /** * The directory of the app code * @author Gabe Abrams */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); // Import libs const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); // Import constants const TOP_LEVEL_DIRECTORY_1 = __importDefault(require("./TOP_LEVEL_DIRECTORY")); // Get project directory let APP_DIRECTORY = TOP_LEVEL_DIRECTORY_1.default; // If there's an "app" subfolder, use that as the app directory const appDir = path_1.default.join(APP_DIRECTORY, '/app'); if (fs_1.default.existsSync(appDir) && fs_1.default.lstatSync(appDir).isDirectory()) { APP_DIRECTORY = appDir; } exports.default = APP_DIRECTORY; //# sourceMappingURL=APP_DIRECTORY.js.map