@mingfuyun/star-allinone 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import*as e from"react/jsx-runtime";import*as n from"antd";import*as r from"react";var t=[,(e,n,r)=>{r.r(n),r.d(n,{default:()=>c});var t=r(2),a=r(3),o=r(4),l=r(5),i=r(6),u=function(){return u=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},u.apply(this,arguments)},s=["minute","hour","day","month","week"],d={display:"block",lineHeight:2};const c=(0,l.forwardRef)(function(e,n){var r=e.cronExpression,c=(0,l.useState)(""),m=c[0],h=c[1],f=(0,l.useState)({minute:1,hour:1,day:1,month:1,week:1}),p=f[0],x=f[1],v=(0,l.useState)({minute:{min:1,max:2},hour:{min:0,max:1},day:{min:1,max:2},month:{min:1,max:2},week:{min:2,max:3}}),y=v[0],j=v[1],C=(0,l.useState)({minute:{start:0,end:1},hour:{start:0,end:1},day:{start:1,end:1},month:{start:1,end:1},week:{start:1,end:1}}),w=C[0],b=C[1],g=(0,l.useState)({minute:[],hour:[],day:[],month:[],week:[]}),k=g[0],N=g[1],O=(0,l.useRef)(null),R=(0,l.useState)(void 0),S=R[0],I=R[1],z=function(e,n){switch(e){case"minute":return{minute:n};case"hour":return{hour:n};case"day":return{day:n};case"month":return{month:n};case"week":return{week:n};default:return{}}},E=function(){return m},T=function(){x({minute:1,hour:1,day:1,month:1,week:1}),j({minute:{min:1,max:2},hour:{min:0,max:1},day:{min:1,max:2},month:{min:1,max:2},week:{min:2,max:3}}),b({minute:{start:0,end:1},hour:{start:0,end:1},day:{start:1,end:1},month:{start:1,end:1},week:{start:1,end:1}}),N({minute:[],hour:[],day:[],month:[],week:[]}),h("")},B=function(e,n){for(var r=[],t=e;t<=n;t++)r.push({label:t,value:t});return r},P=function(e){for(var n=[],r=["","一","二","三","四","五","六","日"],t=1;t<=e;t++)n.push({label:"星期".concat(r[t]),value:t+1===8?7:t});return n},M=function(e,n){switch(n){case"week":x(u(u(u({},p),{day:2}),z(n,e.target.value)));break;case"day":x(u(u(u({},p),{week:2}),z(n,e.target.value)));break;default:x(u(u({},p),z(n,e.target.value)))}},D=function(e,n,r){var t,a;r(u(u({},k),((t={})[n]=e,t))),x(u(u({},p),((a={})[n]="point",a)))},F=function(e,n,r){var t=y;t[n]="max"===r?{max:e,min:t[n].min}:{max:t[n].max,min:e},j(u(u({},y),z(n,t[n])))},_=function(e,n,r){var t=w;t[n]="start"===r?{start:e,end:t[n].end}:{start:t[n].start,end:e},b(u(u({},w),z(n,t[n])))};return(0,l.useEffect)(function(){r?function(e){h(e);var n=e.split(" "),r={},t={},a={},o={};n.forEach(function(e,n){if(-1!==e.indexOf("/")&&-1!==e.indexOf("-")){r[s[n]]="loop";var l=e.split("/")[0],i=l.split("-")[0];a[s[n]]={start:"*"===l?0:Number(i),end:Number(e.split("/")[1])}}else-1!==e.indexOf("*")?r[s[n]]="*":-1!==e.indexOf("-")?(r[s[n]]="period",t[s[n]]={min:Number(e.split("-")[0]),max:Number(e.split("-")[1])}):(r[s[n]]="point",o[s[n]]=e.split(",").map(function(e){return Number(e)}))}),j(u(u({},y),t)),b(u(u({},w),a)),N(u(u({},k),o)),x(u(u({},p),r))}(r):T()},[r]),(0,l.useEffect)(function(){!function(){var e={};s.forEach(function(n){return e=u(u({},e),function(e){var n=p[e],r=y[e],t=w[e],a=k[e],o="";switch(n){case"*":default:o="*";break;case"point":for(var l=0,i=a;l<i.length;l++)o=o+i[l]+",";o=o.substring(0,o.length-1);break;case"period":o=r.min+"-"+r.max;break;case"loop":o=t.start+"-"+{minute:59,hour:23,day:31,month:12,week:7}[e]+"/"+t.end}return z(e,o)}(n))});var n=e.minute,r=e.hour,t=e.day,a=e.month,o=e.week;h(n+" "+r+" "+t+" "+a+" "+o)}()},[p,y,w]),(0,l.useImperativeHandle)(n,function(){return{refGetCron:E,resetCronState:T,getValidateStatus:function(){return S}}}),(0,l.useEffect)(function(){var e;!function(e){(0,o.isValidCron)(e)?null==I||I("success"):null==I||I("error")}(m),null===(e=O.current)||void 0===e||e.setFieldsValue({cronText:m})},[m]),(0,t.jsxs)("div",{className:i.default.Cron,children:[(0,t.jsx)(a.Tabs,{type:"card",items:[{label:"分",key:"minute",children:(0,t.jsx)(a.Card,{children:(0,t.jsxs)(a.Radio.Group,{value:p.minute,onChange:function(e){return M(e,"minute")},children:[(0,t.jsx)(a.Radio,{style:d,value:"*",children:"每分执行"}),(0,t.jsxs)(a.Radio,{style:d,value:"period",children:["周期从",(0,t.jsx)(a.InputNumber,{size:"small",min:0,max:58,value:y.minute.min,onChange:function(e){return F(e,"minute","min")}}),"-",(0,t.jsx)(a.InputNumber,{size:"small",min:2,max:59,value:y.minute.max,onChange:function(e){return F(e,"minute","max")}}),"分"]}),(0,t.jsxs)(a.Radio,{style:d,value:"loop",children:["从",(0,t.jsx)(a.InputNumber,{size:"small",min:0,max:58,value:w.minute.start,onChange:function(e){return _(e,"minute","start")}}),"分开始,每",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:58,value:w.minute.end,onChange:function(e){return _(e,"minute","end")}}),"分执行一次"]}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Radio,{style:d,value:"point",children:"指定"}),(0,t.jsx)(a.Col,{span:18,children:(0,t.jsx)(a.Select,{value:k.minute,style:{width:"80%",marginTop:7},mode:"multiple",allowClear:!0,placeholder:"请选择分钟",onChange:function(e){return D(e,"minute",N)},options:B(0,59)})})]})]})})},{label:"时",key:"hour",children:(0,t.jsx)(a.Card,{children:(0,t.jsxs)(a.Radio.Group,{onChange:function(e){return M(e,"hour")},value:p.hour,children:[(0,t.jsx)(a.Radio,{style:d,value:"*",children:"每小时执行"}),(0,t.jsxs)(a.Radio,{style:d,value:"period",children:["周期从",(0,t.jsx)(a.InputNumber,{size:"small",min:0,max:22,value:y.hour.min,onChange:function(e){return F(e,"hour","min")}}),"-",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:23,value:y.hour.max,onChange:function(e){return F(e,"hour","max")}}),"时"]}),(0,t.jsxs)(a.Radio,{style:d,value:"loop",children:["从",(0,t.jsx)(a.InputNumber,{size:"small",min:0,max:22,value:w.hour.start,onChange:function(e){return _(e,"hour","start")}}),"时开始,每",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:22,value:w.hour.end,onChange:function(e){return _(e,"hour","end")}}),"时执行一次"]}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Radio,{style:d,value:"point",children:"指定"}),(0,t.jsx)(a.Col,{span:18,children:(0,t.jsx)(a.Select,{value:k.hour,style:{width:"80%",marginTop:7},mode:"multiple",allowClear:!0,placeholder:"请选择小时",onChange:function(e){return D(e,"hour",N)},options:B(0,23)})})]})]})})},{label:"日",key:"day",children:(0,t.jsx)(a.Card,{children:(0,t.jsxs)(a.Radio.Group,{onChange:function(e){return M(e,"day")},value:p.day,children:[(0,t.jsx)(a.Radio,{style:d,value:"*",children:"每日执行"}),(0,t.jsxs)(a.Radio,{style:d,value:"period",children:["周期从",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:30,value:y.day.min,onChange:function(e){return F(e,"day","min")}}),"-",(0,t.jsx)(a.InputNumber,{size:"small",min:2,max:31,value:y.day.max,onChange:function(e){return F(e,"day","max")}}),"日"]}),(0,t.jsxs)(a.Radio,{style:d,value:"loop",children:["从",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:31,value:w.day.start,onChange:function(e){return _(e,"day","start")}}),"日开始,每",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:31,value:w.day.end,onChange:function(e){return _(e,"day","end")}}),"日执行一次"]}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Radio,{style:d,value:"point",children:"指定"}),(0,t.jsx)(a.Col,{span:18,children:(0,t.jsx)(a.Select,{value:k.day,style:{width:"80%",marginTop:7},mode:"multiple",allowClear:!0,placeholder:"请选择日期",onChange:function(e){return D(e,"day",N)},options:B(1,31)})})]})]})})},{label:"月",key:"month",children:(0,t.jsx)(a.Card,{children:(0,t.jsxs)(a.Radio.Group,{onChange:function(e){return M(e,"month")},value:p.month,children:[(0,t.jsx)(a.Radio,{style:d,value:"*",children:"每月执行"}),(0,t.jsxs)(a.Radio,{style:d,value:"period",children:["周期从",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:11,value:y.month.min,onChange:function(e){return F(e,"month","min")}}),"-",(0,t.jsx)(a.InputNumber,{size:"small",min:2,max:12,value:y.month.max,onChange:function(e){return F(e,"month","max")}}),"月"]}),(0,t.jsxs)(a.Radio,{style:d,value:"loop",children:["从",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:12,value:w.month.start,onChange:function(e){return _(e,"month","start")}}),"月开始,每",(0,t.jsx)(a.InputNumber,{size:"small",min:1,max:12,value:w.month.end,onChange:function(e){return _(e,"month","end")}}),"月执行一次"]}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Radio,{style:d,value:"point",children:"指定"}),(0,t.jsx)(a.Col,{span:18,children:(0,t.jsx)(a.Select,{value:k.month,style:{width:"80%",marginTop:7},mode:"multiple",allowClear:!0,placeholder:"请选择月份",onChange:function(e){return D(e,"month",N)},options:B(1,12)})})]})]})})},{label:"周",key:"week",children:(0,t.jsx)(a.Card,{children:(0,t.jsxs)(a.Radio.Group,{onChange:function(e){return M(e,"week")},value:p.week,children:[(0,t.jsx)(a.Radio,{style:d,value:"*",children:"每周执行"}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Col,{children:(0,t.jsx)(a.Radio,{style:d,value:"period",children:"周期从 周"})}),(0,t.jsx)(a.Col,{children:(0,t.jsx)(a.Select,{style:{marginTop:7},allowClear:!0,value:y.week.min,placeholder:"请选择周",onChange:function(e){return F(e,"week","min")},options:P(7)})}),(0,t.jsx)(a.Col,{className:i.default.CronWeekFont,children:"- 周"}),(0,t.jsx)(a.Col,{children:(0,t.jsx)(a.Select,{style:{marginTop:7},allowClear:!0,value:y.week.max,placeholder:"请选择周",onChange:function(e){return F(e,"week","max")},options:P(7)})})]}),(0,t.jsxs)(a.Row,{children:[(0,t.jsx)(a.Radio,{style:d,value:"point",children:"指定"}),(0,t.jsx)(a.Col,{span:18,children:(0,t.jsx)(a.Select,{value:k.week,style:{width:"80%",marginTop:7},mode:"multiple",allowClear:!0,placeholder:"请选择周",onChange:function(e){return D(e,"week",N)},options:P(7)})})]})]})})}]}),(0,t.jsx)(a.Form,{className:i.default.CronPreview,ref:O,children:(0,t.jsx)(a.Form.Item,{label:"预览",name:"cronText",className:i.default.CronPreviewItem,hasFeedback:!0,validateStatus:S,children:(0,t.jsx)(a.Input,{readOnly:!0,style:{width:150}})})})]})})},n=>{n.exports=e},e=>{e.exports=n},function(e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},r.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.isValidCron=void 0;var t=function(e){return/^\d+$/.test(e)?Number(e):NaN},a=function(e){return"?"===e},o=function(e,n,r){return e>=n&&e<=r},l=function(e,n,r){return-1===e.search(/[^\d-,\/*]/)&&e.split(",").every(function(e){var a=e.split("/");if(e.trim().endsWith("/"))return!1;if(a.length>2)return!1;var l=a[0],i=a[1];return function(e,n,r){var a=e.split("-");switch(a.length){case 1:return function(e){return"*"===e}(e)||o(t(e),n,r);case 2:var l=a.map(function(e){return t(e)}),i=l[0],u=l[1];return i<=u&&o(i,n,r)&&o(u,n,r);default:return!1}}(l,n,r)&&function(e){return void 0===e||-1===e.search(/[^\d]/)&&t(e)>0}(i)})},i={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},u={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},s={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1,allowNthWeekdayOfMonth:!1};n.isValidCron=function(e,n){var d=r(r({},s),n),c=function(e){return e.trim().split(/\s+/)}(e);if(c.length>(d.seconds?6:5)||c.length<5)return!1;var m=[];if(6===c.length){var h=c.shift();h&&m.push(function(e){return l(e,0,59)}(h))}var f=c[0],p=c[1],x=c[2],v=c[3],y=c[4];return m.push(function(e){return l(e,0,59)}(f)),m.push(function(e){return l(e,0,23)}(p)),m.push(function(e,n){return n&&a(e)||l(e,1,31)}(x,d.allowBlankDay)),m.push(function(e,n){if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(n){var r=e.toLowerCase().replace(/[a-z]{3}/g,function(e){return void 0===i[e]?e:i[e]});return l(r,1,12)}return l(e,1,12)}(v,d.alias)),m.push(function(e,n){var r=n.allowBlankDay,i=n.alias,s=n.allowSevenAsSunday,d=n.allowNthWeekdayOfMonth;if(r&&a(e))return!0;if(!r&&a(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;var c=i?e.toLowerCase().replace(/[a-z]{3}/g,function(e){return void 0===u[e]?e:u[e]}):e,m=s?7:6,h=c.split("#");if(d&&h.length>=2){var f=h[0],p=h[1];return 0===h.slice(2).length&&o(t(p),1,5)&&o(t(f),0,m)}return l(c,0,m)}(y,d)),m.push(function(e,n,r){return!(r&&a(e)&&a(n))}(x,y,d.allowBlankDay)),m.every(Boolean)}},e=>{e.exports=r},(e,n,r)=>{r.r(n),r.d(n,{default:()=>t});const t={Cron:"vBb5040F",CronWeekFont:"O5XKllcf",CronPreview:"Ci4nV30W",CronPreviewItem:"y5qUyBlE"}},(e,n,r)=>{r.r(n),r.d(n,{default:()=>l});var t=r(2),a=r(5),o=function(){return o=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},o.apply(this,arguments)};function l(e){return(0,a.forwardRef)(function(n,r){var l=(0,a.useState)(!1),i=l[0],u=l[1],s=(0,a.useRef)(null);(0,a.useImperativeHandle)(r,function(){return{show:function(e){s.current=e,u(!0)},hide:function(){u(!1)}}});var d=function(){u(!1)},c=(0,a.useMemo)(function(){return(0,t.jsx)(e,o({},n,{visible:i,handleCancel:d},s.current))},[i]);return(0,t.jsx)(t.Fragment,{children:i?c:null})})}},(e,n,r)=>{r.r(n),r.d(n,{default:()=>o});var t=r(2),a=r(3);r(9);const o=function(e){var n=e.title,r=e.open,o=e.onClose,l=e.onConfirm,i=e.children,u=e.width,s=e.closable,d=e.cancelText,c=e.okText,m=e.footer,h=e.className,f=e.extra,p=void 0===f?null:f,x=e.loading,v=void 0!==x&&x;return(0,t.jsx)(a.Drawer,{title:(0,t.jsx)("div",{style:{float:"left"},children:n}),placement:"right",className:h,closable:s,onClose:o,width:u,open:r,footer:m||(0,t.jsx)("div",{className:"custom-footer",children:(0,t.jsxs)(a.Space,{children:[(0,t.jsx)(a.Button,{onClick:o,children:d||"取消"}),(0,t.jsx)(a.Button,{type:"primary",onClick:l,children:c||"确定"})]})}),extra:p,loading:v,children:i})}},(e,n,r)=>{r.r(n),r.d(n,{default:()=>t});const t={"custom-footer":"e78eQqzW"}},(e,n,r)=>{r.r(n),r.d(n,{default:()=>l});var t=r(2),a=r(3),o=r(5);function l(e){var n=e.children,r=e.onError,l=(0,o.useState)({hasError:!1}),i=l[0],u=l[1],s=(0,o.useCallback)(function(e,n){u({hasError:!0,error:e,errorInfo:n}),r&&r(e,n),console.error("Error caught by boundary:",e,n)},[r]);return(0,o.useEffect)(function(){var e=function(e){s(e,{isAsync:!0,timestamp:(new Date).toISOString()})},n=function(n){n.preventDefault(),e(n.reason)},r=function(n){n.preventDefault(),e(n.error)};return window.addEventListener("unhandledrejection",n),window.addEventListener("error",r),function(){window.removeEventListener("unhandledrejection",n),window.removeEventListener("error",r)}},[s]),i.hasError&&i.error?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.Result,{status:"error",title:"System Failed",subTitle:"Please check and modify the following information before resubmitting.",extra:[(0,t.jsx)(a.Button,{type:"primary",onClick:function(){return window.location.reload()},children:"刷新页面"},"console")]})}):(0,t.jsx)(t.Fragment,{children:n})}},(e,n,r)=>{r.r(n),r.d(n,{default:()=>i});var t=r(2),a=r(3),o=r(5),l=(r(12),function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},l.apply(this,arguments)});const i=o.default.memo(function(e){var n=e.title,r=e.visible,o=e.onOk,i=e.onCancel,u=e.children,s=e.width,d=e.afterClose,c=e.okText,m=e.confirmLoading,h=void 0!==m&&m,f=e.footer,p=void 0===f?void 0:f,x=e.wrapClassName,v=void 0===x?"":x,y=e.cancelText,j=e.className,C=void 0===j?"":j,w=e.keyboard,b=void 0===w||w,g=e.maskClosable,k=void 0===g||g,N=e.mask,O=void 0===N||N,R=e.getContainer,S=e.closable,I=void 0===S||S,z=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(t=Object.getOwnPropertySymbols(e);a<t.length;a++)n.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(e,t[a])&&(r[t[a]]=e[t[a]])}return r}(e,["title","visible","onOk","onCancel","children","width","afterClose","okText","confirmLoading","footer","wrapClassName","cancelText","className","keyboard","maskClosable","mask","getContainer","closable"]);return(0,t.jsx)(a.Modal,l({mask:O,width:s||320,title:n,open:r,onOk:o,onCancel:i,wrapClassName:"".concat(v," base-modal"),centered:!0,afterClose:d,okText:c||"确定",cancelText:y||"取消",confirmLoading:h,footer:p,destroyOnClose:!0,className:C,keyboard:b,maskClosable:k,getContainer:R,closable:I},z,{children:u}))})},(e,n,r)=>{r.r(n),r.d(n,{default:()=>t});const t={"base-modal":"CxPW7ExN","ant-modal-content":"z6YlwWqq","ant-modal-header":"zchHCvCS","ant-modal-body":"bbgQiDnW","ant-modal-title":"_1_pO_m4v","ant-modal-close-x":"INZqkK6a","ant-modal-footer":"FIdaNzCU","ant-btn":"meCBkyo5","ant-dropdown-trigger":"BRgReB6h"}}],a={};function o(e){var n=a[e];if(void 0!==n)return n.exports;var r=a[e]={exports:{}};return t[e].call(r.exports,r,r.exports,o),r.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var r in n)o.o(n,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};(()=>{o.r(l),o.d(l,{BaseModal:()=>a.default,Cron:()=>e.default,CustomDrawer:()=>r.default,ErrorBoundary:()=>t.default,HocModal:()=>n.default});var e=o(1),n=o(7),r=o(8),t=o(10),a=o(11)})();const i=l.BaseModal,u=l.Cron,s=l.CustomDrawer,d=l.ErrorBoundary,c=l.HocModal;export{i as BaseModal,u as Cron,s as CustomDrawer,d as ErrorBoundary,c as HocModal};
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@mingfuyun/star-allinone",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "星系运维前端能力包",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
- "style": "dist/index.css",
8
+ "style": "dist/styles.css",
9
9
  "files": [
10
10
  "dist",
11
11
  "README.md"
12
12
  ],
13
13
  "scripts": {
14
- "build": "webpack --mode=none",
14
+ "build": "webpack --env format=umd --mode=none && webpack --env format=esm --mode=none",
15
15
  "publish": "node scripts/publish.js",
16
16
  "publish:dev": "node scripts/publish.js --dev",
17
17
  "prepublishOnly": "npm run build",