@seed-design/codemod 0.0.31 → 1.0.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/bin/index.cjs +1 -1
  2. package/package.json +5 -5
package/bin/index.cjs CHANGED
@@ -3,7 +3,7 @@ var cx=Object.create;var Ao=Object.defineProperty;var ux=Object.getOwnPropertyDe
3
3
  `).join(`
4
4
  `+o),e.push(s+"m+"+to.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=sA()+t+" "+e[0]}function sA(){return Q.inspectOpts.hideDate?"":new Date().toISOString()+" "}function oA(...e){return process.stderr.write(eo.formatWithOptions(Q.inspectOpts,...e)+`
5
5
  `)}function iA(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function aA(){return process.env.DEBUG}function cA(e){e.inspectOpts={};let t=Object.keys(Q.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Q.inspectOpts[t[r]]}to.exports=Ua()(Q);var{formatters:Wg}=to.exports;Wg.o=function(e){return this.inspectOpts.colors=this.useColors,eo.inspect(e,this.inspectOpts).split(`
6
- `).map(t=>t.trim()).join(" ")};Wg.O=function(e){return this.inspectOpts.colors=this.useColors,eo.inspect(e,this.inspectOpts)}});var Va=w((I9,qa)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?qa.exports=Bg():qa.exports=Hg()});var Zg=w(ye=>{"use strict";var uA=ye&&ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var lA=require("fs"),fA=uA(Va()),Tr=fA.default("@kwsites/file-exists");function dA(e,t,r){Tr("checking %s",e);try{let n=lA.statSync(e);return n.isFile()&&t?(Tr("[OK] path represents a file"),!0):n.isDirectory()&&r?(Tr("[OK] path represents a directory"),!0):(Tr("[FAIL] path represents something other than a file or directory"),!1)}catch(n){if(n.code==="ENOENT")return Tr("[FAIL] path is not accessible: %o",n),!1;throw Tr("[FATAL] %o",n),n}}function pA(e,t=ye.READABLE){return dA(e,(t&ye.FILE)>0,(t&ye.FOLDER)>0)}ye.exists=pA;ye.FILE=1;ye.FOLDER=2;ye.READABLE=ye.FILE+ye.FOLDER});var Yg=w(ro=>{"use strict";function mA(e){for(var t in e)ro.hasOwnProperty(t)||(ro[t]=e[t])}Object.defineProperty(ro,"__esModule",{value:!0});mA(Zg())});var Wa=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.createDeferred=Vt.deferred=void 0;function za(){let e,t,r="pending";return{promise:new Promise((s,o)=>{e=s,t=o}),done(s){r==="pending"&&(r="resolved",e(s))},fail(s){r==="pending"&&(r="rejected",t(s))},get fulfilled(){return r!=="pending"},get status(){return r}}}Vt.deferred=za;Vt.createDeferred=za;Vt.default=za});var Nw=w((f3,Nc)=>{var To=process||{},Dw=To.argv||[],Eo=To.env||{},_$=!(Eo.NO_COLOR||Dw.includes("--no-color"))&&(!!Eo.FORCE_COLOR||Dw.includes("--color")||To.platform==="win32"||(To.stdout||{}).isTTY&&Eo.TERM!=="dumb"||!!Eo.CI),E$=(e,t,r=e)=>n=>{let s=""+n,o=s.indexOf(t,e.length);return~o?e+T$(s,t,r,o)+t:e+s+t},T$=(e,t,r,n)=>{let s="",o=0;do s+=e.substring(o,n)+r,o=n+t.length,n=e.indexOf(t,o);while(~n);return s+e.substring(o)},Lw=(e=_$)=>{let t=e?E$:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Nc.exports=Lw();Nc.exports.createColors=Lw});var Fw=w((p3,O$)=>{O$.exports={name:"@seed-design/codemod",version:"0.0.31",repository:{type:"git",url:"git+https://github.com/daangn/seed-design.git",directory:"packages/codemod"},license:"MIT",bin:"./bin/index.cjs",files:["bin"],scripts:{dev:"bun ./dev.mjs",build:"bun ./build.mjs",test:"LOG=true bun vitest","lint:publish":"bun publint"},dependencies:{"@seed-design/migration-index":"^0.0.30",cac:"^6.7.14","change-case":"^5.4.4","es-toolkit":"^1.35.0",execa:"^9.5.2",glob:"^11.0.2",jscodeshift:"^17.3.0",picocolors:"^1.1.1",postcss:"^8.5.3",semver:"^7.7.1","simple-git":"^3.27.0",winston:"^3.17.0",zod:"^3.24.3"},devDependencies:{"@types/jscodeshift":"^17.3.0","@types/node":"^24.0.0","csv-parse":"^6.0.0",dotenv:"^17.0.0",esbuild:"^0.25.3",typescript:"^5.8.3"},optionalDependencies:{"@karrotmarket/react-monochrome-icon":"^0.0.34","@karrotmarket/react-multicolor-icon":"^0.0.27"},publishConfig:{access:"public"},engines:{node:">=20.16.0"}}});var Uc=require("events");function Io(e){return e==null?[]:Array.isArray(e)?e:[e]}function hx(e,t,r,n){var s,o=e[t],i=~n.string.indexOf(t)?r==null||r===!0?"":String(r):typeof r=="boolean"?r:~n.boolean.indexOf(t)?r==="false"?!1:r==="true"||(e._.push((s=+r,s*0===0?s:r)),!!r):(s=+r,s*0===0?s:r);e[t]=o==null?i:Array.isArray(o)?o.concat(i):[o,i]}function gx(e,t){e=e||[],t=t||{};var r,n,s,o,i,a={_:[]},c=0,u=0,l=0,f=e.length;let p=t.alias!==void 0,d=t.unknown!==void 0,x=t.default!==void 0;if(t.alias=t.alias||{},t.string=Io(t.string),t.boolean=Io(t.boolean),p)for(r in t.alias)for(n=t.alias[r]=Io(t.alias[r]),c=0;c<n.length;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(n=t.alias[t.boolean[c]]||[],u=n.length;u-- >0;)t.boolean.push(n[u]);for(c=t.string.length;c-- >0;)for(n=t.alias[t.string[c]]||[],u=n.length;u-- >0;)t.string.push(n[u]);if(x){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],t[o]!==void 0)for(t[o].push(r),c=0;c<n.length;c++)t[o].push(n[c])}let T=d?Object.keys(t.alias):[];for(c=0;c<f;c++){if(s=e[c],s==="--"){a._=a._.concat(e.slice(++c));break}for(u=0;u<s.length&&s.charCodeAt(u)===45;u++);if(u===0)a._.push(s);else if(s.substring(u,u+3)==="no-"){if(o=s.substring(u+3),d&&!~T.indexOf(o))return t.unknown(s);a[o]=!1}else{for(l=u+1;l<s.length&&s.charCodeAt(l)!==61;l++);for(o=s.substring(u,l),i=s.substring(++l)||c+1===f||(""+e[c+1]).charCodeAt(0)===45||e[++c],n=u===2?[o]:o,l=0;l<n.length;l++){if(o=n[l],d&&!~T.indexOf(o))return t.unknown("-".repeat(u)+o);hx(a,o,l+1<n.length||i,t)}}}if(x)for(r in t.default)a[r]===void 0&&(a[r]=t.default[r]);if(p)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a}var Gc=e=>e.replace(/[<[].+/,"").trim(),yx=e=>{let t=/<([^>]+)>/g,r=/\[([^\]]+)\]/g,n=[],s=a=>{let c=!1,u=a[1];return u.startsWith("...")&&(u=u.slice(3),c=!0),{required:a[0].startsWith("<"),value:u,variadic:c}},o;for(;o=t.exec(e);)n.push(s(o));let i;for(;i=r.exec(e);)n.push(s(i));return n},bx=e=>{let t={alias:{},boolean:[]};for(let[r,n]of e.entries())n.names.length>1&&(t.alias[n.names[0]]=n.names.slice(1)),n.isBoolean&&(n.negated&&e.some((o,i)=>i!==r&&o.names.some(a=>n.names.includes(a))&&typeof o.required=="boolean")||t.boolean.push(n.names[0]));return t},jc=e=>e.sort((t,r)=>t.length>r.length?-1:1)[0],Bc=(e,t)=>e.length>=t?e:`${e}${" ".repeat(t-e.length)}`,wx=e=>e.replace(/([a-z])-([a-z])/g,(t,r,n)=>r+n.toUpperCase()),xx=(e,t,r)=>{let n=0,s=t.length,o=e,i;for(;n<s;++n)i=o[t[n]],o=o[t[n]]=n===s-1?r:i??(~t[n+1].indexOf(".")||!(+t[n+1]>-1)?{}:[])},Sx=(e,t)=>{for(let r of Object.keys(t)){let n=t[r];n.shouldTransform&&(e[r]=Array.prototype.concat.call([],e[r]),typeof n.transformFunction=="function"&&(e[r]=e[r].map(n.transformFunction)))}},vx=e=>{let t=/([^\\\/]+)$/.exec(e);return t?t[1]:""},qc=e=>e.split(".").map((t,r)=>r===0?wx(t):t).join("."),Ar=class extends Error{constructor(t){super(t),this.name=this.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}},$o=class{constructor(t,r,n){this.rawName=t,this.description=r,this.config=Object.assign({},n),t=t.replace(/\.\*/g,""),this.negated=!1,this.names=Gc(t).split(",").map(s=>{let o=s.trim().replace(/^-{1,2}/,"");return o.startsWith("no-")&&(this.negated=!0,o=o.replace(/^no-/,"")),qc(o)}).sort((s,o)=>s.length>o.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null&&(this.config.default=!0),t.includes("<")?this.required=!0:t.includes("[")?this.required=!1:this.isBoolean=!0}},_x=process.argv,Ex=`${process.platform}-${process.arch} node-${process.version}`,yn=class{constructor(t,r,n={},s){this.rawName=t,this.description=r,this.config=n,this.cli=s,this.options=[],this.aliasNames=[],this.name=Gc(t),this.args=yx(t),this.examples=[]}usage(t){return this.usageText=t,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(t,r="-v, --version"){return this.versionNumber=t,this.option(r,"Display version number"),this}example(t){return this.examples.push(t),this}option(t,r,n){let s=new $o(t,r,n);return this.options.push(s),this}alias(t){return this.aliasNames.push(t),this}action(t){return this.commandAction=t,this}isMatched(t){return this.name===t||this.aliasNames.includes(t)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof bn}hasOption(t){return t=t.split(".")[0],this.options.find(r=>r.names.includes(t))}outputHelp(){let{name:t,commands:r}=this.cli,{versionNumber:n,options:s,helpCallback:o}=this.cli.globalCommand,i=[{body:`${t}${n?`/${n}`:""}`}];if(i.push({title:"Usage",body:` $ ${t} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&r.length>0){let u=jc(r.map(l=>l.rawName));i.push({title:"Commands",body:r.map(l=>` ${Bc(l.rawName,u.length)} ${l.description}`).join(`
6
+ `).map(t=>t.trim()).join(" ")};Wg.O=function(e){return this.inspectOpts.colors=this.useColors,eo.inspect(e,this.inspectOpts)}});var Va=w((I9,qa)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?qa.exports=Bg():qa.exports=Hg()});var Zg=w(ye=>{"use strict";var uA=ye&&ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ye,"__esModule",{value:!0});var lA=require("fs"),fA=uA(Va()),Tr=fA.default("@kwsites/file-exists");function dA(e,t,r){Tr("checking %s",e);try{let n=lA.statSync(e);return n.isFile()&&t?(Tr("[OK] path represents a file"),!0):n.isDirectory()&&r?(Tr("[OK] path represents a directory"),!0):(Tr("[FAIL] path represents something other than a file or directory"),!1)}catch(n){if(n.code==="ENOENT")return Tr("[FAIL] path is not accessible: %o",n),!1;throw Tr("[FATAL] %o",n),n}}function pA(e,t=ye.READABLE){return dA(e,(t&ye.FILE)>0,(t&ye.FOLDER)>0)}ye.exists=pA;ye.FILE=1;ye.FOLDER=2;ye.READABLE=ye.FILE+ye.FOLDER});var Yg=w(ro=>{"use strict";function mA(e){for(var t in e)ro.hasOwnProperty(t)||(ro[t]=e[t])}Object.defineProperty(ro,"__esModule",{value:!0});mA(Zg())});var Wa=w(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.createDeferred=Vt.deferred=void 0;function za(){let e,t,r="pending";return{promise:new Promise((s,o)=>{e=s,t=o}),done(s){r==="pending"&&(r="resolved",e(s))},fail(s){r==="pending"&&(r="rejected",t(s))},get fulfilled(){return r!=="pending"},get status(){return r}}}Vt.deferred=za;Vt.createDeferred=za;Vt.default=za});var Nw=w((f3,Nc)=>{var To=process||{},Dw=To.argv||[],Eo=To.env||{},_$=!(Eo.NO_COLOR||Dw.includes("--no-color"))&&(!!Eo.FORCE_COLOR||Dw.includes("--color")||To.platform==="win32"||(To.stdout||{}).isTTY&&Eo.TERM!=="dumb"||!!Eo.CI),E$=(e,t,r=e)=>n=>{let s=""+n,o=s.indexOf(t,e.length);return~o?e+T$(s,t,r,o)+t:e+s+t},T$=(e,t,r,n)=>{let s="",o=0;do s+=e.substring(o,n)+r,o=n+t.length,n=e.indexOf(t,o);while(~n);return s+e.substring(o)},Lw=(e=_$)=>{let t=e?E$:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Nc.exports=Lw();Nc.exports.createColors=Lw});var Fw=w((p3,O$)=>{O$.exports={name:"@seed-design/codemod",version:"1.0.0",repository:{type:"git",url:"git+https://github.com/daangn/seed-design.git",directory:"packages/codemod"},license:"MIT",bin:"./bin/index.cjs",files:["bin"],scripts:{dev:"bun ./dev.mjs",build:"bun ./build.mjs",test:"LOG=true bun vitest","lint:publish":"bun publint"},dependencies:{"@seed-design/migration-index":"^1.0.0",cac:"^6.7.14","change-case":"^5.4.4","es-toolkit":"^1.35.0",execa:"^9.5.2",glob:"^11.0.2",jscodeshift:"^17.3.0",picocolors:"^1.1.1",postcss:"^8.5.3",semver:"^7.7.1","simple-git":"^3.27.0",winston:"^3.17.0",zod:"^3.24.3"},devDependencies:{"@types/jscodeshift":"^17.3.0","@types/node":"^24.0.0","csv-parse":"^6.0.0",dotenv:"^17.0.0",esbuild:"^0.25.3",typescript:"^5.9.2"},optionalDependencies:{"@karrotmarket/react-monochrome-icon":"^1.0.0","@karrotmarket/react-multicolor-icon":"^1.0.0"},publishConfig:{access:"public"},engines:{node:">=20.16.0"}}});var Uc=require("events");function Io(e){return e==null?[]:Array.isArray(e)?e:[e]}function hx(e,t,r,n){var s,o=e[t],i=~n.string.indexOf(t)?r==null||r===!0?"":String(r):typeof r=="boolean"?r:~n.boolean.indexOf(t)?r==="false"?!1:r==="true"||(e._.push((s=+r,s*0===0?s:r)),!!r):(s=+r,s*0===0?s:r);e[t]=o==null?i:Array.isArray(o)?o.concat(i):[o,i]}function gx(e,t){e=e||[],t=t||{};var r,n,s,o,i,a={_:[]},c=0,u=0,l=0,f=e.length;let p=t.alias!==void 0,d=t.unknown!==void 0,x=t.default!==void 0;if(t.alias=t.alias||{},t.string=Io(t.string),t.boolean=Io(t.boolean),p)for(r in t.alias)for(n=t.alias[r]=Io(t.alias[r]),c=0;c<n.length;c++)(t.alias[n[c]]=n.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(n=t.alias[t.boolean[c]]||[],u=n.length;u-- >0;)t.boolean.push(n[u]);for(c=t.string.length;c-- >0;)for(n=t.alias[t.string[c]]||[],u=n.length;u-- >0;)t.string.push(n[u]);if(x){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],t[o]!==void 0)for(t[o].push(r),c=0;c<n.length;c++)t[o].push(n[c])}let T=d?Object.keys(t.alias):[];for(c=0;c<f;c++){if(s=e[c],s==="--"){a._=a._.concat(e.slice(++c));break}for(u=0;u<s.length&&s.charCodeAt(u)===45;u++);if(u===0)a._.push(s);else if(s.substring(u,u+3)==="no-"){if(o=s.substring(u+3),d&&!~T.indexOf(o))return t.unknown(s);a[o]=!1}else{for(l=u+1;l<s.length&&s.charCodeAt(l)!==61;l++);for(o=s.substring(u,l),i=s.substring(++l)||c+1===f||(""+e[c+1]).charCodeAt(0)===45||e[++c],n=u===2?[o]:o,l=0;l<n.length;l++){if(o=n[l],d&&!~T.indexOf(o))return t.unknown("-".repeat(u)+o);hx(a,o,l+1<n.length||i,t)}}}if(x)for(r in t.default)a[r]===void 0&&(a[r]=t.default[r]);if(p)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a}var Gc=e=>e.replace(/[<[].+/,"").trim(),yx=e=>{let t=/<([^>]+)>/g,r=/\[([^\]]+)\]/g,n=[],s=a=>{let c=!1,u=a[1];return u.startsWith("...")&&(u=u.slice(3),c=!0),{required:a[0].startsWith("<"),value:u,variadic:c}},o;for(;o=t.exec(e);)n.push(s(o));let i;for(;i=r.exec(e);)n.push(s(i));return n},bx=e=>{let t={alias:{},boolean:[]};for(let[r,n]of e.entries())n.names.length>1&&(t.alias[n.names[0]]=n.names.slice(1)),n.isBoolean&&(n.negated&&e.some((o,i)=>i!==r&&o.names.some(a=>n.names.includes(a))&&typeof o.required=="boolean")||t.boolean.push(n.names[0]));return t},jc=e=>e.sort((t,r)=>t.length>r.length?-1:1)[0],Bc=(e,t)=>e.length>=t?e:`${e}${" ".repeat(t-e.length)}`,wx=e=>e.replace(/([a-z])-([a-z])/g,(t,r,n)=>r+n.toUpperCase()),xx=(e,t,r)=>{let n=0,s=t.length,o=e,i;for(;n<s;++n)i=o[t[n]],o=o[t[n]]=n===s-1?r:i??(~t[n+1].indexOf(".")||!(+t[n+1]>-1)?{}:[])},Sx=(e,t)=>{for(let r of Object.keys(t)){let n=t[r];n.shouldTransform&&(e[r]=Array.prototype.concat.call([],e[r]),typeof n.transformFunction=="function"&&(e[r]=e[r].map(n.transformFunction)))}},vx=e=>{let t=/([^\\\/]+)$/.exec(e);return t?t[1]:""},qc=e=>e.split(".").map((t,r)=>r===0?wx(t):t).join("."),Ar=class extends Error{constructor(t){super(t),this.name=this.constructor.name,typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack}},$o=class{constructor(t,r,n){this.rawName=t,this.description=r,this.config=Object.assign({},n),t=t.replace(/\.\*/g,""),this.negated=!1,this.names=Gc(t).split(",").map(s=>{let o=s.trim().replace(/^-{1,2}/,"");return o.startsWith("no-")&&(this.negated=!0,o=o.replace(/^no-/,"")),qc(o)}).sort((s,o)=>s.length>o.length?1:-1),this.name=this.names[this.names.length-1],this.negated&&this.config.default==null&&(this.config.default=!0),t.includes("<")?this.required=!0:t.includes("[")?this.required=!1:this.isBoolean=!0}},_x=process.argv,Ex=`${process.platform}-${process.arch} node-${process.version}`,yn=class{constructor(t,r,n={},s){this.rawName=t,this.description=r,this.config=n,this.cli=s,this.options=[],this.aliasNames=[],this.name=Gc(t),this.args=yx(t),this.examples=[]}usage(t){return this.usageText=t,this}allowUnknownOptions(){return this.config.allowUnknownOptions=!0,this}ignoreOptionDefaultValue(){return this.config.ignoreOptionDefaultValue=!0,this}version(t,r="-v, --version"){return this.versionNumber=t,this.option(r,"Display version number"),this}example(t){return this.examples.push(t),this}option(t,r,n){let s=new $o(t,r,n);return this.options.push(s),this}alias(t){return this.aliasNames.push(t),this}action(t){return this.commandAction=t,this}isMatched(t){return this.name===t||this.aliasNames.includes(t)}get isDefaultCommand(){return this.name===""||this.aliasNames.includes("!")}get isGlobalCommand(){return this instanceof bn}hasOption(t){return t=t.split(".")[0],this.options.find(r=>r.names.includes(t))}outputHelp(){let{name:t,commands:r}=this.cli,{versionNumber:n,options:s,helpCallback:o}=this.cli.globalCommand,i=[{body:`${t}${n?`/${n}`:""}`}];if(i.push({title:"Usage",body:` $ ${t} ${this.usageText||this.rawName}`}),(this.isGlobalCommand||this.isDefaultCommand)&&r.length>0){let u=jc(r.map(l=>l.rawName));i.push({title:"Commands",body:r.map(l=>` ${Bc(l.rawName,u.length)} ${l.description}`).join(`
7
7
  `)}),i.push({title:"For more info, run any command with the `--help` flag",body:r.map(l=>` $ ${t}${l.name===""?"":` ${l.name}`} --help`).join(`
8
8
  `)})}let c=this.isGlobalCommand?s:[...this.options,...s||[]];if(!this.isGlobalCommand&&!this.isDefaultCommand&&(c=c.filter(u=>u.name!=="version")),c.length>0){let u=jc(c.map(l=>l.rawName));i.push({title:"Options",body:c.map(l=>` ${Bc(l.rawName,u.length)} ${l.description} ${l.config.default===void 0?"":`(default: ${l.config.default})`}`).join(`
9
9
  `)})}this.examples.length>0&&i.push({title:"Examples",body:this.examples.map(u=>typeof u=="function"?u(t):u).join(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-design/codemod",
3
- "version": "0.0.31",
3
+ "version": "1.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/daangn/seed-design.git",
@@ -18,7 +18,7 @@
18
18
  "lint:publish": "bun publint"
19
19
  },
20
20
  "dependencies": {
21
- "@seed-design/migration-index": "^0.0.30",
21
+ "@seed-design/migration-index": "^1.0.0",
22
22
  "cac": "^6.7.14",
23
23
  "change-case": "^5.4.4",
24
24
  "es-toolkit": "^1.35.0",
@@ -38,11 +38,11 @@
38
38
  "csv-parse": "^6.0.0",
39
39
  "dotenv": "^17.0.0",
40
40
  "esbuild": "^0.25.3",
41
- "typescript": "^5.8.3"
41
+ "typescript": "^5.9.2"
42
42
  },
43
43
  "optionalDependencies": {
44
- "@karrotmarket/react-monochrome-icon": "^0.0.34",
45
- "@karrotmarket/react-multicolor-icon": "^0.0.27"
44
+ "@karrotmarket/react-monochrome-icon": "^1.0.0",
45
+ "@karrotmarket/react-multicolor-icon": "^1.0.0"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"