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>
30 lines
616 B
JavaScript
30 lines
616 B
JavaScript
'use strict';
|
|
|
|
module.exports = function(dirname) {
|
|
var path = require('path');
|
|
var resolve = require('./resolve.js');
|
|
var appRootPath = resolve(dirname);
|
|
|
|
var publicInterface = {
|
|
resolve: function(pathToModule) {
|
|
return path.join(appRootPath, pathToModule);
|
|
},
|
|
|
|
require: function(pathToModule) {
|
|
return require(publicInterface.resolve(pathToModule));
|
|
},
|
|
|
|
toString: function() {
|
|
return appRootPath;
|
|
},
|
|
|
|
setPath: function(explicitlySetPath) {
|
|
appRootPath = path.resolve(explicitlySetPath);
|
|
publicInterface.path = appRootPath;
|
|
},
|
|
|
|
path: appRootPath
|
|
};
|
|
|
|
return publicInterface;
|
|
}; |