@storm-software/workspace-tools
Version:
Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.
18 lines (11 loc) • 1.26 kB
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
var _chunkLMYTVXGXjs = require('./chunk-LMYTVXGX.js');
// src/utils/get-project-configurations.ts
var _retrieveworkspacefiles = require('nx/src/project-graph/utils/retrieve-workspace-files');
var getProjectConfigurations = async () => {
return _retrieveworkspacefiles.retrieveProjectConfigurationsWithoutPluginInference.call(void 0,
_chunkLMYTVXGXjs.findWorkspaceRoot.call(void 0, )
);
};
var getProjectConfiguration = (projectName) => _optionalChain([getProjectConfigurations, 'call', _ => _(), 'optionalAccess', _2 => _2[projectName]]);
exports.getProjectConfigurations = getProjectConfigurations; exports.getProjectConfiguration = getProjectConfiguration;