!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("process"),require("fs"),require("path"));else if("function"==typeof define&&define.amd)define(["process","fs","path"],n);else{var o="object"==typeof exports?n(require("process"),require("fs"),require("path")):n(e.process,e.fs,e.path);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(global,(function(e,n,o){return function(e){var n={};function o(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=e,o.c=n,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)o.d(r,t,function(n){return e[n]}.bind(null,t));return r},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="dist",o(o.s=11)}([function(n,o){n.exports=e},function(e,o){e.exports=n},,,,,function(e,n){e.exports=o},,,,,function(e,n,o){const r=o(6),t=o(1),i=o(12),{readPackageJson:s}=o(13);!function(){var e;const n=null===(e=__dirname.match(/(.*(?:dbux-cli|@dbux[\\/]cli))/))||void 0===e?void 0:e[1];if(!n)throw new Error('Unable to find "@dbux/cli" directory in: '+__dirname);let o=s(n);const{dependencies:u}=o;let c,a=Object.keys(u);a.push("@dbux/cli"),a.push("socket.io-client"),c=r.resolve(n,"../../..");!function(e){for(let[n,o]of e)o=t.realpathSync(o),i.addAlias(n,o)}(a.map(e=>[e,r.join(c,"node_modules",e)]))}()},function(e,n){e.exports=require("module-alias")},function(e,n,o){const r=o(6),t=o(1),i=o(0),s=o(14);function u(e){const n=t.readFileSync(e);return JSON.parse(n)}function c(e){return u(r.join(e,"package.json"))}function a(){return u(r.join(__dirname,"../..","lerna.json"))}function f(e,n){const o=c(e);let r=o&&o.dependencies;return r?(r=Object.keys(r),r.filter(e=>n.test(e))):[]}function l(e,n=[]){const o=n.map(n=>r.resolve(r.join(e,n)));o.forEach(e=>{if(!t.existsSync(e))throw new Error("invalid dependency does not exist: "+e)});const i=[r.join(e,"/node_modules"),...o.map(e=>[r.join(e,"src"),r.join(e,"node_modules")]).flat().map(e=>r.resolve(e))];return{symlinks:!0,alias:s(n.map(n=>{const o=r.resolve(r.join(e,n));return[function(e){const n=c(e);return n&&n.name}(o),o]})),modules:[...i]}}i.env.BABEL_DISABLE_CACHE=1,e.exports={makeAbsolutePaths:function(e,n){return n.map(n=>r.resolve(r.join(e,n)))},makeResolve:l,readPackageJson:c,readPackageJsonVersion:function(e){return c(e).version},makeResolvePackageJson:function(e,n,o){return l(e,f(e,n))},readLernaJson:a,getDependenciesPackageJson:f,getDbuxVersion:function(e){const n=a();if(!n.version)throw new Error("lerna.json does not have a version.");let{version:o}=n;if("production"===e){const e=o.match(/(\d+)\.(\d+)\.(\d+)(-dev\.\d+)?/);if(!e)throw new Error("Could not parse lerna version: "+o);let[n,r,t,i,s]=e;if([r,t,i]=[r,t,i].map(e=>parseInt(e,10)),s)throw new Error("Cannot make a production build of a dev version.")}return o}}},function(e,n){e.exports=require("object.fromentries")}])}));
//# sourceMappingURL=linkOwnDependencies.js.map