Marketplace móvil para negocios locales mexicanos. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React Web) - apps/mobile (Expo/React Native) - apps/mcp-server (Claude MCP Server) - apps/whatsapp-service (WhatsApp Business API) - database/ (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
1.0 KiB
JavaScript
25 lines
1.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.isInRootDirectory = isInRootDirectory;
|
|
exports.mergeSourceRoot = mergeSourceRoot;
|
|
const core_1 = require("@angular-devkit/core");
|
|
const defaults_1 = require("../lib/defaults");
|
|
function isInRootDirectory(host, extraFiles = []) {
|
|
const files = ['nest-cli.json', 'nest.json'].concat(extraFiles || []);
|
|
return files.map(file => host.exists(file)).some(isPresent => isPresent);
|
|
}
|
|
function mergeSourceRoot(options) {
|
|
return (host) => {
|
|
const isInRoot = isInRootDirectory(host, ['tsconfig.json', 'package.json']);
|
|
if (!isInRoot) {
|
|
return host;
|
|
}
|
|
const defaultSourceRoot = options.sourceRoot !== undefined ? options.sourceRoot : defaults_1.DEFAULT_PATH_NAME;
|
|
options.path =
|
|
options.path !== undefined
|
|
? (0, core_1.join)((0, core_1.normalize)(defaultSourceRoot), options.path)
|
|
: (0, core_1.normalize)(defaultSourceRoot);
|
|
return host;
|
|
};
|
|
}
|