nrwl / nx

Smart Monorepos Β· Fast CI
https://nx.dev
MIT License
23.56k stars 2.36k forks source link

nx releaseChangelog error `No changed files to commit` #26643

Open AGN907 opened 4 months ago

AGN907 commented 4 months ago

Current Behavior

Using the programmatic API for nx release, not using the releasePublish just the releaseVersion and releaseChangelog

The problem is releaseChangelog throws an error after generating a changelog and before creating a GitHub release,

Even though staged files are waiting to be committed.

Things to note is that this happens only on the programmatic API and the standalone nx release changelog but not in nx release

release script

import { releaseChangelog, releaseVersion } from 'nx/release'
import * as yargs from 'yargs'
;(async () => {
  const options = await yargs
    .version(false) // don't use the default meaning of version in yargs
    .option('version', {
      description:
        'Explicit version specifier to use, if overriding conventional commits',
      type: 'string',
    })
    .option('dryRun', {
      alias: 'd',
      description:
        'Whether or not to perform a dry-run of the release process, defaults to true',
      type: 'boolean',
      default: true,
    })
    .option('verbose', {
      alias: 'v',
      description:
        'Whether or not to enable verbose logging, defaults to false',
      type: 'boolean',
      default: false,
    })
    .parseAsync()

  const { workspaceVersion, projectsVersionData } = await releaseVersion({
    specifier: options.version,
    dryRun: options.dryRun,
    gitCommit: false,
    verbose: options.verbose,
  })

  await releaseChangelog({
    versionData: projectsVersionData,
    version: workspaceVersion,
    dryRun: options.dryRun,
    verbose: options.verbose,
    gitCommitMessage: 'chore({projectName}): release {version}',
    interactive: 'all',
    projects: ['web'],
  })
})()

Expected Behavior

Launching the release script should version packages, generate a changelog, and release a GitHub release

GitHub Repo

Repo

Steps to Reproduce

  1. Run pn install
  2. Run pn dlx tsx scripts/release

Nx Report

Node   : 20.14.0
OS     : linux-x64
pnpm   : 9.1.4

nx (global)        : 19.3.1
nx                 : 19.3.1
@nx/js             : 19.3.1
@nx/eslint         : 19.3.1
@nx/workspace      : 19.3.1
@nx/eslint-plugin  : 19.3.1
@nx/next           : 19.3.1
@nrwl/tao          : 19.3.1
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/next/plugin

Failure Logs

NX   Running release version for project: web

web πŸ” Reading data for package "@yomu/web" from apps/web/package.json
web πŸ“„ Resolved the current version as 0.1.0 from git tag "0.1.0".
web πŸ“„ Resolved the specifier as "minor" using git history and the conventional commits standard.
web ✍️  New version 0.2.0 written to apps/web/package.json

 NX   Running release version for project: sources

sources πŸ” Reading data for package "@yomu/sources" from packages/sources/package.json
sources πŸ“„ Resolved the current version as 0.1.0 from git tag "0.1.0".
sources 🚫 No changes were detected using git history and the conventional commits standard.
sources 🚫 Skipping versioning "@yomu/sources" as no changes were detected.

 NX   Running release version for project: core

core πŸ” Reading data for package "@yomu/core" from packages/core/package.json
core πŸ“„ Resolved the current version as 0.1.0 from git tag "0.1.0".
core 🚫 No changes were detected using git history and the conventional commits standard.
core 🚫 Skipping versioning "@yomu/core" as no changes were detected.

 NX   Running release version for project: ui

ui πŸ” Reading data for package "@yomu/ui" from packages/ui/package.json
ui πŸ“„ Resolved the current version as 0.1.0 from git tag "0.1.0".
ui 🚫 No changes were detected using git history and the conventional commits standard.
ui 🚫 Skipping versioning "@yomu/ui" as no changes were detected.

UPDATE apps/web/package.json [dry-run]

    "name": "@yomu/web",
-   "version": "0.1.0",
+   "version": "0.2.0",
    "private": true,

 NX   Updating pnpm lock file

Would update pnpm-lock.yaml with the following command, but --dry-run was set:
pnpm install --lockfile-only

 NX   Staging changed files with git

Would stage files in git with the following command, but --dry-run was set:
git add apps/web/package.json

 NX   Your filter "web" matched the following projects:

- web

file:///home/agn907/Projects/yomu/node_modules/.pnpm/prettier@3.2.5/node_modules/prettier/plugins/flow.mjs:4
`),x.js_error)throw x.js_error}}else throw x}function _W(){var x=d0.process;x&&x.on?x.on("uncaughtException",function(r,e){rX(r),x.exit(2)}):d0.addEventListener&&d0.addEventListener("error",function(r){r.error&&rX(r.error)})}_W();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):Ys(x,[r])}function p(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):Ys(x,[r,e])}function G0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):Ys(x,[r,e,t])}function oe(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):Ys(x,[r,e,t,u])}function Ye(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):Ys(x,[r,e,t,u,i])}function wW(x,r,e,t,u,i,f,o){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,f,o):Ys(x,[r,e,t,u,i,f,o])}var nO=[Gr,eY,-1],eX=[Gr,NB,-2],kn=[Gr,rw,-3],uO=[Gr,_B,-4],A2=[Gr,Oj,-7],tX=[Gr,WU,-8],nX=[Gr,CU,-9],wr=[Gr,xD,-11],Ml=[Gr,GU,-12],TW=[4,0,0,0,[12,45,[4,0,0,0,0]]],iO=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,SU,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Ka=[0,0,[0,0,0],[0,0,0]],Dl=[0,0,0,0,1,0,0,0],uX=[0,"first_leading","last_trailing"],iX=[0,Cf,Df,ai,_7,Mf,b7,Ui,Su,dc,Y7,$i,jf,cn,$u,hc,Le,O7,tu,vf,Gf,N7,yi,Gc,Nc,n7,df,K7,Au,Wi,tf,Fc,F7,Ru,Si,sf,Ci,di,nc,Gi,au,d7,qc,W7,Gu,cf,Pc,hi,lf,xc,Hn,yc,_c,ef,Re,Oe,zu,Tf,Ac,Ki,T7,Bf,Zu,cc,kf,ac,Of,Rc,Mi,ce,Xi,t7,yf,nf,Cu,c7,ju,Vi,of,Cc,kc,Mu,Vu,af,w7,bn,Nf,m7,Qf,Z7,H1,Ti,xi,Gn,$7,y7,Yf,gf,G7,cu,Yi,Yu,Nu,pu,bu,oc,eu,zn,pc,S7,$n,B7,ti,ei,Uf,ii,wf,Kn,Ai,Wc,Hi,wu,gi,ku,Ou,Nt,g7,s7,P7,D2,Ei,ou,Ku,p7,hf,yu,$f,I7,G2,ni,r7,Kf,Zi,lu,bc,iu,_u,Vn,zi,Qu,Lc,lc,i7,Ef,Eu,ci,Kc,li,U7,o7,uu,qn,ec,rc,rf,fc,X7,Xu,Qn,ji,j7,Zn,vu,uf,ir,v7,pi,Bu,gc,ri,a7,Xc,Uc,Wu,Dc,Q7,Af,L7,Bi,Jf,qf,su,bi,Zc,pf,Vc,f7,vi,Pf,oi,sc,mi,nu,uc,u7,Fu,If,yn,Yc,Lu,z7,wc,Oc,R7,H7,Ju,l7,h7,Ji,Du,mc,tc,fu,Wf,$c,gu,zf,Tc,mu,je,Ec,du,Uu,Tu,xf,D7,k7,Me,Sc,qu,M7,Ic,Fi,qi,E7,ff,Be,Iu,xu,Xf,Sf,jc,Ii,Rf,Ue,Qc,mf,Qi,Pu,vc,Fn,x7,Pi,Ff,wi,Jc,A7,zc,_i,Wn,V7,Oi,bf,Hf,ru,C7,J7,ki,Hu,Mc,e7,q7,ui,Hc,Li,U2,Vf,_f,si,B2],hn=[0,0,0];Yt(11,Ml,GU),Yt(10,wr,xD),Yt(9,[Gr,Uj,XD],Uj),Yt(8,nX,CU),Yt(7,tX,WU),Yt(6,A2,Oj),Yt(5,[Gr,vj,-6],vj),Yt(4,[Gr,kD,-5],kD),Yt(3,uO,_B),Yt(2,kn,rw),Yt(1,eX,NB),Yt(0,nO,eY);var SW="output_substring",EW=ic,gW=Cs,AW=Os,PW="CamlinternalLazy.Undefined",CW=jB,NW="\\'",RW="\\b",OW="\\t",IW="\\n",LW="\\r",MW="List.iter2",DW="tl",jW="hd",UW="String.blit / Bytes.blit_string",BW="Bytes.blit",YW="String.sub / Bytes.sub",XW="String.concat",JW="Array.blit",VW="Array.sub",zW="Map.remove_min_elt",KW=[0,0,0,0],ZW=[0,"map.ml",400,10],WW=[0,0,0],$W=F4,QW=F4,FW=F4,HW=F4,qW="Stdlib.Queue.Empty",GW="Buffer.add_substring/add_subbytes",bW="Buffer.add: cannot grow buffer",x$=[0,aD,93,2],r$=[0,aD,94,2],e$="Buffer.sub",t$="%c",n$="%s",u$=FM,i$=DB,f$=gj,c$=GB,s$="%f",o$="%B",v$="%{",a$="%}",l$="%(",p$="%)",d$=Kj,y$="%t",m$="%?",k$="%r",h$="%_r",_$=[0,i2,850,23],w$=[0,i2,814,21],T$=[0,i2,815,21],S$=[0,i2,818,21],E$=[0,i2,819,21],g$=[0,i2,822,19],A$=[0,i2,823,19],P$=[0,i2,826,22],C$=[0,i2,827,22],N$=[0,i2,831,30],R$=[0,i2,832,30],O$=[0,i2,836,26],I$=[0,i2,837,26],L$=[0,i2,846,28],M$=[0,i2,847,28],D$=[0,i2,851,23],j$=[0,i2,1558,4],U$="Printf: bad conversion %[",B$=[0,i2,1626,39],Y$=[0,i2,1649,31],X$=[0,i2,1650,31],J$="Printf: bad conversion %_",V$=HU,z$=Aj,K$=HU,Z$=Aj,W$=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],$$=[0,0,4],Q$=Kk,F$="neg_infinity",H$=Dj,q$=ic,G$=[0,nn],b$="%+nd",xQ="% nd",rQ="%+ni",eQ="% ni",tQ="%nx",nQ="%#nx",uQ="%nX",iQ="%#nX",fQ="%no",cQ="%#no",sQ="%nd",oQ=gj,vQ="%nu",aQ="%+ld",lQ="% ld",pQ="%+li",dQ="% li",yQ="%lx",mQ="%#lx",kQ="%lX",hQ="%#lX",_Q="%lo",wQ="%#lo",TQ="%ld",SQ=DB,EQ="%lu",gQ="%+Ld",AQ="% Ld",PQ="%+Li",CQ="% Li",NQ="%Lx",RQ="%#Lx",OQ="%LX",IQ="%#LX",LQ="%Lo",MQ="%#Lo",DQ="%Ld",jQ=GB,UQ="%Lu",BQ="%+d",YQ="% d",XQ="%+i",JQ="% i",VQ="%x",zQ="%#x",KQ="%X",ZQ="%#X",WQ="%o",$Q="%#o",QQ=El,FQ=FM,HQ=aU,qQ=la,GQ="@}",bQ="@?",xF=`@
                                     ^

Error: Error: No changed files to commit
    at commitChanges (/home/agn907/Projects/yomu/node_modules/.pnpm/nx@19.3.1_@swc-node+register@1.9.2_@swc+core@1.6.5_@swc+helpers@0.5.5__@swc+types@0.1.9_types_dk7zvwgggbuk43e2ynov6rlggu/node_modules/nx/src/command-line/release/utils/shared.js:31:15)
    at applyChangesAndExit (/home/agn907/Projects/yomu/node_modules/.pnpm/nx@19.3.1_@swc-node+register@1.9.2_@swc+core@1.6.5_@swc+helpers@0.5.5__@swc+types@0.1.9_types_dk7zvwgggbuk43e2ynov6rlggu/node_modules/nx/src/command-line/release/changelog.js:556:42)
    at releaseChangelog (/home/agn907/Projects/yomu/node_modules/.pnpm/nx@19.3.1_@swc-node+register@1.9.2_@swc+core@1.6.5_@swc+helpers@0.5.5__@swc+types@0.1.9_types_dk7zvwgggbuk43e2ynov6rlggu/node_modules/nx/src/command-line/release/changelog.js:457:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at /home/agn907/Projects/yomu/scripts/release.ts:2:1464

Node.js v20.14.0

Package Manager Version

pnpm : 9.1.4

Operating System

Additional Information

No response

AGN907 commented 4 months ago

After reproducing in another repo I'm getting a different error in the same place

Long error logs ```shell NX Running release version for project: my-app my-app πŸ” Reading data for package "my-app" from apps/web/package.json my-app πŸ“„ Unable to resolve the current version from git tag using pattern "{version}". Falling back to the version on disk of 0.0.0 my-app πŸ“„ Resolved the specifier as "minor" using git history and the conventional commits standard. my-app ✍️ New version 0.1.0 written to apps/web/package.json UPDATE apps/web/package.json [dry-run] "name": "my-app", - "version": "0.0.0", + "version": "0.1.0", "private": true, NX Updating pnpm lock file Would update pnpm-lock.yaml with the following command, but --dry-run was set: pnpm install --lockfile-only NX Staging changed files with git Would stage files in git with the following command, but --dry-run was set: git add apps/web/package.json NX Your filter "my-app" matched the following projects: - my-app Determined workspace --from ref from the first commit in the workspace: 17299a8df2861421bac651868d8363663324b785 Determined --from ref for my-app from the first commit in which it exists: fc34195 file:///home/agn907/Projects/nx-release-reproducible/node_modules/.pnpm/prettier@3.3.2/node_modules/prettier/plugins/flow.mjs:3 `,cl=1e3,BE=69295,b8=120093,SL=">=",AL=149,w8=64325,Ri="class_identifier",XE=119967,JE=68415,IL="end",Fi="enum_boolean_body",Li="member_private_name",Mi="super_expression",KE=71955,YE=126514,T8=67593,zE=66939,VE=12591,E8=126538,WE=110590,Ui="component_renders_annotation",GE=72703,$E=72105,S8=65598,HE=73727,A8=126504,I8=126551,QE=70143,sl="from",qi="class_property",Bi="enum_number_body",ZE=42559,xS=93759,rS=66994,$t="right",PL=225,eS=67702,tS=65473,nS=43697,P8=70855,uS=119993,iS=72103,fS=178205,Xi="call_type_args",cS=66511,Ji="export_batch_specifier",Ki="component_type_param",Ht=782176664,wo="get",al="local",jL=228,Yi="object_mapped_type_property",zi="class_decorator",NL=220,Vi="enum_body",OL="<<=",Wi="declare_namespace",sS=71956,aS=69839,Nv="super",oS=173791,vS=71942,V2="expression",lS=72440,Ov=254,pS=70412,CL="renders?",Gi="try_catch",DL=32752,$i="declare_module_exports",kS=12320,RL=134,mS=94175,ol="enum",FL=196,Hi="import_source",hS=43814,dS=120069,Qi="while_",j8=126537,yS=43262,Zi="function_rest_param_type",gS=66378,N8=119996,xf="declare_component",_S=73097,bS=70783,wS=43503,TS=131071,ES=11492,SS=92766,LL=173,AS=113770,IS=73029,PS=66978,rf="tagged_template",ef="jsx_element_name",tf="for_init_declaration",jS=123213,nf="object_indexer_property_type",uf="object_spread_property_type",O8=72970,C8=70854,NS=110930,vl="var",ML=217,OS=119972,CS=69622,DS=63743,RS=42237,FS=870530776,D8="returnType",UL=56320,Cv="computed",LS=42735,ff="arg_list",MS=67461,cf="export_named_declaration",US=72817,qS=73439,BS=43782,XS=66775,JS=70655,R8="bool",KS=65140,YS=75075,zS=126651,VS=71947,WS=42961,GS=12735,$S=78894,HS=64262,qL=237,G1="interface",BL="Match_failure",QS=42962,ZS=69748,XL="leadingComments",sf="this_expression",ll=461894857,F8=12592,JL=8204,To="hook",xA=119807,rA=66348,af="declare_variable",eA=8348,of="optional_member",vf=120,lf="arrow_function",tA=72768,nA=70851,pf="array",uA=43249,L8=126468,iA=177983,fA="compare: functional value",cA=126550,sA=64847,kf="binding_type_identifier",aA=120132,mf="function_params",oA=93071,pl=1024,vA=42783,KL=1039100673,YL="@{",lA=12352,pA=42653,kA=120628,hf="declare_function",df="for_in_statement_lhs",mA=72271,hA=69807,dA=67826,yf="syntax_opt",gf="object_key_bigint_literal",zL=243,yA=94032,VL="Undefined_recursive_module",WL=-1053382366,gA=72242,_f="variance_opt",_A=101631,bA="arguments",wA=72161,TA=8511,M8="unknown",EA=43560,GL="the end of an expression statement (`;`)",$L=1026,SA=12543,AA=11670,HL="?",IA=69247,U8=11631,QL=272,q8="line",PA=72202,bf="pattern_object_rest_property",wf=" ",jA=43487,Dv=115,NA=-673950933,Tf="intersection_type",OA=120144,kl="is",CA=178207,DA=100343,ZL="||=",xM="f",B8=8455,S1=102,Ef="pattern_object_property_number_literal_key",RA=70418,FA=8543,rM="Internal Error: Found private field in object props",X8=126540,J8=119995,Eo=8287,Sf="indexed_access_type",Af="export_named_specifier",eM=224,LA=124926,MA=-103,tM=167,K8=65344,Y8=126530,UA=113788,qA=67505,BA="property",XA=43014,Se="return",ds=-85,JA=126601,nM=214,uM="children",If="type_alias",z8=43259,KA=126583,YA=71958,zA=65613,VA=67431,V8=126535,WA=69599,Pf="type_params",jf="object_key_computed",GA=124910,L1="variance",W8=11727,$A=66954,HA=126463,Nf="catch_body",QA=69445,Of="type_param",Cf="component_type_params",ZA=124902,G8=120687,iM="collect_comments_opt",xI=15,rI=120485,eI=70416,tI=125259,Df="jsx_namespaced_name",nI=43712,uI=72712,fM="~",$8=12448,Rf="jsx_member_expression_object",H8=126499,Q8=-97,Ff="pattern_object_property_identifier_key",cM=219,Lf="component_body",Mf="opaque_type",Uf=".",iI=43009,fI="consequent",sM="SpreadElement",j2="body",cI=178,aM=202,qf="jsx_opening_element",Bf="declare_module",Z8=67638,sI=8477,Xf="object_type_property",aI=110882,Jf="function_body",oI=94111,oM="module",vM="alternate",vI=67839,So=8191,lI=43881,lM=": closedir failed",sa="kind",Kf="tuple_labeled_element",Ao=-46,pI=67640,Yf="declare_type_alias",xm=70750,kI=77808,ml="column",zf="jsx_closing_element",mI=66977,hI="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",dI=65786,Vf="function_expression",bt=104,rm=11719,yI=11505,gI="mkdir",_I=70319,pM="Invalid_argument",bI=43738,wI=113817,Wf="bigint_literal",TI=70084,kM=278,EI=126566,em="do",tm=42622,Gf="computed_key",$f="pattern_object_property_computed_key",mM="fd ",nm=126571,SI=126619,hM=140,aa="prototype",dM=208,AI=67004,hl=130,yM=242,gM=">>>=",II=68863,PI=11726,wt="raw",jI=64466,Hf=107,NI=67679,Qf="enum_string_body",OI=244,_M="unreachable jsxtext",bM="*",CI=66335,DI=126570,wM=229,RI=" : file already exists",um=184,FI=67807,LI=70753,Zf="boolean_literal",MI=65437,UI=70451,qI=67002,Rv=124,xc="conditional",im=43260,TM="Sys_error",BI=123135,dl="meta",XI=64109,rc="pattern_array_rest_element",JI=43255,fm=67644,ec="pattern_object_rest_property_pattern",tc="sequence",KI=65855,YI=110951,zI=67643,nc="predicate_expression",Ae="static",VI=120512,WI="declaration",cm=64317,GI=68437,sm=126558,uc="meta_property",$I=11564,ic="declare_enum",Qt="pattern",HI=216,QI=68191,am="undefined",om=8319,vm=120133,yl=132,ZI=42239,EM=-99,xP=124927,rP=120092,eP=43137,fc="component_rest_param",SM="expected *",tP=125251,AM="%li",nP=55242,uP=12294,cc="enum_number_member",oa="in",IM="\\\\",Io=":",iP=68115,PM="Cygwin",fP=77823,cP=65615,lm=70162,jM="/static/",sP=11519,aP=72966,oP=12686,vP=165,lP=183,gl=129,pm=72192,pP=42964,km="try",mm=120655,kP=11702,NM="expressions",mP=2048,sc="class_body",hP=55238,OM=240,dP=66915,yP=43311,gP=43018,CM=235,_P=73648,DM="([^/]+)",bP=125258,wP=64829,TP=68735,RM="++",FM=163,LM="qualification",MM=57343,UM=931,ac="default_opt",EP=71235,qM=8472,SP=71934,BM=205,XM=218,JM="callee",AP=43711,IP=64284,PP=43754,jP=43790,KM="%Li",oc="pattern_array_rest_element_pattern",hm="decorators",NP=8304,vc="statement",dm=73062,lc="jsx_children",OP=70492,CP=64255,DP=11630,RP=1255,ym=67592,gm=43519,_m=64311,bm=12539,FP="proto",wm=120513,LP=68031,Po="source",_l="a",MP=93047,UP=92927,qP=126588,BP=73458,XP=67742,JP=43714,YM=288,zM=236,KP=-253313196,bl="label",VM="@[<2>{ ",Tm=126539,Em=126552,YP=120487,WM=268,GM="Out_of_memory",zP=605857695,VP=94026,$M=267,Sm=126496,va="async",HM=203,Am=126560,WP=68287,pc="unary_expression",GP=-26065557,$P=110587,Im=120771,HP=69762,QP=126502,Fv="set",kc="object_",mc="template_literal",ZP=43258,hc="nullable_type",ys="int_of_string",QM="^=",Ie="predicate",Lv="string",Pm=8450,ZM="camlinternalMod.ml",xj=70285,gs="+",rj=110575,xU=198,dc="extends",rU=-692038429,jm=67827,eU=210,tU=227,Nm="explicitType",Om=70452,ej=70497,Mv=63,wl="private",tj=64296,nj=67591,uj=92909,nU="T_JSX_TEXT",ij="Fatal error: exception ",fj=120137,Cm=68120,yc="pattern_array_e",cj=119964,sj=92862,aj=66461,uU="&&=",iU=174,n1=8231,gc="null_literal",fU="/=",oj=66811,Dm=70108,vj=67504,lj=11686,pj=67001,kj=" : flags Open_text and Open_binary are not compatible",mj=43741,hj=66204,W2=8233,_c="type_annotation_hint",dj=123197,bc="object_property",cU="${",Rm=70480,sU="&&",wc="type_cast",Uv="%d",Fm=8484,aU=207,yj=70066,gj=68324,Lm=120713,oU=135,Mm=126556,$1="0",M1="yield",Um=126591,rt=100,_j=69551,Tc="jsx_element_name_namespaced",vU=232,Ec="object_key_string_literal",Sc="function_this_param_type",Ac="pattern_object_property_pattern",Pe="throw",je="switch",lU=2048,qm=119970,Ic="toplevel_statement_list",qv=250,bj=12438,Pc="class_implements",jc="variable_declarator",wj=43713,Bm=68096,Tj=70457,Ej=12538,Sj=11734,pU="-=",kU=234,Nc="component_param_name",Aj=43123,Oc="class_",mU="|",Ij=200,Pj=43518,jj=8483,Cc="jsx_attribute_name_identifier",Nj=181;function sY(x,r,e,t,u){if(t<=r)for(var i=1;i<=u;i++)e[t+i]=x[r+i];else for(var i=u;i>=1;i--)e[t+i]=x[r+i];return 0}function aY(x){for(var r=[0];x!==0;){for(var e=x[1],t=1;t=e.l||e.t==2&&u>=e.c.length))e.c=x.t==4?Xm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else if(e.t==2&&t==e.c.length)e.c+=x.t==4?Xm(x.c,r,u):r==0&&x.c.length==u?x.c:x.c.substr(r,u),e.t=e.c.length==e.l?0:2;else{e.t!=4&&Jm(e);var i=x.c,c=e.c;if(x.t==4)if(t<=r)for(var v=0;v=0;v--)c[t+v]=i[r+v];else{for(var a=Math.min(u,i.length-r),v=0;v>=1,x==0)return e;r+=r,t++,t==9&&r.slice(0,1)}}function Km(x){x.t==2?x.c+=Bv(x.l-x.c.length,"\0"):x.c=Xm(x.c,0,x.c.length),x.t=0}function Oj(x){if(x.length<24){for(var r=0;rYr)return!1;return!0}else return!/[^\x00-\x7f]/.test(x)}function hU(x){for(var r=H0,e=H0,t,u,i,c,v=0,a=x.length;v__?(e.substr(0,1),r+=e,e=H0,r+=x.slice(v,p)):e+=x.slice(v,p),p==a)break;v=p}c=1,++v=55295&&c<57344)&&(c=2)):(c=3,++v1114111)&&(c=3)))))),c<4?(v-=c,e+="\uFFFD"):c>Xt?e+=String.fromCharCode(55232+(c>>10),UL+(c&1023)):e+=String.fromCharCode(c),e.length>pl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function bs(x,r,e){this.t=x,this.c=r,this.l=e}bs.prototype.toString=function(){switch(this.t){case 9:return this.c;default:Km(this);case 0:if(Oj(this.c))return this.t=9,this.c;this.t=8;case 8:return this.c}},bs.prototype.toUtf16=function(){var x=this.toString();return this.t==9?x:hU(x)},bs.prototype.slice=function(){var x=this.t==4?this.c.slice():this.c;return new bs(this.t,x,this.l)};function dU(x){return new bs(0,x,x.length)}function AP0(x){return x}function Dc(x){return dU(x)}function Rc(x,r,e,t,u){return _s(Dc(x),r,e,t,u),0}function yU(x){var r=u0.process;if(r&&r.env&&r.env[x]!=null)return r.env[x];if(u0.jsoo_static_env&&u0.jsoo_static_env[x])return u0.jsoo_static_env[x]}var Cj=0;(function(){var x=yU("OCAMLRUNPARAM");if(x!==void 0)for(var r=x.split(KD),e=0;e>>0>=x.l&&pY(),Vr(x,r,e)}function fe(x,r){switch(x.t&6){default:if(r>=x.c.length)return 0;case 0:return x.c.charCodeAt(r);case 4:return x.c[r]}}function ws(x,r){var e=x.l>=0?x.l:x.l=x.length,t=r.length,u=e-t;if(u==0)return x.apply(null,r);if(u<0){var i=x.apply(null,r.slice(0,e));return typeof i!="function"?i:ws(i,r.slice(e))}else{switch(u){case 1:{var i=function(a){for(var p=new Array(t+1),_=0;_>>0>=x.length-1&&Tl(),x}function kY(x){return isFinite(x)?Math.abs(x)>=22250738585072014e-324?0:x!=0?1:2:isNaN(x)?4:3}function mY(x){return 0}var hY=Math.log2&&Math.log2(11235582092889474e291)==1020;function dY(x){if(hY)return Math.floor(Math.log2(x));var r=0;if(x==0)return-1/0;if(x>=1)for(;x>=2;)x/=2,r++;else for(;x<1;)x*=2,r--;return r}function Rj(x){var r=new Float32Array(1);r[0]=x;var e=new Int32Array(r.buffer);return e[0]|0}var gU=Math.pow(2,-24);function _U(x){throw x}function bU(){_U(U1.Division_by_zero)}function ir(x,r,e){this.lo=x&si,this.mi=r&si,this.hi=e&Xt}ir.prototype.caml_custom="_j",ir.prototype.copy=function(){return new ir(this.lo,this.mi,this.hi)},ir.prototype.ucompare=function(x){return this.hi>x.hi?1:this.hix.mi?1:this.mix.lo?1:this.loe?1:rx.mi?1:this.mix.lo?1:this.lo>24),e=-this.hi+(r>>24);return new ir(x,r,e)},ir.prototype.add=function(x){var r=this.lo+x.lo,e=this.mi+x.mi+(r>>24),t=this.hi+x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.sub=function(x){var r=this.lo-x.lo,e=this.mi-x.mi+(r>>24),t=this.hi-x.hi+(e>>24);return new ir(r,e,t)},ir.prototype.mul=function(x){var r=this.lo*x.lo,e=(r*gU|0)+this.mi*x.lo+this.lo*x.mi,t=(e*gU|0)+this.hi*x.lo+this.mi*x.mi+this.lo*x.hi;return new ir(r,e,t)},ir.prototype.isZero=function(){return(this.lo|this.mi|this.hi)==0},ir.prototype.isNeg=function(){return this.hi<<16<0},ir.prototype.and=function(x){return new ir(this.lo&x.lo,this.mi&x.mi,this.hi&x.hi)},ir.prototype.or=function(x){return new ir(this.lo|x.lo,this.mi|x.mi,this.hi|x.hi)},ir.prototype.xor=function(x){return new ir(this.lo^x.lo,this.mi^x.mi,this.hi^x.hi)},ir.prototype.shift_left=function(x){return x=x&63,x==0?this:x<24?new ir(this.lo<>24-x,this.hi<>24-x):x<48?new ir(0,this.lo<>48-x):new ir(0,0,this.lo<>x|this.mi<<24-x,this.mi>>x|this.hi<<24-x,this.hi>>x):x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi>>x-24,0):new ir(this.hi>>x-48,0,0)},ir.prototype.shift_right=function(x){if(x=x&63,x==0)return this;var r=this.hi<<16>>16;if(x<24)return new ir(this.lo>>x|this.mi<<24-x,this.mi>>x|r<<24-x,this.hi<<16>>x>>>16);var e=this.hi<<16>>31;return x<48?new ir(this.mi>>x-24|this.hi<<48-x,this.hi<<16>>x-24>>16,e&Xt):new ir(this.hi<<16>>x-32,e,e)},ir.prototype.lsl1=function(){this.hi=this.hi<<1|this.mi>>23,this.mi=(this.mi<<1|this.lo>>23)&si,this.lo=this.lo<<1&si},ir.prototype.lsr1=function(){this.lo=(this.lo>>>1|this.mi<<23)&si,this.mi=(this.mi>>>1|this.hi<<23)&si,this.hi=this.hi>>>1},ir.prototype.udivmod=function(x){for(var r=0,e=this.copy(),t=x.copy(),u=new ir(0,0,0);e.ucompare(t)>0;)r++,t.lsl1();for(;r>=0;)r--,u.lsl1(),e.ucompare(t)>=0&&(u.lo++,e=e.sub(t)),t.lsr1();return{quotient:u,modulus:e}},ir.prototype.div=function(x){var r=this;x.isZero()&&bU();var e=r.hi^x.hi;r.hi&Vt&&(r=r.neg()),x.hi&Vt&&(x=x.neg());var t=r.udivmod(x).quotient;return e&Vt&&(t=t.neg()),t},ir.prototype.mod=function(x){var r=this;x.isZero()&&bU();var e=r.hi;r.hi&Vt&&(r=r.neg()),x.hi&Vt&&(x=x.neg());var t=r.udivmod(x).modulus;return e&Vt&&(t=t.neg()),t},ir.prototype.toInt=function(){return this.lo|this.mi<<24},ir.prototype.toFloat=function(){return(this.hi<<16)*Math.pow(2,32)+this.mi*Math.pow(2,24)+this.lo},ir.prototype.toArray=function(){return[this.hi>>8,this.hi&ms,this.mi>>16,this.mi>>8&ms,this.mi&ms,this.lo>>16,this.lo>>8&ms,this.lo&ms]},ir.prototype.lo32=function(){return this.lo|(this.mi&ms)<<24},ir.prototype.hi32=function(){return this.mi>>>8&Xt|this.hi<<16};function Ym(x,r,e){return new ir(x,r,e)}function zm(x){if(!isFinite(x))return isNaN(x)?Ym(1,0,DL):x>0?Ym(0,0,DL):Ym(0,0,65520);var r=x==0&&1/x==-1/0?Vt:x>=0?0:Vt;r&&(x=-x);var e=dY(x)+1023;e<=0?(e=0,x/=Math.pow(2,-$L)):(x/=Math.pow(2,e-ZD),x<16&&(x*=2,e-=1),e==0&&(x/=2));var t=Math.pow(2,24),u=x|0;x=(x-u)*t;var i=x|0;x=(x-i)*t;var c=x|0;return u=u&xI|r|e<<4,Ym(c,i,u)}function El(x){return x.toArray()}function wU(x,r,e){if(x.write(32,r.dims.length),x.write(32,r.kind|r.layout<<8),r.caml_custom==o4)for(var t=0;t>4;if(u==cF)return r|e|t&xI?NaN:t&Vt?-1/0:1/0;var i=Math.pow(2,-24),c=(r*i+e)*i+(t&xI);return u>0?(c+=16,c*=Math.pow(2,u-ZD)):c*=Math.pow(2,-$L),t&Vt&&(c=-c),c}function Mj(x){for(var r=x.length,e=1,t=0;t>>24&ms|(r&Xt)<<8,r>>>16&Xt)}function Uj(x){return x.hi32()}function qj(x){return x.lo32()}var _Y=o4;function la(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}la.prototype.caml_custom=_Y,la.prototype.offset=function(x){var r=0;if(typeof x=="number"&&(x=[x]),x instanceof Array||G2("bigarray.js: invalid offset"),this.dims.length!=x.length&&G2("Bigarray.get/set: bad number of dimensions"),this.layout==0)for(var e=0;e=this.dims[e])&&Tl(),r=r*this.dims[e]+x[e];else for(var e=this.dims.length-1;e>=0;e--)(x[e]<1||x[e]>this.dims[e])&&Tl(),r=r*this.dims[e]+(x[e]-1);return r},la.prototype.get=function(x){switch(this.kind){case 7:var r=this.data[x*2+0],e=this.data[x*2+1];return gY(r,e);case 10:case 11:var t=this.data[x*2+0],u=this.data[x*2+1];return[Ov,t,u];default:return this.data[x]}},la.prototype.set=function(x,r){switch(this.kind){case 7:this.data[x*2+0]=qj(r),this.data[x*2+1]=Uj(r);break;case 10:case 11:this.data[x*2+0]=r[1],this.data[x*2+1]=r[2];break;default:this.data[x]=r;break}return 0},la.prototype.fill=function(x){switch(this.kind){case 7:var r=qj(x),e=Uj(x);if(r==e)this.data.fill(r);else for(var t=0;tc)return 1;if(i!=c){if(!r)return NaN;if(i==i)return 1;if(c==c)return-1}}break;case 7:for(var u=0;ux.data[u+1])return 1;if(this.data[u]>>>0>>0)return-1;if(this.data[u]>>>0>x.data[u]>>>0)return 1}break;case 2:case 3:case 4:case 5:case 6:case 8:case 9:case 12:for(var u=0;ux.data[u])return 1}break}return 0};function Jv(x,r,e,t){this.kind=x,this.layout=r,this.dims=e,this.data=t}Jv.prototype=new la,Jv.prototype.offset=function(x){return typeof x!="number"&&(x instanceof Array&&x.length==1?x=x[0]:G2("Ml_Bigarray_c_1_1.offset")),(x<0||x>=this.dims[0])&&Tl(),x},Jv.prototype.get=function(x){return this.data[x]},Jv.prototype.set=function(x,r){return this.data[x]=r,0},Jv.prototype.fill=function(x){return this.data.fill(x),0};function EU(x,r,e,t){var u=TU(x);return Mj(e)*u!=t.length&&G2("length doesn't match dims"),r==0&&e.length==1&&u==1?new Jv(x,r,e,t):new la(x,r,e,t)}function q1(x){U1.Failure||(U1.Failure=[x2,e_,-3]),Dj(U1.Failure,x)}function SU(x,r,e){var t=x.read32s();(t<0||t>16)&&q1("input_value: wrong number of bigarray dimensions");var u=x.read32s(),i=u&ms,c=u>>8&1,v=[];if(e==o4)for(var a=0;a>>17,r=IU(r,461845907),x^=r,x=x<<13|x>>>19,(x+(x<<2)|0)+-430675100|0}function bY(x,r){return x=Ts(x,qj(r)),x=Ts(x,Uj(r)),x}function PU(x,r){return bY(x,zm(r))}function jU(x){var r=Mj(x.dims),e=0;switch(x.kind){case 2:case 3:case 12:r>bv&&(r=bv);var t=0,u=0;for(u=0;u+4<=x.data.length;u+=4)t=x.data[u+0]|x.data[u+1]<<8|x.data[u+2]<<16|x.data[u+3]<<24,e=Ts(e,t);switch(t=0,r&3){case 3:t=x.data[u+2]<<16;case 2:t|=x.data[u+1]<<8;case 1:t|=x.data[u+0],e=Ts(e,t)}break;case 4:case 5:r>y2&&(r=y2);var t=0,u=0;for(u=0;u+2<=x.data.length;u+=2)t=x.data[u+0]|x.data[u+1]<<16,e=Ts(e,t);r&1&&(e=Ts(e,x.data[u]));break;case 6:r>64&&(r=64);for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32),r*=2;for(var u=0;u64&&(r=64);for(var u=0;u32&&(r=32);for(var u=0;u0?u(r,x,t):u(x,r,t);if(t&&i!=i)return e;if(+i!=+i)return+i;if(i|0)return i|0}return e}function Xj(x){return typeof x=="string"&&!/[^\x00-\xff]/.test(x)}function Jj(x){return x instanceof bs}function CU(x){if(typeof x=="number")return cl;if(Jj(x))return _o;if(Xj(x))return 1252;if(x instanceof Array&&x[0]===x[0]>>>0&&x[0]<=d4){var r=x[0]|0;return r==Ov?0:r}else{if(x instanceof String)return vR;if(typeof x=="string")return vR;if(x instanceof Number)return cl;if(x&&x.caml_custom)return RP;if(x&&x.compare)return 1256;if(typeof x=="function")return 1247;if(typeof x=="symbol")return 1251}return 1001}function Tt(x,r){return xr?1:0}function PY(x,r){return x.t&6&&Km(x),r.t&6&&Km(r),x.cr.c?1:0}function Vm(x,r,e){for(var t=[];;){if(!(e&&x===r)){var u=CU(x);if(u==qv){x=x[1];continue}var i=CU(r);if(i==qv){r=r[1];continue}if(u!==i)return u==cl?i==RP?OU(x,r,-1,e):-1:i==cl?u==RP?OU(r,x,1,e):1:ur)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1001:if(xr)return 1;if(x!=r){if(!e)return NaN;if(x==x)return 1;if(r==r)return-1}break;case 1251:if(x!==r)return e?1:NaN;break;case 1252:var x=x,r=r;if(x!==r){if(xr)return 1}break;case 12520:var x=x.toString(),r=r.toString();if(x!==r){if(xr)return 1}break;case 246:case 254:default:if(mY(u)){G2("compare: continuation value");break}if(x.length!=r.length)return x.length1&&t.push(x,r,1);break}}if(t.length==0)return 0;var a=t.pop();r=t.pop(),x=t.pop(),a+10)if(r==0&&(e>=x.l||x.t==2&&e>=x.c.length))t==0?(x.c=H0,x.t=2):(x.c=Bv(e,String.fromCharCode(t)),x.t=e==x.l?0:2);else for(x.t!=4&&Jm(x),e+=r;r0&&r===r||(x=x.replace(/_/g,H0),r=+x,x.length>0&&r===r||/^[+-]?nan$/i.test(x)))return r;var e=/^ *([+-]?)0x([0-9a-f]+)\.?([0-9a-f]*)(p([+-]?[0-9]+))?/i.exec(x);if(e){var t=e[3].replace(/0+$/,H0),u=parseInt(e[1]+e[2]+t,16),i=(e[5]|0)-4*t.length;return r=u*Math.pow(2,i),r}if(/^\+?inf(inity)?$/i.test(x))return 1/0;if(/^-inf(inity)?$/i.test(x))return-1/0;q1("float_of_string")}function Yj(x){x=x;var r=x.length;r>31&&G2("format_int: format too long");for(var e={justify:gs,signstyle:xt,filler:wf,alternate:!1,base:0,signedconv:!1,width:0,uppercase:!1,sign:1,prec:-1,conv:xM},t=0;t=0&&u<=9;)e.width=e.width*10+u,t++;t--;break;case".":for(e.prec=0,t++;u=x.charCodeAt(t)-48,u>=0&&u<=9;)e.prec=e.prec*10+u,t++;t--;case"d":case"i":e.signedconv=!0;case"u":e.base=10;break;case"x":e.base=16;break;case"X":e.base=16,e.uppercase=!0;break;case"o":e.base=8;break;case"e":case"f":case"g":e.signedconv=!0,e.conv=u;break;case"E":case"F":case"G":e.signedconv=!0,e.uppercase=!0,e.conv=u.toLowerCase();break}}return e}function zj(x,r){x.uppercase&&(r=r.toUpperCase());var e=r.length;x.signedconv&&(x.sign<0||x.signstyle!=xt)&&e++,x.alternate&&(x.base==8&&(e+=1),x.base==16&&(e+=2));var t=H0;if(x.justify==gs&&x.filler==wf)for(var u=e;u20?(S-=20,_/=Math.pow(10,S),_+=new Array(S+1).join($1),y>0&&(_=_+Uf+new Array(y+1).join($1)),_):_.toFixed(y)}var t,u=Yj(x),i=u.prec<0?6:u.prec;if((r<0||r==0&&1/r==-1/0)&&(u.sign=-1,r=-r),isNaN(r))t=Ky,u.filler=wf;else if(!isFinite(r))t="inf",u.filler=wf;else switch(u.conv){case"e":var t=r.toExponential(i),c=t.length;t.charAt(c-3)==_9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break;case"f":t=e(r,i);break;case"g":i=i||1,t=r.toExponential(i-1);var v=t.indexOf(_9),a=+t.slice(v+1);if(a<-4||r>=1e21||r.toFixed(0).length>i){for(var c=v-1;t.charAt(c)==$1;)c--;t.charAt(c)==Uf&&c--,t=t.slice(0,c+1)+t.slice(v),c=t.length,t.charAt(c-3)==_9&&(t=t.slice(0,c-1)+$1+t.slice(c-1));break}else{var p=i;if(a<0)p-=a+1,t=r.toFixed(p);else for(;t=r.toFixed(p),t.length>i+1;)p--;if(p){for(var c=t.length-1;t.charAt(c)==$1;)c--;t.charAt(c)==Uf&&c--,t=t.slice(0,c+1)}}break}return zj(u,t)}function Wm(x,r){if(x==Uv)return H0+r;var e=Yj(x);r<0&&(e.signedconv?(e.sign=-1,r=-r):r>>>=0);var t=r.toString(e.base);if(e.prec>=0){e.filler=wf;var u=e.prec-t.length;u>0&&(t=Bv(u,$1)+t)}return zj(e,t)}var RU=0;function Es(){return RU++}function FU(){return[0]}var Gm=[];function $x(x,r,e){var t=x[1],u=Gm[e];if(u===void 0)for(var i=Gm.length;i>1|1,r__?(e.substr(0,1),r+=e,e=H0,r+=x.slice(i,v)):e+=x.slice(i,v),v==c)break;i=v}t>6),e+=String.fromCharCode(Kt|t&Mv)):t<55296||t>=MM?e+=String.fromCharCode(eM|t>>12,Kt|t>>6&Mv,Kt|t&Mv):t>=56319||i+1==c||(u=x.charCodeAt(i+1))MM?e+="\xEF\xBF\xBD":(i++,t=(t<<10)+u-56613888,e+=String.fromCharCode(OM|t>>18,Kt|t>>12&Mv,Kt|t>>6&Mv,Kt|t&Mv)),e.length>pl&&(e.substr(0,1),r+=e,e=H0)}return r+e}function Et(x){return Oj(x)?x:OY(x)}function CY(x,r,e){if(!isFinite(x))return isNaN(x)?Et(Ky):Et(x>0?IF:"-infinity");var t=x==0&&1/x==-1/0?1:x>=0?0:1;t&&(x=-x);var u=0;if(x!=0)if(x<1)for(;x<1&&u>-1022;)x*=2,u--;else for(;x>=2;)x/=2,u++;var i=u<0?H0:gs,c=H0;if(t)c=xt;else switch(e){case 43:c=gs;break;case 32:c=wf;break;default:break}if(r>=0&&r<13){var v=Math.pow(2,r*4);x=Math.round(x*v)/v}var a=x.toString(16);if(r>=0){var p=a.indexOf(Uf);if(p<0)a+=Uf+Bv(r,$1);else{var _=p+1+r;a.length<_?a+=Bv(_-a.length,$1):a=a.substr(0,_)}}return Et(c+ca+a+"p"+i+u.toString(10))}function DY(x){return+x.isZero()}function $m(x){return new ir(x&si,x>>24&si,x>>31&Xt)}function RY(x){return x.toInt()}function FY(x){return+x.isNeg()}function Wj(x){return x.neg()}function LU(x,r){var e=Yj(x);e.signedconv&&FY(r)&&(e.sign=-1,r=Wj(r));var t=H0,u=$m(e.base),i="0123456789abcdef";do{var c=r.udivmod(u);r=c.quotient,t=i.charAt(RY(c.modulus))+t}while(!DY(r));if(e.prec>=0){e.filler=wf;var v=e.prec-t.length;v>0&&(t=Bv(v,$1)+t)}return zj(e,t)}function Nx(x){return x.length}function F0(x,r){return x.charCodeAt(r)}function LY(x,r){return x.add(r)}function MY(x,r){return x.mul(r)}function Gj(x,r){return x.ucompare(r)<0}function MU(x){var r=0,e=Nx(x),t=10,u=1;if(e>0)switch(F0(x,r)){case 45:r++,u=-1;break;case 43:r++,u=1;break}if(r+1=48&&x<=57?x-48:x>=65&&x<=90?x-55:x>=97&&x<=r2?x-87:-1}function Al(x){var r=MU(x),e=r[0],t=r[1],u=r[2],i=$m(u),c=new ir(si,268435455,Xt).udivmod(i).quotient,v=F0(x,e),a=Hm(v);(a<0||a>=u)&&q1(ys);for(var p=$m(a);;)if(e++,v=F0(x,e),v!=95){if(a=Hm(v),a<0||a>=u)break;Gj(c,p)&&q1(ys),a=$m(a),p=LY(MY(i,p),a),Gj(p,a)&&q1(ys)}return e!=Nx(x)&&q1(ys),u==10&&Gj(new ir(0,0,Vt),p)&&q1(ys),t<0&&(p=Wj(p)),p}function Qm(x){return x.toFloat()}function et(x){var r=MU(x),e=r[0],t=r[1],u=r[2],i=Nx(x),c=-1>>>0,v=e=u)&&q1(ys);var p=a;for(e++;e=u)break;p=u*p+a,p>c&&q1(ys)}return e!=i&&q1(ys),p=t*p,u==10&&(p|0)!=p&&q1(ys),p|0}function UY(x){return x.slice(1)}function Qx(x){return Oj(x)?x:hU(x)}function qY(x){for(var r={},e=1;e=0?x.l:x.l=x.length}function XY(x){return function(){for(var r=BY(x),e=new Array(r),t=0;t1&&t.pop();break;case".":break;case"":break;default:t.push(e[u]);break}return t.unshift(r[0]),t.orig=x,t}var WY=["E2BIG","EACCES","EAGAIN",Xb,"EBUSY","ECHILD","EDEADLK","EDOM",uL,"EFAULT","EFBIG","EINTR","EINVAL","EIO","EISDIR","EMFILE","EMLINK","ENAMETOOLONG","ENFILE","ENODEV",Hw,"ENOEXEC","ENOLCK","ENOMEM","ENOSPC","ENOSYS",l9,GD,"ENOTTY","ENXIO","EPERM","EPIPE","ERANGE","EROFS","ESPIPE","ESRCH","EXDEV","EWOULDBLOCK","EINPROGRESS","EALREADY","ENOTSOCK","EDESTADDRREQ","EMSGSIZE","EPROTOTYPE","ENOPROTOOPT","EPROTONOSUPPORT","ESOCKTNOSUPPORT","EOPNOTSUPP","EPFNOSUPPORT","EAFNOSUPPORT","EADDRINUSE","EADDRNOTAVAIL","ENETDOWN","ENETUNREACH","ENETRESET","ECONNABORTED","ECONNRESET","ENOBUFS","EISCONN","ENOTCONN","ESHUTDOWN","ETOOMANYREFS","ETIMEDOUT","ECONNREFUSED","EHOSTDOWN","EHOSTUNREACH","ELOOP","EOVERFLOW"];function As(x,r,e,t){var u=WY.indexOf(x);u<0&&(t==null&&(t=-9999),u=[0,t]);var i=[u,Et(r||H0),Et(e||H0)];return i}var XU={};function pa(x){return XU[x]}function Is(x,r){throw U0([0,x].concat(r))}function Hj(x){return x instanceof Uint8Array||(x=new Uint8Array(x)),new bs(4,x,x.length)}function JU(x){Or(x+v4)}function H1(x){this.data=x}H1.prototype=new UU,H1.prototype.constructor=H1,H1.prototype.truncate=function(x){var r=this.data;this.data=T2(x|0),_s(r,0,this.data,0,x)},H1.prototype.length=function(){return tt(this.data)},H1.prototype.write=function(x,r,e,t){var u=this.length();if(x+t>=u){var i=T2(x+t),c=this.data;this.data=i,_s(c,0,this.data,0,u)}return _s(Hj(r),e,this.data,x,t),0},H1.prototype.read=function(x,r,e,t){var u=this.length();if(x+t>=u&&(t=u-x),t){var i=T2(t|0);_s(this.data,x,i,0,t),r.set(qU(i),e)}return t};function jo(x,r,e){this.file=r,this.name=x,this.flags=e}jo.prototype.err_closed=function(){Or(this.name+uF)},jo.prototype.length=function(){if(this.file)return this.file.length();this.err_closed()},jo.prototype.write=function(x,r,e,t){if(this.file)return this.file.write(x,r,e,t);this.err_closed()},jo.prototype.read=function(x,r,e,t){if(this.file)return this.file.read(x,r,e,t);this.err_closed()},jo.prototype.close=function(){this.file=void 0};function v1(x,r){this.content={},this.root=x,this.lookupFun=r}v1.prototype.nm=function(x){return this.root+x},v1.prototype.create_dir_if_needed=function(x){for(var r=x.split(W1),e=H0,t=0;t0&&e>=0&&e+t<=r.length&&r[e+t-1]==10&&t--;var u=T2(t);return _s(Hj(r),e,u,0,t),this.log(u.toUtf16()),0}Or(this.fd+uF)},jl.prototype.read=function(x,r,e,t){Or(this.fd+": file descriptor is write only")},jl.prototype.close=function(){this.log=void 0};function eh(x,r){return r==null&&(r=xh.length),xh[r]=x,r|0}function jP0(x,r,e){for(var t={};r;){switch(r[1]){case 0:t.rdonly=1;break;case 1:t.wronly=1;break;case 2:t.append=1;break;case 3:t.create=1;break;case 4:t.truncate=1;break;case 5:t.excl=1;break;case 6:t.binary=1;break;case 7:t.text=1;break;case 8:t.nonblock=1;break}r=r[2]}t.rdonly&&t.wronly&&Or(x+fw),t.text&&t.binary&&Or(x+kj);var u=GY(x),i=u.device.open(u.rest,t);return eh(i,void 0)}(function(){function x(r,e){return Il()?YY(r,e):new jl(r,e)}eh(x(0,{rdonly:1,altname:"/dev/stdin",isCharacterDevice:!0}),0),eh(x(1,{buffered:2,wronly:1,isCharacterDevice:!0}),1),eh(x(2,{buffered:2,wronly:1,isCharacterDevice:!0}),2)})();function $Y(x){var r=xh[x];r.flags.wronly&&Or(mM+x+" is writeonly");var e=null,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!1,buffer_curr:0,buffer_max:0,buffer:new Uint8Array(nl),refill:e};return Ss[t.fd]=t,t.fd}function YU(x){var r=xh[x];r.flags.rdonly&&Or(mM+x+" is readonly");var e=r.flags.buffered!==void 0?r.flags.buffered:1,t={file:r,offset:r.flags.append?r.length():0,fd:x,opened:!0,out:!0,buffer_curr:0,buffer:new Uint8Array(nl),buffered:e};return Ss[t.fd]=t,t.fd}function HY(){for(var x=0,r=0;ru.buffer.length){var i=new Uint8Array(u.buffer_curr+r.length);i.set(u.buffer),u.buffer=i}switch(u.buffered){case 0:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,Fc(x);break;case 1:u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Fc(x);break;case 2:var c=r.lastIndexOf(10);c<0?(u.buffer.set(r,u.buffer_curr),u.buffer_curr+=r.length,u.buffer_curr>=u.buffer.length&&Fc(x)):(u.buffer.set(r.subarray(0,c+1),u.buffer_curr),u.buffer_curr+=c+1,Fc(x),u.buffer.set(r.subarray(c+1),u.buffer_curr),u.buffer_curr+=r.length-c-1);break}return 0}function ZY(x,u,e,t){var u=qU(u);return QY(x,u,e,t)}function Qj(x,r,e,t){return ZY(x,Dc(r),e,t)}function zU(x,r){var e=String.fromCharCode(r);return Qj(x,e,0,1),0}function Nl(x,r){return+(Vm(x,r,!1)!=0)}function Zj(x,r){var e=new Array(r+1);e[0]=x;for(var t=1;t<=r;t++)e[t]=0;return e}function xz(x,r){return x[0]=qv,x[1]=r,0}function No(x){return x instanceof Array&&x[0]==x[0]>>>0?x[0]:Jj(x)||Xj(x)?_o:x instanceof Function||typeof x=="function"?el:x&&x.caml_custom?d4:cl}function rz(x){for(var r;x;)if(Qx(x[1][1])=="SYJS"){r=x[1][2];break}else x=x[2];var e={};if(r)for(var t=1;t=0?x=u:q1("caml_register_global: cannot locate "+t)}}U1[x+1]=r,e&&(U1[e]=r)}function xN(x,r){return XU[x]=r,0}function ez(x){return x[2]=RU++,x}function Ar(x,r){return x===r?1:0}function tz(){G2(oE)}function N2(x,r){return r>>>0>=Nx(x)&&tz(),F0(x,r)}function I(x,r){return 1-Ar(x,r)}function A1(x){return x.t&6&&Km(x),x.c}function nz(){return 2147483647/4|0}var uz=u0.process&&u0.process.platform&&u0.process.platform==yF?PM:"Unix";function iz(){return[0,uz,32,0]}function fz(){_U(U1.Not_found)}function VU(x){var r=yU(Qx(x));return r===void 0&&fz(),Et(r)}function rN(x){for(var r=1;x&&x.joo_tramp;)x=x.joo_tramp.apply(null,x.joo_args),r++;return x}function l1(x,r){return{joo_tramp:x,joo_args:r}}function m0(x,r){if(r.fun)return x.fun=r.fun,0;if(typeof r=="function")return x.fun=r,0;for(var e=r.length;e--;)x[e]=r[e];return 0}function O2(x){{if(x instanceof Array)return x;var r;return u0.RangeError&&x instanceof u0.RangeError&&x.message&&x.message.match(/maximum call stack/i)||u0.InternalError&&x instanceof u0.InternalError&&x.message&&x.message.match(/too much recursion/i)?r=U1.Stack_overflow:x instanceof u0.Error&&pa(UT)?r=[0,pa(UT),x]:r=[0,U1.Failure,Et(String(x))],x instanceof u0.Error&&(r.js_error=x),r}}function cz(x){switch(x[2]){case-8:case-11:case-12:return 1;default:return 0}}function sz(x){var r=H0;if(x[0]==0){if(r+=x[1][1],x.length==3&&x[2][0]==0&&cz(x[1]))var t=x[2],e=1;else var e=2,t=x;r+=MD;for(var u=e;ue&&(r+=BR);var i=t[u];typeof i=="number"?r+=i.toString():i instanceof bs||typeof i=="string"?r+=s8+i.toString()+s8:r+=Iv}r+=zw}else x[0]==x2&&(r+=x[1]);return r}function WU(x){if(x instanceof Array&&(x[0]==0||x[0]==x2)){var r=pa(sR);if(r)Zm(r,[x,!1]);else{var e=sz(x),t=pa(ZR);if(t&&Zm(t,[0]),console.error(ij+e),x.js_error)throw x.js_error}}else throw x}function az(){var x=u0.process;x&&x.on?x.on("uncaughtException",function(r,e){WU(r),x.exit(2)}):u0.addEventListener&&u0.addEventListener("error",function(r){r.error&&WU(r.error)})}az();function l(x,r){return(x.l>=0?x.l:x.l=x.length)==1?x(r):ws(x,[r])}function k(x,r,e){return(x.l>=0?x.l:x.l=x.length)==2?x(r,e):ws(x,[r,e])}function B0(x,r,e,t){return(x.l>=0?x.l:x.l=x.length)==3?x(r,e,t):ws(x,[r,e,t])}function At(x,r,e,t,u){return(x.l>=0?x.l:x.l=x.length)==4?x(r,e,t,u):ws(x,[r,e,t,u])}function I1(x,r,e,t,u,i){return(x.l>=0?x.l:x.l=x.length)==5?x(r,e,t,u,i):ws(x,[r,e,t,u,i])}function oz(x,r,e,t,u,i,c,v){return(x.l>=0?x.l:x.l=x.length)==7?x(r,e,t,u,i,c,v):ws(x,[r,e,t,u,i,c,v])}var R=void 0,eN=[x2,GM,-1],GU=[x2,TM,-2],xn=[x2,e_,-3],tN=[x2,pM,-4],Lc=[x2,wF,-7],$U=[x2,BL,-8],HU=[x2,TL,-9],Ir=[x2,VD,-11],Ol=[x2,VL,-12],vz=[4,0,0,0,[12,45,[4,0,0,0,0]]],nN=[0,[11,'File "',[2,0,[11,'", line ',[4,0,0,0,[11,yL,[4,0,0,0,[12,45,[4,0,0,0,[11,": ",[2,0,0]]]]]]]]]],'File "%s", line %d, characters %d-%d: %s'],Vv=[0,0,[0,0,0],[0,0,0]],Cl=[0,0,0,0,1,0,0,0],QU=[0,"first_leading","last_trailing"],ZU=[0,ff,pf,zu,Hn,lf,Au,j7,ki,ru,Wf,m7,Ei,kf,Jt,Su,Zf,Ee,c7,D7,Xi,Nf,i7,$u,Oc,sc,Rn,zi,_7,nu,Ti,Ri,Pc,S7,su,ti,qi,ci,Gu,Lf,Pi,K7,zn,Nc,w7,Ou,Ui,fc,Zu,Ki,Cf,An,Gf,xc,Di,_e,we,bu,xf,ic,bi,Zn,hf,Tu,Bf,$i,Wi,Yf,af,ac,li,ie,di,Dn,Vi,Fi,iu,Un,ku,gi,Bi,cc,Qf,lu,_u,Ji,Qn,jn,cf,Wn,Af,b7,V2,ei,Du,Pn,T7,Vn,df,tf,P7,q7,hi,du,fu,z7,Cu,Jf,C7,gn,Vf,x7,Tn,k7,Lu,Fu,mf,qu,Zi,_n,ii,Sc,Ai,Z7,ui,$7,au,yt,e7,qn,n7,R1,ni,X7,wu,Yn,Hi,W7,Sf,s7,G1,Mu,On,Tf,wi,Y7,Cc,M7,Q7,mt,_i,Iu,lc,zf,Ln,ef,eu,Xu,Tc,Vu,p7,Bn,L7,In,Rf,Df,Ci,qf,h7,yu,En,pi,l7,bn,J7,Li,dr,Xn,Wu,hu,uc,Ru,Jn,gc,hc,Eu,kc,E7,nf,a7,mi,gf,jf,B7,ji,Ec,Yi,bc,Mn,Yu,uf,Ku,Xf,Hu,R7,Mf,Fn,Pu,of,Qt,yc,vu,g7,rc,oc,f7,A7,gu,Kn,$n,yi,pu,$f,Ff,U7,Ef,Ac,tu,bf,ec,G7,Ie,nc,V7,mu,xu,Ni,v7,Gn,Se,tc,Nu,o7,vc,Si,Ii,r7,Mi,je,ou,N7,yf,rf,mc,oi,sf,Pe,Ic,Gi,cu,uu,Kf,Sn,Nn,fi,If,ri,_c,t7,wc,xi,wn,y7,ai,Of,Pf,O7,u7,d7,Qu,ju,pc,Cn,I7,Uu,jc,vi,L1,_f,Qi,Ju,M1],rn=[0,0,0];St(11,Ol,VL),St(10,Ir,VD),St(9,[x2,jF,FR],jF),St(8,HU,TL),St(7,$U,BL),St(6,Lc,wF),St(5,[x2,tF,-6],tF),St(4,[x2,aR,-5],aR),St(3,tN,pM),St(2,xn,e_),St(1,GU,TM),St(0,eN,GM);var lz="output_substring",pz=Uf,kz=os,mz=ps,hz="CamlinternalLazy.Undefined",dz=IM,yz="\\'",gz="\\b",_z="\\t",bz="\\n",wz="\\r",Tz="List.iter2",Ez="tl",Sz="hd",Az="String.blit / Bytes.blit_string",Iz="Bytes.blit",Pz="String.sub / Bytes.sub",jz=H0,Nz="String.concat",Oz="Array.blit",Cz="Array.sub",Dz=Wp,Rz=Wp,Fz=Wp,Lz=Wp,Mz="Stdlib.Queue.Empty",Uz="Buffer.add_substring/add_subbytes",qz="Buffer.add: cannot grow buffer",Bz=[0,nR,93,2],Xz=[0,nR,94,2],Jz="Buffer.sub",Kz="%c",Yz="%s",zz=XD,Vz=AM,Wz=hF,Gz=KM,$z="%f",Hz="%B",Qz="%{",Zz="%}",xV="%(",rV="%)",eV=LF,tV="%t",nV="%?",uV="%r",iV="%_r",fV=[0,e1,850,23],cV=[0,e1,814,21],sV=[0,e1,815,21],aV=[0,e1,818,21],oV=[0,e1,819,21],vV=[0,e1,822,19],lV=[0,e1,823,19],pV=[0,e1,826,22],kV=[0,e1,827,22],mV=[0,e1,831,30],hV=[0,e1,832,30],dV=[0,e1,836,26],yV=[0,e1,837,26],gV=[0,e1,846,28],_V=[0,e1,847,28],bV=[0,e1,851,23],wV=[0,e1,1558,4],TV="Printf: bad conversion %[",EV=[0,e1,1626,39],SV=[0,e1,1649,31],AV=[0,e1,1650,31],IV="Printf: bad conversion %_",PV=YL,jV=dF,NV=YL,OV=dF,CV=[0,[11,"invalid box description ",[3,0,0]],"invalid box description %S"],DV=[0,0,4],RV=Ky,FV="neg_infinity",LV=IF,MV=Uf,UV=[0,Qe],qV="%+nd",BV="% nd",XV="%+ni",JV="% ni",KV="%nx",YV="%#nx",zV="%nX",VV="%#nX",WV="%no",GV="%#no",$V="%nd",HV=hF,QV="%nu",ZV="%+ld",xW="% ld",rW="%+li",eW="% li",tW="%lx",nW="%#lx",uW="%lX",iW="%#lX",fW="%lo",cW="%#lo",sW="%ld",aW=AM,oW="%lu",vW="%+Ld",lW="% Ld",pW="%+Li",kW="% Li",mW="%Lx",hW="%#Lx",dW="%LX",yW="%#LX",gW="%Lo",_W="%#Lo",bW="%Ld",wW=KM,TW="%Lu",EW="%+d",SW="% d",AW="%+i",IW="% i",PW="%x",jW="%#x",NW="%X",OW="%#X",CW="%o",DW="%#o",RW=Uv,FW=XD,LW=fL,MW=pv,UW="@}",qW="@?",BW=`@ Error: spawn vi ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12) at onErrorNT (node:internal/child_process:484:16) at processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn vi', path: 'vi', spawnargs: [ '/tmp/tmp-145307-Zlk2A5w3lRBb/PREVIEW__' ] } Node.js v20.14.0 ```
mjwheatley commented 2 months ago

In my case I was not expecting any files to be changed and committed and was receiving this error message. I believe this is because the Nx config defaults to true for doing a changelog commit. I got around this issue by updating my nx.json config and set release.changelog.git.commit to false. This worked for my use case because I was not expecting to update any files (package.json or CHANGELOG.md) and commit them back.