UNPKG

@mbc-cqrs-serverless/cli

Version:

a CLI to get started with MBC CQRS serverless framework

21 lines (20 loc) 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.localBinExists = localBinExists; exports.loadLocalBinCommandLoader = loadLocalBinCommandLoader; const fs_1 = require("fs"); const path_1 = require("path"); const localBinPathSegments = [ process.cwd(), 'node_modules', '@mbc-cqrs-serverless', 'cli', ]; function localBinExists() { return (0, fs_1.existsSync)((0, path_1.join)(...localBinPathSegments)); } function loadLocalBinCommandLoader() { // eslint-disable-next-line @typescript-eslint/no-var-requires const commandLoader = require(path_1.posix.join(...localBinPathSegments, 'dist', 'commands')); return commandLoader; }