Socket
Socket
Sign inDemoInstall

unorepo

Package Overview
Dependencies
144
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.25 to 0.0.26

2

dist/unorepo.js
#!/usr/bin/env node
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=11)}([function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a,i=r(2),c=r(5),u=r(18),s="[uno]";function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white";p({text:t,prefixColorFunc:i[e]})}function p(t){var e=t.text,r=t.array,i=t.emoji,u=t.colorFunc,f=t.prefixColorFunc,l=t.omitPrefix,h=f?f(s):s;h=l?"":h+" ",e=e||"";var v=u?u(e):e,m=i?c.get(i)+" ":"";a&&a.stop(),console.log(h+m+v),a&&a.start(),r&&r.forEach(function(e){return p(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t,{text:" "+e,array:null}))})}t.exports={log:f,logArr:function(t,e,r){f(t,r),e&&e.forEach(function(t){return f(" "+t,r)})},red:function(t){f(t,"red")},blue:function(t){f(t,"cyan")},error:function(t,e){p({text:t,array:e,emoji:"x",prefixColorFunc:i.red})},success:function(t,e){p({text:t,array:e,emoji:"white_check_mark",prefixColorFunc:i.green})},expressive:p,startSpinner:function(t){a=u(t).start()},stopSpinner:function(){a.stop(),a=null},prefixText:s}},function(t,e){t.exports=require("execa")},function(t,e){t.exports=require("chalk")},function(t,e){t.exports=require("path")},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}}var a=r(5),i=r(0),c=r(6),u=r(7),s=r(8),f=r(9);function p(){return(p=o(regeneratorRuntime.mark(function t(e,r,n){var o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=(new s).start(),t.next=3,c(r);case 3:if(!(a=t.sent).length){t.next=7;break}return t.next=7,l(e,a,n);case 7:o.stop().log();case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)}function l(t,e){return h.apply(this,arguments)}function h(){return(h=o(regeneratorRuntime.mark(function t(e,r){var n,a,c,s,p,l,h,m,d,y,g,x,w,b=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(w=function(t){return u({command:e,packagePath:t.location,packageName:t.name,shouldLog:!1})},x=function(){return(x=o(regeneratorRuntime.mark(function t(r){var n,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=w(r),t.next=3,n;case 3:return o=t.sent,a=o.packageName,o.failed?i.error('Failed to execute "'.concat(e,'" in ').concat(a)):i.success('Successfully ran "'.concat(e,'" in ').concat(a)),f(o.message),t.abrupt("return",o);case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)},g=function(t){return x.apply(this,arguments)},y=function(){return(y=o(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=r.map(w),n=e.map(function(t){return t.catch(function(t){return t})}),t.next=5,Promise.all(n);case 5:return t.abrupt("return",t.sent);case 8:t.prev=8,t.t0=t.catch(0),i.error(t.t0);case 11:case"end":return t.stop()}},t,null,[[0,8]])}))).apply(this,arguments)},d=function(){return y.apply(this,arguments)},n=b.length>2&&void 0!==b[2]?b[2]:{},a=[],!n.parallel){t.next=15;break}return i.startSpinner('Running "'.concat(e,'" in ').concat(r.length," packages")),t.next=11,d();case 11:a=t.sent,i.stopSpinner(),t.next=46;break;case 15:c=!0,s=!1,p=void 0,t.prev=18,l=r[Symbol.iterator]();case 20:if(c=(h=l.next()).done){t.next=32;break}return m=h.value,i.startSpinner('Running "'.concat(e,'" in ').concat(m.name)),t.t0=a,t.next=26,g(m);case 26:t.t1=t.sent,t.t0.push.call(t.t0,t.t1),i.stopSpinner();case 29:c=!0,t.next=20;break;case 32:t.next=38;break;case 34:t.prev=34,t.t2=t.catch(18),s=!0,p=t.t2;case 38:t.prev=38,t.prev=39,c||null==l.return||l.return();case 41:if(t.prev=41,!s){t.next=44;break}throw p;case 44:return t.finish(41);case 45:return t.finish(38);case 46:v({command:e,results:a,shouldLogMessage:n.parallel});case 47:case"end":return t.stop()}},t,null,[[18,34,38,46],[39,,41,45]])}))).apply(this,arguments)}function v(t){var e=t.command,r=t.results,n=t.shouldLogMessage,o=r.filter(function(t){return!t.failed}).length,c=r.length;i.log(),i.log(),i.log(),o?i.success('Successfully ran "'.concat(e,'" in ').concat(o," (of ").concat(c,") packages")):i.error('Failed to run "'.concat(e,'" in all ').concat(c," packages ").concat(a.get("cry")));var u=!0,s=!1,p=void 0;try{for(var l,h=r[Symbol.iterator]();!(u=(l=h.next()).done);u=!0){var v=l.value,m=v.packageName,d=v.message;(v.failed?i.error:i.success)(" "+m),n&&f(d)}}catch(t){s=!0,p=t}finally{try{u||null==h.return||h.return()}finally{if(s)throw p}}}t.exports={command:function(t,e,r){return p.apply(this,arguments)},executeScriptInPackages:l}},function(t,e){t.exports=require("node-emoji")},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var o=r(1),a=r(2),i=r(0);function c(){var t;return t=regeneratorRuntime.mark(function t(e){var r,n,c,u,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=["ls","--toposort","--json"],t.next=3,o("lerna",r);case 3:return n=t.sent,c=n.stdout,u=JSON.parse(c),s=u.filter(function(t){return!e||t.name.includes(e)}),u.length!==s.length&&i.log(a.magenta("filter ")+JSON.stringify(s.map(function(t){return t.name}))),s.length||i.error("No packages remaining after filter"),t.abrupt("return",s);case 10:case"end":return t.stop()}},t)}),(c=function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t){return c.apply(this,arguments)}},function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var c=r(1),u=r(2),s=r(0),f=r(8),p=r(9);function l(){var t;return t=regeneratorRuntime.mark(function t(e){var r,n,a,i,l,h,v,m,d,y,g,x,w,b;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.command,n=e.packagePath,a=e.shouldLog,i=e.packageName,l=r.split("&&").map(function(t){return t.trim()}),h=(new f).start(),v=[],m=!0,d=!1,y=void 0,t.prev=7,g=l[Symbol.iterator]();case 9:if(m=(x=g.next()).done){t.next=31;break}return w=x.value,!1!==a&&s.expressive({text:w,emoji:"running",colorFunc:u.gray}),t.prev=12,t.next=15,c.command(w,{cwd:n});case 15:(b=t.sent).packageName=i,b.message=b.stdout||b.stderr,p(b.stdout),t.next=28;break;case 21:t.prev=21,t.t0=t.catch(12),!1!==a&&s.error('Failed to run command "'.concat(w,'" in ').concat(i)),t.t0.packageName=i,t.t0.message=t.t0.stderr,t.t0.stdout&&(t.t0.message+="\n\n",t.t0.message+=t.t0.stdout),v.push(t.t0);case 28:m=!0,t.next=9;break;case 31:t.next=37;break;case 33:t.prev=33,t.t1=t.catch(7),d=!0,y=t.t1;case 37:t.prev=37,t.prev=38,m||null==g.return||g.return();case 40:if(t.prev=40,!d){t.next=43;break}throw y;case 43:return t.finish(40);case 44:return t.finish(37);case 45:return!1!==a&&h.stop().log(),t.abrupt("return",o({},v[0],{failed:v.map(function(t){return t.failed}).reduce(function(t,e){return t||e},!1),message:v.map(function(t){return t.message}).join("\n\n"),packageName:i}));case 47:case"end":return t.stop()}},t,null,[[7,33,37,45],[12,21],[38,,40,44]])}),(l=function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t){return l.apply(this,arguments)}},function(t,e,r){var n=r(0);t.exports=function(){var t,e,r={};return r={start:function(){return t=new Date,r},stop:function(){var n=new Date;return e=function(t,e){if(t<Math.pow(10,-e))return t;var r=Math.pow(10,e);return Math.round(t*r)/r}((n-t)/1e3,2),r},log:function(){return n.expressive({text:"Done in ".concat(e,"s"),emoji:"sparkles"}),r}}}},function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(2),i=r(0);t.exports=function(t,e){t&&(t=(t.trim()+"\n ").split("\n").map(function(t){return"".concat(i.prefixText," ").concat(t)}).join("\n"),i.expressive(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({text:a.gray(t),omitPrefix:t.startsWith(i.prefixText)},e)))}},function(t,e){t.exports=require("fs")},function(t,e,r){r(12),t.exports=r(13)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new R(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===l)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?h:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",l="executing",h="completed",v={};function m(){}function d(){}function y(){}var g={};g[a]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(L([])));w&&w!==r&&n.call(w,a)&&(g=w);var b=y.prototype=m.prototype=Object.create(g);function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(r,o){function a(){return new Promise(function(e,a){!function e(r,o,a,i){var c=s(t[r],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(f).then(function(t){u.value=t,a(u)},function(t){return e("throw",t,a,i)})}i(c.arg)}(r,o,e,a)})}return e=e?e.then(a,a):a()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:E}}function E(){return{value:e,done:!0}}return d.prototype=b.constructor=y,y.constructor=d,y[c]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},k(O.prototype),O.prototype[i]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o){var a=new O(u(e,r,n,o));return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},k(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(14),o=r(15);n.command("watch").alias("w").description("Run a script every time a package changes").action(r(16)).option("-s, --script <script>","The script to run on change","build").option("--ext <exts>","The file extensions to watch",o).option("-x, --execute <command>","Instead of a script, run a command on change"),n.command("execute <cmd> [pkg]").alias("x").description("Run an arbitrary command in one or many packages").action(r(4).command).option("-p, --parallel","Run the command in selected packages simultaneously"),n.command("run <script> [<pkg>]").alias("r").description("Run an NPM script in one or many packages").action(r(22)).option("-p, --parallel","Run the script in selected packages simultaneously"),n.command("list").alias("ls").description("Show info about each package").action(r(23)),n.command("dependencies").alias("d").description("Show dependencies of each package").action(r(24)),n.command("bootstrap").alias("b").description("Link packages together via symlinks").action(r(25)),n.version("0.0.25").parse(process.argv)},function(t,e){t.exports=require("commander")},function(t,e){t.exports=function(t){for(var e=0,r=[",","||","|","*","-","/","\\"];e<r.length;e++){var n=r[e];if(t.includes(n))return t.split(n)}return t}},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}}var a=r(3),i=r(17),c=r(0),u=r(19),s=r(6);function f(){return(f=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s();case 3:p(t.sent,e),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),c.error("There was a problem watching the project: ".concat(t.t0));case 10:case"end":return t.stop()}},t,null,[[0,7]])}))).apply(this,arguments)}function p(t,e){return l.apply(this,arguments)}function l(){return(l=o(regeneratorRuntime.mark(function t(e,r){var n,a,s,f,p,l,m,d,y,g;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return g=function(){return(g=o(regeneratorRuntime.mark(function t(e,r){var n,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=function(){return(a=o(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c.blue("".concat(e.toUpperCase(),": ").concat(r)),d=l(r),t.next=4,d;case 4:d=null;case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)},n=function(){return a.apply(this,arguments)},!d){t.next=6;break}d.then(n),t.next=8;break;case 6:return t.next=8,n();case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)},y=function(t,e){return g.apply(this,arguments)},m=function(){return(m=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({path:e,script:r.script,command:r.execute});case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)},l=function(t){return m.apply(this,arguments)},n=h(r.ext),a=n?"Watching ".concat(JSON.stringify(n)," from the following packages:"):"Watching the following packages:",c.logArr(a,e.map(function(t){return t.name}),"green"),s=e.map(function(t){return t.location}),f=v(n,s),p=i.watch(f,{ignored:[/lib|dist|build|bld/,/node_modules/,/(^|[\/\\])\..+$/],persistent:!0,ignoreInitial:!0,awaitWriteFinish:!0}),t.abrupt("return",p.on("add",function(t){return y("add",t)}).on("change",function(t){return y("change",t)}));case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}function h(t){return t?("string"==typeof t&&(t=[t]),t.map(function(t){return t.startsWith("*.")?t:t.startsWith(".")?"*"+t:"*."+t})):null}function v(t,e){if(!t||!t.length)return e;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done);n=!0){var s=c.value,f=!0,p=!1,l=void 0;try{for(var h,v=t[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var m=h.value;r.push(a.join(s,m))}}catch(t){p=!0,l=t}finally{try{f||null==v.return||v.return()}finally{if(p)throw l}}}}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}t.exports=function(t){return f.apply(this,arguments)}},function(t,e){t.exports=require("chokidar")},function(t,e){t.exports=require("ora")},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return t}(t)||a(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function i(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)})}}var u=r(1),s=r(4).executeScriptInPackages,f=r(20),p=r(21);r(7);function l(){return(l=c(regeneratorRuntime.mark(function t(e){var r,n,a,i,c,u,l,v;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.path,n=e.script,a=e.command,i=p(r),c=f(i).name,a=a||"yarn run ".concat(n),u={name:c,location:i},t.next=7,h(c);case 7:return l=t.sent,v=[u].concat(o(l)),t.next=11,s(a,v);case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}function h(t){return v.apply(this,arguments)}function v(){return(v=c(regeneratorRuntime.mark(function t(e){var r,o,a,i,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=["ls","--toposort","--json","--scope",e,"--include-filtered-dependents"],t.next=3,u("lerna",r);case 3:return o=t.sent,a=o.stdout,i=JSON.parse(a),c=n(i),c[0],s=c.slice(1),t.abrupt("return",s);case 7:case"end":return t.stop()}},t)}))).apply(this,arguments)}t.exports=function(t){return l.apply(this,arguments)}},function(t,e,r){var n=r(10),o=r(3);t.exports=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0)||process.cwd(),e=o.join(t,"package.json"),r=n.readFileSync(e,{encoding:"utf8"});return JSON.parse(r)}},function(t,e,r){var n=r(3),o=r(10);t.exports=function(t){return function t(e){var r=n.join(e,"package.json");if(o.existsSync(r))return n.dirname(r);var a=n.resolve(e,"..");return t(a)}(n.dirname(t))}},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var o=r(4).command;function a(){var t;return t=regeneratorRuntime.mark(function t(e,r){var n,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=a.length>2&&void 0!==a[2]?a[2]:{},o("yarn run ".concat(e),r,n);case 2:case"end":return t.stop()}},t)}),(a=function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t,e){return a.apply(this,arguments)}},function(t,e,r){var n=r(1);t.exports=function(){n("lerna",["list","--long"],{stdio:"inherit"})}},function(t,e,r){var n=r(1);t.exports=function(){n("yarn",["workspaces","info"],{stdio:"inherit"})}},function(t,e,r){var n=r(1);t.exports=function(){n("lerna",["bootstrap"],{stdio:"inherit"})}}]);
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=11)}([function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a,i=r(2),c=r(5),u=r(18),s="[uno]";function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"white";p({text:t,prefixColorFunc:i[e]})}function p(t){var e=t.text,r=t.array,i=t.emoji,u=t.colorFunc,f=t.prefixColorFunc,l=t.omitPrefix,h=f?f(s):s;h=l?"":h+" ",e=e||"";var v=u?u(e):e,m=i?c.get(i)+" ":"";a&&a.stop(),console.log(h+m+v),a&&a.start(),r&&r.forEach(function(e){return p(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t,{text:" "+e,array:null}))})}t.exports={log:f,logArr:function(t,e,r){f(t,r),e&&e.forEach(function(t){return f(" "+t,r)})},red:function(t){f(t,"red")},blue:function(t){f(t,"cyan")},error:function(t,e){p({text:t,array:e,emoji:"x",prefixColorFunc:i.red})},success:function(t,e){p({text:t,array:e,emoji:"white_check_mark",prefixColorFunc:i.green})},expressive:p,startSpinner:function(t){a=u(t).start()},stopSpinner:function(){a.stop(),a=null},prefixText:s}},function(t,e){t.exports=require("execa")},function(t,e){t.exports=require("chalk")},function(t,e){t.exports=require("path")},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}}var a=r(5),i=r(0),c=r(6),u=r(7),s=r(8),f=r(9);function p(){return(p=o(regeneratorRuntime.mark(function t(e,r,n){var o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=(new s).start(),t.next=3,c(r);case 3:if(!(a=t.sent).length){t.next=7;break}return t.next=7,l(e,a,n);case 7:o.stop().log();case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)}function l(t,e){return h.apply(this,arguments)}function h(){return(h=o(regeneratorRuntime.mark(function t(e,r){var n,a,c,s,p,l,h,m,d,y,g,x,w,b=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(w=function(t){return u({command:e,packagePath:t.location,packageName:t.name,shouldLog:!1})},x=function(){return(x=o(regeneratorRuntime.mark(function t(r){var n,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=w(r),t.next=3,n;case 3:return o=t.sent,a=o.packageName,o.failed?i.error('Failed to execute "'.concat(e,'" in ').concat(a)):i.success('Successfully ran "'.concat(e,'" in ').concat(a)),f(o.message),t.abrupt("return",o);case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)},g=function(t){return x.apply(this,arguments)},y=function(){return(y=o(regeneratorRuntime.mark(function t(){var e,n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e=r.map(w),n=e.map(function(t){return t.catch(function(t){return t})}),t.next=5,Promise.all(n);case 5:return t.abrupt("return",t.sent);case 8:t.prev=8,t.t0=t.catch(0),i.error(t.t0);case 11:case"end":return t.stop()}},t,null,[[0,8]])}))).apply(this,arguments)},d=function(){return y.apply(this,arguments)},n=b.length>2&&void 0!==b[2]?b[2]:{},a=[],!n.parallel){t.next=15;break}return i.startSpinner('Running "'.concat(e,'" in ').concat(r.length," packages")),t.next=11,d();case 11:a=t.sent,i.stopSpinner(),t.next=46;break;case 15:c=!0,s=!1,p=void 0,t.prev=18,l=r[Symbol.iterator]();case 20:if(c=(h=l.next()).done){t.next=32;break}return m=h.value,i.startSpinner('Running "'.concat(e,'" in ').concat(m.name)),t.t0=a,t.next=26,g(m);case 26:t.t1=t.sent,t.t0.push.call(t.t0,t.t1),i.stopSpinner();case 29:c=!0,t.next=20;break;case 32:t.next=38;break;case 34:t.prev=34,t.t2=t.catch(18),s=!0,p=t.t2;case 38:t.prev=38,t.prev=39,c||null==l.return||l.return();case 41:if(t.prev=41,!s){t.next=44;break}throw p;case 44:return t.finish(41);case 45:return t.finish(38);case 46:v({command:e,results:a,shouldLogMessage:n.parallel});case 47:case"end":return t.stop()}},t,null,[[18,34,38,46],[39,,41,45]])}))).apply(this,arguments)}function v(t){var e=t.command,r=t.results,n=t.shouldLogMessage,o=r.filter(function(t){return!t.failed}).length,c=r.length;i.log(),i.log(),i.log(),o?i.success('Successfully ran "'.concat(e,'" in ').concat(o," (of ").concat(c,") packages")):i.error('Failed to run "'.concat(e,'" in all ').concat(c," packages ").concat(a.get("cry")));var u=!0,s=!1,p=void 0;try{for(var l,h=r[Symbol.iterator]();!(u=(l=h.next()).done);u=!0){var v=l.value,m=v.packageName,d=v.message;(v.failed?i.error:i.success)(" "+m),n&&f(d)}}catch(t){s=!0,p=t}finally{try{u||null==h.return||h.return()}finally{if(s)throw p}}}t.exports={command:function(t,e,r){return p.apply(this,arguments)},executeScriptInPackages:l}},function(t,e){t.exports=require("node-emoji")},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var o=r(1),a=r(2),i=r(0);function c(){var t;return t=regeneratorRuntime.mark(function t(e){var r,n,c,u,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=["ls","--toposort","--json"],t.next=3,o("lerna",r);case 3:return n=t.sent,c=n.stdout,u=JSON.parse(c),s=u.filter(function(t){return!e||t.name.includes(e)}),u.length!==s.length&&i.log(a.magenta("filter ")+JSON.stringify(s.map(function(t){return t.name}))),s.length||i.error("No packages remaining after filter"),t.abrupt("return",s);case 10:case"end":return t.stop()}},t)}),(c=function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t){return c.apply(this,arguments)}},function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){a(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var c=r(1),u=r(2),s=r(0),f=r(8),p=r(9);function l(){var t;return t=regeneratorRuntime.mark(function t(e){var r,n,a,i,l,h,v,m,d,y,g,x,w,b;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=e.command,n=e.packagePath,a=e.shouldLog,i=e.packageName,l=r.split("&&").map(function(t){return t.trim()}),h=(new f).start(),v=[],m=!0,d=!1,y=void 0,t.prev=7,g=l[Symbol.iterator]();case 9:if(m=(x=g.next()).done){t.next=31;break}return w=x.value,!1!==a&&s.expressive({text:w,emoji:"running",colorFunc:u.gray}),t.prev=12,t.next=15,c.command(w,{cwd:n});case 15:(b=t.sent).packageName=i,b.message=b.stdout||b.stderr,p(b.stdout),t.next=28;break;case 21:t.prev=21,t.t0=t.catch(12),!1!==a&&s.error('Failed to run command "'.concat(w,'" in ').concat(i)),t.t0.packageName=i,t.t0.message=t.t0.stderr,t.t0.stdout&&(t.t0.message+="\n\n",t.t0.message+=t.t0.stdout),v.push(t.t0);case 28:m=!0,t.next=9;break;case 31:t.next=37;break;case 33:t.prev=33,t.t1=t.catch(7),d=!0,y=t.t1;case 37:t.prev=37,t.prev=38,m||null==g.return||g.return();case 40:if(t.prev=40,!d){t.next=43;break}throw y;case 43:return t.finish(40);case 44:return t.finish(37);case 45:return!1!==a&&h.stop().log(),t.abrupt("return",o({},v[0],{failed:v.map(function(t){return t.failed}).reduce(function(t,e){return t||e},!1),message:v.map(function(t){return t.message}).join("\n\n"),packageName:i}));case 47:case"end":return t.stop()}},t,null,[[7,33,37,45],[12,21],[38,,40,44]])}),(l=function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t){return l.apply(this,arguments)}},function(t,e,r){var n=r(0);t.exports=function(){var t,e,r={};return r={start:function(){return t=new Date,r},stop:function(){var n=new Date;return e=function(t,e){if(t<Math.pow(10,-e))return t;var r=Math.pow(10,e);return Math.round(t*r)/r}((n-t)/1e3,2),r},log:function(){return n.expressive({text:"Done in ".concat(e,"s"),emoji:"sparkles"}),r}}}},function(t,e,r){function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(2),i=r(0);t.exports=function(t,e){t&&(t=(t.trim()+"\n ").split("\n").map(function(t){return"".concat(i.prefixText," ").concat(t)}).join("\n"),i.expressive(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(r,!0).forEach(function(e){o(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({text:a.gray(t),omitPrefix:t.startsWith(i.prefixText)},e)))}},function(t,e){t.exports=require("fs")},function(t,e,r){r(12),t.exports=r(13)},function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),i=new R(n||[]);return a._invoke=function(t,e,r){var n=f;return function(o,a){if(n===l)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw a;return E()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=j(i,r);if(c){if(c===v)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?h:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=h,r.method="throw",r.arg=u.arg)}}}(t,r,i),a}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",l="executing",h="completed",v={};function m(){}function d(){}function y(){}var g={};g[a]=function(){return this};var x=Object.getPrototypeOf,w=x&&x(x(L([])));w&&w!==r&&n.call(w,a)&&(g=w);var b=y.prototype=m.prototype=Object.create(g);function k(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(r,o){function a(){return new Promise(function(e,a){!function e(r,o,a,i){var c=s(t[r],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,a,i)},function(t){e("throw",t,a,i)}):Promise.resolve(f).then(function(t){u.value=t,a(u)},function(t){return e("throw",t,a,i)})}i(c.arg)}(r,o,e,a)})}return e=e?e.then(a,a):a()}}function j(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,j(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function L(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:E}}function E(){return{value:e,done:!0}}return d.prototype=b.constructor=y,y.constructor=d,y[c]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},k(O.prototype),O.prototype[i]=function(){return this},t.AsyncIterator=O,t.async=function(e,r,n,o){var a=new O(u(e,r,n,o));return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},k(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},function(t,e,r){var n=r(14),o=r(15);n.command("watch").alias("w").description("Run a script every time a package changes").action(r(16)).option("-s, --script <script>","The script to run on change","build").option("--ext <exts>","The file extensions to watch",o).option("-x, --execute <command>","Instead of a script, run a command on change"),n.command("execute <cmd> [pkg]").alias("x").description("Run an arbitrary command in one or many packages").action(r(4).command).option("-p, --parallel","Run the command in selected packages simultaneously"),n.command("run <script> [<pkg>]").alias("r").description("Run an NPM script in one or many packages").action(r(22)).option("-p, --parallel","Run the script in selected packages simultaneously"),n.command("list").alias("ls").description("Show info about each package").action(r(23)),n.command("dependencies").alias("d").description("Show dependencies of each package").action(r(24)),n.command("bootstrap").alias("b").description("Link packages together via symlinks").action(r(25)),n.version("0.0.26").parse(process.argv)},function(t,e){t.exports=require("commander")},function(t,e){t.exports=function(t){for(var e=0,r=[",","||","|","*","-","/","\\"];e<r.length;e++){var n=r[e];if(t.includes(n))return t.split(n)}return t}},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}}var a=r(3),i=r(17),c=r(0),u=r(19),s=r(6);function f(){return(f=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s();case 3:p(t.sent,e),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),c.error("There was a problem watching the project: ".concat(t.t0));case 10:case"end":return t.stop()}},t,null,[[0,7]])}))).apply(this,arguments)}function p(t,e){return l.apply(this,arguments)}function l(){return(l=o(regeneratorRuntime.mark(function t(e,r){var n,a,s,f,p,l,m,d,y,g;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return g=function(){return(g=o(regeneratorRuntime.mark(function t(e,r){var n,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=function(){return(a=o(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return c.blue("".concat(e.toUpperCase(),": ").concat(r)),d=l(r),t.next=4,d;case 4:d=null;case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)},n=function(){return a.apply(this,arguments)},!d){t.next=6;break}d.then(n),t.next=8;break;case 6:return t.next=8,n();case 8:case"end":return t.stop()}},t)}))).apply(this,arguments)},y=function(t,e){return g.apply(this,arguments)},m=function(){return(m=o(regeneratorRuntime.mark(function t(e){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u({path:e,script:r.script,command:r.execute});case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)},l=function(t){return m.apply(this,arguments)},n=h(r.ext),a=n?"Watching ".concat(JSON.stringify(n)," from the following packages:"):"Watching the following packages:",c.logArr(a,e.map(function(t){return t.name}),"green"),s=e.map(function(t){return t.location}),f=v(n,s),p=i.watch(f,{ignored:[/node_modules/],persistent:!0,ignoreInitial:!0,awaitWriteFinish:!0}),t.abrupt("return",p.on("add",function(t){return y("add",t)}).on("change",function(t){return y("change",t)}));case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}function h(t){return t?("string"==typeof t&&(t=[t]),t.map(function(t){return t.startsWith("*.")?t:t.startsWith(".")?"*"+t:"*."+t})):null}function v(t,e){if(!t||!t.length)return e;var r=[],n=!0,o=!1,i=void 0;try{for(var c,u=e[Symbol.iterator]();!(n=(c=u.next()).done);n=!0){var s=c.value,f=!0,p=!1,l=void 0;try{for(var h,v=t[Symbol.iterator]();!(f=(h=v.next()).done);f=!0){var m=h.value;r.push(a.join(s,m))}}catch(t){p=!0,l=t}finally{try{f||null==v.return||v.return()}finally{if(p)throw l}}}}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}t.exports=function(t){return f.apply(this,arguments)}},function(t,e){t.exports=require("chokidar")},function(t,e){t.exports=require("ora")},function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return t}(t)||a(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function i(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function c(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var a=t.apply(e,r);function c(t){i(a,n,o,c,u,"next",t)}function u(t){i(a,n,o,c,u,"throw",t)}c(void 0)})}}var u=r(1),s=r(4).executeScriptInPackages,f=r(20),p=r(21);r(7);function l(){return(l=c(regeneratorRuntime.mark(function t(e){var r,n,a,i,c,u,l,v;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.path,n=e.script,a=e.command,i=p(r),c=f(i).name,a=a||"yarn run ".concat(n),u={name:c,location:i},t.next=7,h(c);case 7:return l=t.sent,v=[u].concat(o(l)),t.next=11,s(a,v);case 11:case"end":return t.stop()}},t)}))).apply(this,arguments)}function h(t){return v.apply(this,arguments)}function v(){return(v=c(regeneratorRuntime.mark(function t(e){var r,o,a,i,c,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=["ls","--toposort","--json","--scope",e,"--include-filtered-dependents"],t.next=3,u("lerna",r);case 3:return o=t.sent,a=o.stdout,i=JSON.parse(a),c=n(i),c[0],s=c.slice(1),t.abrupt("return",s);case 7:case"end":return t.stop()}},t)}))).apply(this,arguments)}t.exports=function(t){return l.apply(this,arguments)}},function(t,e,r){var n=r(10),o=r(3);t.exports=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0)||process.cwd(),e=o.join(t,"package.json"),r=n.readFileSync(e,{encoding:"utf8"});return JSON.parse(r)}},function(t,e,r){var n=r(3),o=r(10);t.exports=function(t){return function t(e){var r=n.join(e,"package.json");if(o.existsSync(r))return n.dirname(r);var a=n.resolve(e,"..");return t(a)}(n.dirname(t))}},function(t,e,r){function n(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}var o=r(4).command;function a(){var t;return t=regeneratorRuntime.mark(function t(e,r){var n,a=arguments;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=a.length>2&&void 0!==a[2]?a[2]:{},o("yarn run ".concat(e),r,n);case 2:case"end":return t.stop()}},t)}),(a=function(){var e=this,r=arguments;return new Promise(function(o,a){var i=t.apply(e,r);function c(t){n(i,o,a,c,u,"next",t)}function u(t){n(i,o,a,c,u,"throw",t)}c(void 0)})}).apply(this,arguments)}t.exports=function(t,e){return a.apply(this,arguments)}},function(t,e,r){var n=r(1);t.exports=function(){n("lerna",["list","--long"],{stdio:"inherit"})}},function(t,e,r){var n=r(1);t.exports=function(){n("yarn",["workspaces","info"],{stdio:"inherit"})}},function(t,e,r){var n=r(1);t.exports=function(){n("lerna",["bootstrap"],{stdio:"inherit"})}}]);
{
"name": "unorepo",
"version": "0.0.25",
"version": "0.0.26",
"description": "A tool for managing a monorepo via lerna and yarn workspaces",

@@ -5,0 +5,0 @@ "author": "Zach Posten <https://github.com/zposten>",

@@ -54,2 +54,2 @@ const unorepo = require('commander')

unorepo.version('0.0.25').parse(process.argv)
unorepo.version('0.0.26').parse(process.argv)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc