@turbo/codemod 1.10.15 → 1.10.16-canary.0

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.
Files changed (2) hide show
  1. package/dist/cli.js +1 -1
  2. package/package.json +4 -4
package/dist/cli.js CHANGED
@@ -74,7 +74,7 @@ Please report this to https://github.com/szmarczak/http2-wrapper/`);P(I)}return}
74
74
  `+e.slice(i,c),i=c+1),a=s;return o+=`
75
75
  `,e.length-i>r&&a>i?o+=e.slice(i,a)+`
76
76
  `+e.slice(a+1):o+=e.slice(i),o.slice(1)}function nE(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=zn(e,i),n=et[t],!n&&Yn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||Kw(t);return r}function iE(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Kt(e,r,s,!1,!1)||typeof s>"u"&&Kt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function fh(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Kt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Kt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=jo(e,r)),e.dump&&Vn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function sE(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Kt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Kt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function oE(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ct("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=jo(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Kt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=jo(e,r)),Kt(e,r+1,l,!0,h)&&(e.dump&&Vn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function ph(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,Lh.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(Ih.call(s.represent,o))n=s.represent[o](r,o);else throw new ct("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Kt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,ph(e,t,!1)||ph(e,t,!0);var s=Lh.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(oE(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(sE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?fh(e,r-1,e.dump,i):fh(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(iE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&tE(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new ct("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function aE(e,r){var t=[],n=[],i,c;for(Ho(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Ho(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Ho(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Ho(e[n[i]],r,t)}function uE(e,r){r=r||{};var t=new Xw(r);t.noRefs||aE(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Kt(t,0,n,!0,!0)?t.dump+`
77
- `:""}var lE=uE,cE={dump:lE};function Jo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var oM=Bh.load,aM=Bh.loadAll,uM=cE.dump;var lM=Jo("safeLoad","load"),cM=Jo("safeLoadAll","loadAll"),hM=Jo("safeDump","dump");var fM=$e(qv());Y();var Ny=require("commander");var Ui={name:"@turbo/codemod",version:"1.10.15",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var Mn=Ie(require("os")),Py=require("child_process"),at=Ie(require("chalk")),By=require("inquirer");var Y2=require("stream"),X2=require("util"),Hr=Ie(require("path"),1),lt=require("fs-extra"),iy=Ie(is(),1),sy=Ie(require("path"),1),oy=require("fs-extra"),ay=Ie(require("chalk"),1),tr=Ie(require("path"),1),uy=Ie(is(),1),St=require("fs-extra"),ly=Ie(m0(),1);function T0(e){return typeof e=="undefined"||e===null}function aD(e){return typeof e=="object"&&e!==null}function uD(e){return Array.isArray(e)?e:T0(e)?[]:[e]}function lD(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function cD(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function hD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var fD=T0,pD=aD,dD=uD,mD=cD,yD=hD,gD=lD,Ke={isNothing:fD,isObject:pD,toArray:dD,repeat:mD,isNegativeZero:yD,extend:gD};function F0(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
77
+ `:""}var lE=uE,cE={dump:lE};function Jo(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var oM=Bh.load,aM=Bh.loadAll,uM=cE.dump;var lM=Jo("safeLoad","load"),cM=Jo("safeLoadAll","loadAll"),hM=Jo("safeDump","dump");var fM=$e(qv());Y();var Ny=require("commander");var Ui={name:"@turbo/codemod",version:"1.10.16-canary.0",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/eslint-config":"workspace:*","@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^18.17.2","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var Mn=Ie(require("os")),Py=require("child_process"),at=Ie(require("chalk")),By=require("inquirer");var Y2=require("stream"),X2=require("util"),Hr=Ie(require("path"),1),lt=require("fs-extra"),iy=Ie(is(),1),sy=Ie(require("path"),1),oy=require("fs-extra"),ay=Ie(require("chalk"),1),tr=Ie(require("path"),1),uy=Ie(is(),1),St=require("fs-extra"),ly=Ie(m0(),1);function T0(e){return typeof e=="undefined"||e===null}function aD(e){return typeof e=="object"&&e!==null}function uD(e){return Array.isArray(e)?e:T0(e)?[]:[e]}function lD(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function cD(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function hD(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var fD=T0,pD=aD,dD=uD,mD=cD,yD=hD,gD=lD,Ke={isNothing:fD,isObject:pD,toArray:dD,repeat:mD,isNegativeZero:yD,extend:gD};function F0(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
78
78
 
79
79
  `+e.mark.snippet),n+" "+t):n}function oi(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=F0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}oi.prototype=Object.create(Error.prototype);oi.prototype.constructor=oi;oi.prototype.toString=function(r){return this.name+": "+F0(this,r)};var ut=oi;function el(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function tl(e,r){return Ke.repeat(" ",r-e.length)+e}function bD(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=el(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ke.repeat(" ",r.indent)+tl((e.line-o+1).toString(),l)+" | "+f.str+`
80
80
  `+s;for(f=el(e.buffer,n[a],i[a],e.position,h),s+=Ke.repeat(" ",r.indent)+tl((e.line+1).toString(),l)+" | "+f.str+`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbo/codemod",
3
- "version": "1.10.15",
3
+ "version": "1.10.16-canary.0",
4
4
  "description": "Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",
5
5
  "homepage": "https://turbo.build/repo",
6
6
  "license": "MPL-2.0",
@@ -46,12 +46,12 @@
46
46
  "tsup": "^6.7.0",
47
47
  "typescript": "^4.5.5",
48
48
  "@turbo/eslint-config": "0.0.0",
49
- "@turbo/gen": "1.10.15",
49
+ "@turbo/gen": "1.10.16-canary.0",
50
50
  "@turbo/test-utils": "0.0.0",
51
51
  "@turbo/tsconfig": "0.0.0",
52
- "@turbo/types": "1.10.15",
52
+ "@turbo/types": "1.10.16-canary.0",
53
53
  "@turbo/utils": "0.0.0",
54
- "@turbo/workspaces": "1.10.15"
54
+ "@turbo/workspaces": "1.10.16-canary.0"
55
55
  },
56
56
  "files": [
57
57
  "dist"