UNPKG

@deepbrainspace/nx-surrealdb

Version:

NX plugin for SurrealDB migrations with modular architecture

19 lines 765 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getProjectRoot = getProjectRoot; exports.resolveProjectPath = resolveProjectPath; const tslib_1 = require("tslib"); const path = tslib_1.__importStar(require("path")); function getProjectRoot(context) { const projectRoot = context.projectGraph?.nodes[context.projectName]?.data.root; if (!projectRoot) { throw new Error(`Project ${context.projectName} not found in project graph`); } return projectRoot; } function resolveProjectPath(context, relativePath) { const basePath = context.root; // Use workspace root const resolved = relativePath ? path.join(basePath, relativePath) : basePath; return resolved; } //# sourceMappingURL=project.js.map