UNPKG

@avleon/cli

Version:

> **🚧 This project is in active development.** > > It is **not stable** and **not ready** for live environments. > Use **only for testing, experimentation, or internal evaluation**. > > ####❗ Risks of using this in production: > > - 🔄 Breaking

22 lines (21 loc) 772 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.pathHelper = void 0; const path_1 = __importDefault(require("path")); // export const __filename = fileURLToPath(process.argv[1]) // export const __dirname = path.dirname(__filename) /* */ exports.pathHelper = { appSoucePath(p) { return path_1.default.join(process.cwd(), p ? './src/' + p : './src/'); }, appTestPath(p) { return path_1.default.join(process.cwd(), p ? './test/' + p : './test/'); }, stubPath(p) { return path_1.default.join(__dirname, p ? '../../stubs/' + p : '../../stubs/'); }, };