builder.io 1.13.5 → 1.14.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.
- package/cli/index.cjs +323 -320
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +35 -35
- package/core/index.mjs +31 -31
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +61 -61
- package/server/index.mjs +61 -61
- package/types/cli/index.d.ts +1 -0
- package/types/cli/launch.d.ts +8 -0
- package/types/common/builder/builder-sdks.d.ts +1 -0
- package/types/core/create-dev-tools.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/node/index.cjs
CHANGED
|
@@ -103,5 +103,5 @@ ${" ".repeat(6+r)}^`),c));s+=`
|
|
|
103
103
|
${l.join(`
|
|
104
104
|
`)}
|
|
105
105
|
`}this.message=s}},Dc=new Set(["Literal","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","RegExpLiteral","BigIntLiteral"]),ta=new Set(["string","number","boolean","bigint","symbol","undefined"]),ee=bt;function Oc(i){return/^[$A-Z_a-z][\w$]*$/.test(i)}var Jr="__magicast_proxy";function ce(i,s=new Set){if(i===void 0)return ee.identifier("undefined");if(i===null)return ee.literal(null);if(ta.has(typeof i))return ee.literal(i);if(s.has(i))throw new re("Can not serialize circular reference");if(s.add(i),i[Jr])return i.$ast;if(i instanceof RegExp){let e=ee.regExpLiteral(i.source,i.flags);return delete e.extra.raw,e}return i instanceof Set?ee.newExpression(ee.identifier("Set"),[ee.arrayExpression([...i].map(e=>ce(e,s)))]):i instanceof Date?ee.newExpression(ee.identifier("Date"),[ee.literal(i.toISOString())]):i instanceof Map?ee.newExpression(ee.identifier("Map"),[ee.arrayExpression([...i].map(([e,t])=>ee.arrayExpression([ce(e,s),ce(t,s)])))]):Array.isArray(i)?ee.arrayExpression(i.map(e=>ce(e,s))):typeof i=="object"?ee.objectExpression(Object.entries(i).map(([e,t])=>ee.property("init",/^[$A-Z_a-z][\w$]*$/g.test(e)?ee.identifier(e):ee.literal(e),ce(t,s)))):ee.literal(i)}function Mc(i,s={}){let e=s;return e[Jr]=!0,e.$ast=i,e.$type||(e.$type="object"),e}var Fc={enumerable:!0,configurable:!0};function be(i,s,e){let t=Mc(i,s);return new Proxy({},{ownKeys(){return Object.keys(t).filter(r=>r!==Jr&&!r.startsWith("$"))},getOwnPropertyDescriptor(){return Fc},has(r,n){return n in t},...e,get(r,n,a){if(n in t)return t[n];if(e.get)return e.get(r,n,a)},set(r,n,a,o){return n in t?(t[n]=a,!0):e.set?e.set(r,n,a,o):!1}})}var de=bt,Lr=new WeakMap;function Bc(i,s,e){if(Lr.has(s))return Lr.get(s);let t=be(s,{get $declaration(){return i},get imported(){return s.type==="ImportDefaultSpecifier"?"default":s.type==="ImportNamespaceSpecifier"?"*":s.imported.type==="Identifier"?s.imported.name:s.imported.value},set imported(r){if(s.type!=="ImportSpecifier")throw new re("Changing import name is not yet implemented");s.imported.type==="Identifier"?s.imported.name=r:s.imported.value=r},get local(){return s.local.name},set local(r){s.local.name=r},get from(){return i.source.value},set from(r){if(r===i.source.value)return;i.specifiers=i.specifiers.filter(a=>a!==s),i.specifiers.length===0&&(e.body=e.body.filter(a=>a!==i));let n=e.body.find(a=>a.type==="ImportDeclaration"&&a.source.value===r);n?n.specifiers.push(s):e.body.unshift(de.importDeclaration([s],de.stringLiteral(r)))},toJSON(){return{imported:this.imported,local:this.local,from:this.from}}},{ownKeys(){return["imported","local","from","toJSON"]}});return Lr.set(s,t),t}function _c(i,s){let e=()=>{let a=[];for(let o of i.body)if(o.type==="ImportDeclaration")for(let l of o.specifiers)a.push(Bc(o,l,i));return a},t=(a,o,l)=>{let c=e(),u=c.find(p=>p.local===a),h=o.local||a;if(u)return u.imported=o.imported,u.local=h,u.from=o.from,!0;let f=o.imported==="default"?de.importDefaultSpecifier(de.identifier(h)):o.imported==="*"?de.importNamespaceSpecifier(de.identifier(h)):de.importSpecifier(de.identifier(o.imported),de.identifier(h)),d=c.find(p=>p.from===o.from)?.$declaration;if(d)d.specifiers.push(f);else if(l==="prepend"||c.length===0)i.body.unshift(de.importDeclaration([f],de.stringLiteral(o.from)));else{let p=c.at(-1).$declaration,g=i.body.indexOf(p);i.body.splice(g+1,0,de.importDeclaration([f],de.stringLiteral(o.from)))}return!0},r=a=>{let o=e().find(u=>u.local===a);if(!o)return!1;let l=o.$declaration,c=o.$ast;return l.specifiers=l.specifiers.filter(u=>u!==c),l.specifiers.length===0&&(i.body=i.body.filter(u=>u!==l)),!0};return be(i,{$type:"imports",$add(a){t(a.local||a.imported,a,"prepend")},$prepend(a){t(a.local||a.imported,a,"prepend")},$append(a){t(a.local||a.imported,a,"append")},get $items(){return e()},toJSON(){return e().reduce((a,o)=>(a[o.local]=o,a),{})}},{get(a,o){return e().find(l=>l.local===o)},set(a,o,l){return t(o,l,"prepend")},deleteProperty(a,o){return r(o)},ownKeys(){return e().map(a=>a.local)},has(a,o){return e().some(l=>l.local===o)}})}function ks(i,s,e){let t=n=>s[n],r=(n,a)=>{s[n]=a};return be(i,{$type:"array",push(n){s.push(ce(n))},pop(){return le(s.pop(),e)},unshift(n){s.unshift(ce(n))},shift(){return le(s.shift(),e)},splice(n,a,...o){return s.splice(n,a,...o.map(c=>ce(c))).map(c=>le(c,e))},find(n){return s.map(a=>le(a,e)).find(n)},findIndex(n){return s.map(a=>le(a,e)).findIndex(n)},includes(n){return s.map(a=>le(a,e)).includes(n)},toJSON(){return s.map(n=>le(n,e))}},{get(n,a){if(a==="length")return s.length;if(a===Symbol.iterator)return function*(){for(let c of s)yield le(c,e)};if(typeof a=="symbol")return;let o=+a;if(Number.isNaN(o))return;let l=t(o);if(l)return le(l,e)},set(n,a,o){if(typeof a=="symbol")return!1;let l=+a;return Number.isNaN(l)?!1:(r(l,ce(o)),!0)},deleteProperty(n,a){if(typeof a=="symbol")return!1;let o=+a;return Number.isNaN(o)?!1:(s[o]=ce(void 0),!0)},ownKeys(){return["length",...s.map((n,a)=>a.toString())]}})}function jc(i,s){if("elements"in i)return ks(i,i.elements,s)}function sa(i,s){if(i.type!=="CallExpression")throw new re("Not a function call");function e(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${e(r.object)}.${e(r.property)}`;throw new re("Not implemented")}let t=ks(i,i.arguments,s);return be(i,{$type:"function-call",$callee:e(i.callee),$args:t},{})}function Rc(i,s){if(i.type!=="ArrowFunctionExpression")throw new re("Not an arrow function expression");let e=ks(i,i.params,s);return be(i,{$type:"arrow-function-expression",$params:e,$body:le(i.body,s)},{})}var Uc=bt;function Vc(i,s){if(!("properties"in i))return;let e=n=>{for(let a of i.properties){if("key"in a&&"name"in a.key&&a.key.name===n)return a.value;if(a.type==="ObjectProperty"&&(a.key.type==="StringLiteral"||a.key.type==="NumericLiteral"||a.key.type==="BooleanLiteral")&&a.key.value.toString()===n)return a.value.value??a.value}},t=(n,a=!1)=>{if("key"in n&&"name"in n.key)return n.key.name;if(n.type==="ObjectProperty"&&(n.key.type==="StringLiteral"||n.key.type==="NumericLiteral"||n.key.type==="BooleanLiteral"))return n.key.value.toString();if(a)throw new re(`Casting "${n.type}" is not supported`,{ast:n,code:s?.$code})},r=(n,a)=>{let o=i.properties.find(l=>t(l)===n);o?o.value=a:Oc(n)?i.properties.push({type:"Property",key:{type:"Identifier",name:n},value:a}):i.properties.push({type:"ObjectProperty",key:Uc.stringLiteral(n),value:a})};return be(i,{$type:"object",toJSON(){return i.properties.reduce((n,a)=>("key"in a&&"name"in a.key&&(n[a.key.name]=le(a.value,s)),n),{})}},{get(n,a){let o=e(a);if(o)return le(o,s)},set(n,a,o){return typeof a!="string"&&(a=String(a)),r(a,ce(o)),!0},deleteProperty(n,a){typeof a!="string"&&(a=String(a));let o=i.properties.findIndex(l=>"key"in l&&"name"in l.key&&l.key.name===a);return o!==-1&&i.properties.splice(o,1),!0},ownKeys(){return i.properties.map(n=>t(n,!0)).filter(Boolean)}})}function ra(i,s){if(i.type!=="NewExpression")throw new re("Not a new expression");function e(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${e(r.object)}.${e(r.property)}`;throw new re("Not implemented")}let t=ks(i,i.arguments,s);return be(i,{$type:"new-expression",$callee:e(i.callee),$args:t},{})}function $c(i){if(i.type!=="Identifier")throw new re("Not an identifier");return be(i,{$type:"identifier",$name:i.name},{})}function qc(i){if(i.type!=="LogicalExpression")throw new re("Not a logical expression");return be(i,{$type:"logicalExpression"},{})}function zc(i){if(i.type!=="MemberExpression")throw new re("Not a member expression");return be(i,{$type:"memberExpression"},{})}var Dr=new WeakMap;function le(i,s){if(ta.has(typeof i))return i;if(Dc.has(i.type))return i.value;if(Dr.has(i))return Dr.get(i);let e;switch(i.type){case"ObjectExpression":{e=Vc(i,s);break}case"ArrayExpression":{e=jc(i,s);break}case"CallExpression":{e=sa(i,s);break}case"ArrowFunctionExpression":{e=Rc(i,s);break}case"NewExpression":{e=ra(i,s);break}case"Identifier":{e=$c(i);break}case"LogicalExpression":{e=qc(i);break}case"MemberExpression":{e=zc(i);break}case"TSAsExpression":case"TSSatisfiesExpression":{e=le(i.expression,s);break}default:throw new re(`Casting "${i.type}" is not supported`,{ast:i,code:s?.$code})}return Dr.set(i,e),e}var Ut=bt;function Wc(i,s){let e=r=>{let n=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let a of i.body)if(a.type===n){if(r==="default")return a.declaration;if(a.declaration&&"declarations"in a.declaration){let o=a.declaration.declarations[0];if("name"in o.id&&o.id.name===r)return o.init}}},t=(r,n)=>{let a=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration",o=ce(n);for(let l of i.body)if(l.type===a){if(r==="default"){l.declaration=o;return}if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===r){c.init=o;return}}}i.body.push(r==="default"?Ut.exportDefaultDeclaration(o):Ut.exportNamedDeclaration(Ut.variableDeclaration("const",[Ut.variableDeclarator(Ut.identifier(r),o)])))};return be(i,{$type:"exports"},{get(r,n){let a=e(n);if(a)return le(a,s)},set(r,n,a){return t(n,a),!0},ownKeys(){return i.body.flatMap(r=>r.type==="ExportDefaultDeclaration"?["default"]:r.type==="ExportNamedDeclaration"&&r.declaration&&"declarations"in r.declaration?r.declaration.declarations.map(n=>"name"in n.id?n.id.name:""):[]).filter(Boolean)},deleteProperty(r,n){let a=n==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let o=0;o<i.body.length;o++){let l=i.body[o];if(l.type===a){if(n==="default")return i.body.splice(o,1),!0;if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===n)return i.body.splice(o,1),!0}}}return!1}})}function Jc(i,s){let e=i.program;if(e.type!=="Program")throw new re(`Cannot proxify ${i.type} as module`);let t={$code:s,$type:"module"},r=be(e,t,{ownKeys(){return["imports","exports","generate"]}});return t.exports=Wc(e,r),t.imports=_c(e),t.generate=n=>Kr(r,n),r}function ia(i,s={}){let e={wrapColumn:s.wrapColumn===void 0,indent:s.tabWidth===void 0||s.useTabs===void 0,quote:s.quote===void 0,arrowParens:s.arrowParensAlways===void 0,trailingComma:s.trailingComma===void 0},t=2,r=0,n=0,a=0,o=0,l=/(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g,c={doubleQuote:0,singleQuote:0,singleParam:0,trailingComma:0},u=(i||"").split(`
|
|
106
|
-
`),h=!1;for(let f of u){let d=f.trim();if(d.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let p=f.match(/^\s+/)?.[0]||"";p.length>0&&(p.length>0&&p.length<t&&(t=p.length),p[0]===" "?r++:p.length>0&&r--)}if(d.at(-1)===";"?n++:d.length>0&&n--,e.quote||e.arrowParens){let p=d.matchAll(l);for(let g of p)if(g.groups)for(let y in c)g.groups[y]&&c[y]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(h?o++:o--),h=d.endsWith(","))}}return{wrapColumn:a,useTabs:r>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:n>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function na(i,s){let e=qn(i,{parser:s?.parser||ea(),...s});return Jc(e,i)}function aa(i,s){let e=qn("("+i+")",{parser:s?.parser||ea(),...s}),t=e.program.body[0];t.type==="ExpressionStatement"&&(t=t.expression),t.extra?.parenthesized&&(t.extra.parenthesized=!1);let r={$ast:e,$code:" "+i+" ",$type:"module"};return le(t,r)}function Kr(i,s={}){let e=i.$ast||i,t=s.format===!1||!("$code"in i)?{}:ia(i.$code,s.format),{code:r,map:n}=Ic(e,{...s,...t});return{code:r,map:n}}async function Kc(i,s={}){let e=await bs.promises.readFile(i,"utf8");return s.sourceFileName=s.sourceFileName??i,na(e,s)}async function Hc(i,s,e){let t="$ast"in i?i.$ast:i,{code:r,map:n}=Kr(t,e);await bs.promises.writeFile(s,r),n&&await bs.promises.writeFile(s+".map",n)}var ys=bt,Xc={functionCall(i,...s){let e=ys.callExpression(ys.identifier(i),s.map(t=>ce(t)));return sa(e)},newExpression(i,...s){let e=ys.newExpression(ys.identifier(i),s.map(t=>ce(t)));return ra(e)},literal(i){return ce(i)},raw(i){return aa(i)}};var Ne=Re(require("@sentry/node"),1);var Gc="1.
|
|
106
|
+
`),h=!1;for(let f of u){let d=f.trim();if(d.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let p=f.match(/^\s+/)?.[0]||"";p.length>0&&(p.length>0&&p.length<t&&(t=p.length),p[0]===" "?r++:p.length>0&&r--)}if(d.at(-1)===";"?n++:d.length>0&&n--,e.quote||e.arrowParens){let p=d.matchAll(l);for(let g of p)if(g.groups)for(let y in c)g.groups[y]&&c[y]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(h?o++:o--),h=d.endsWith(","))}}return{wrapColumn:a,useTabs:r>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:n>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function na(i,s){let e=qn(i,{parser:s?.parser||ea(),...s});return Jc(e,i)}function aa(i,s){let e=qn("("+i+")",{parser:s?.parser||ea(),...s}),t=e.program.body[0];t.type==="ExpressionStatement"&&(t=t.expression),t.extra?.parenthesized&&(t.extra.parenthesized=!1);let r={$ast:e,$code:" "+i+" ",$type:"module"};return le(t,r)}function Kr(i,s={}){let e=i.$ast||i,t=s.format===!1||!("$code"in i)?{}:ia(i.$code,s.format),{code:r,map:n}=Ic(e,{...s,...t});return{code:r,map:n}}async function Kc(i,s={}){let e=await bs.promises.readFile(i,"utf8");return s.sourceFileName=s.sourceFileName??i,na(e,s)}async function Hc(i,s,e){let t="$ast"in i?i.$ast:i,{code:r,map:n}=Kr(t,e);await bs.promises.writeFile(s,r),n&&await bs.promises.writeFile(s+".map",n)}var ys=bt,Xc={functionCall(i,...s){let e=ys.callExpression(ys.identifier(i),s.map(t=>ce(t)));return sa(e)},newExpression(i,...s){let e=ys.newExpression(ys.identifier(i),s.map(t=>ce(t)));return ra(e)},literal(i){return ce(i)},raw(i){return aa(i)}};var Ne=Re(require("@sentry/node"),1);var Gc="1.14.0",oa=process.env.OVERRIDE_VERSION??Gc;var Xr=Re(require("prettier"),1);async function ha(i,s){let e=await(0,ue.readdir)(i,{withFileTypes:!0}),t=[];for(let r of e){let n=R.default.join(i,r.name);if(r.isDirectory()){if(!s.has(r.name))try{let a=await ha(n,s);t.push(...a)}catch(a){Ne.captureException(a,{tags:{errorType:"filesystem_permission",component:"readdirRecursive"},extra:{directory:n,errorCode:a.code}})}}else t.push(n)}return t}async function pa(i){let s=new Set,e=(...c)=>{if(process.env.DEBUG){let u=new Date,h=`${String(u.getMinutes()).padStart(2,"0")}:${String(u.getSeconds()).padStart(2,"0")}.${String(u.getMilliseconds()).padStart(3,"0")}`;console.debug(h,"[builder-dev-tools]",...c)}},t=async c=>{let u=(0,la.createHash)("md5");return u.update(c),u.digest("hex")},r=R.default.normalize(R.default.resolve(process.cwd(),i.cwd)),n=su(R.default.normalize(i.cwd))??r,a=ru(R.default.normalize(i.cwd))??n,o={...R.default,getCwdDir:()=>r,getRepoRootDir:()=>n,getAppRootDir:()=>a,cwd:()=>process.cwd(),exists:async c=>{try{return await(0,ue.access)(c),!0}catch{return!1}},magicast:Hr,existsSync:c=>(0,K.existsSync)(c),readdir:async(c,u)=>{let h=await(0,ue.readdir)(c);return u?h.map(f=>R.default.join(c,f)):h},readdirRecursive:async(c,u)=>ha(c,new Set(u)),readdirSync:c=>(0,K.readdirSync)(c),readFile:async c=>{try{return await(0,ue.readFile)(c,"utf-8")}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},readFileSync(c){try{return(0,K.readFileSync)(c,"utf-8")}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},readFileSyncBuffer(c){try{return new Uint8Array((0,K.readFileSync)(c,{encoding:null}))}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},spawnSync:Ze.spawnSync,stat:async c=>await(0,ue.stat)(c),statSync:c=>(0,K.statSync)(c),unlinkSync:c=>{(0,K.unlinkSync)(c)},unlink:async c=>{await(0,ue.unlink)(c)},writeFile:async(c,u)=>{c=R.default.normalize(c);let h={path:c,basename:R.default.basename(c),dirname:R.default.dirname(c),extname:R.default.extname(c)};await(0,ue.mkdir)(R.default.dirname(c),{recursive:!0}),await(0,ue.writeFile)(c,u);for(let f of s)await f(h)},hash:t,getDeviceId:()=>t(`${(0,Ls.hostname)()}:${(0,Ls.homedir)()}`),formatCode:async(c,u)=>{let h=null;try{h=await Xr.default.resolveConfig(c)}catch{}try{return Xr.default.format(u,{...h,filepath:c})}catch{}return u},on:(c,u)=>{c==="change"&&s.add(u)},off:(c,u)=>{c==="change"&&s.delete(u)},debug:e,launchEditor:async c=>{try{let u=c.filePath;typeof c.line=="number"&&(u+=`:${c.line}`,typeof c.column=="number"&&(u+=`:${c.column}`)),(0,ua.default)(u,"code",(h,f)=>{Ne.captureException(new Error(`Failed to launch editor for ${f}`),{extra:{pathFile:h}})})}catch(u){Ne.captureException(new Error("Failed to launch editor",{cause:u}))}},platform:()=>({runtime:"node",os:process.platform}),getRepoInfo:async c=>{let u=R.default.normalize(c??i.cwd);return{hasGit:Zc(u),remoteUrl:Qc(u),defaultBranch:Yc(u),commit:eu(u),currentBranch:tu(u)}},getFrameworks:()=>[],ts:ca.default,Sentry:Ne,connectionTracker:null,version:oa,sdkVersion:null,ignoreMissingConfig:i.ignoreMissingConfig,kind:null};o.connectionTracker=new Xt(o);let l=await ni(o);return o.getFrameworks=()=>l,o}function Qc(i){try{return((0,Ze.spawnSync)("git",["config","--get","remote.origin.url"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ne.captureException(new Error("Error getting git remote URL:",{cause:s})),""}}function Yc(i){let s="master";try{let e=(0,Ze.spawnSync)("git",["branch","-r"],{cwd:i});return e.stdout&&e.stdout.toString().trim().split(`
|
|
107
107
|
`).map(r=>r.trim()).includes("origin/main")?"main":s}catch(e){return Ne.captureException(new Error("Error getting git default branch name:",{cause:e})),s}}function Zc(i){try{return((0,Ze.spawnSync)("git",["rev-parse","--is-inside-work-tree"],{cwd:i}).stdout||"").toString().trim()==="true"}catch(s){return Ne.captureException(new Error("Error getting git commit:",{cause:s})),!1}}function eu(i){try{return((0,Ze.spawnSync)("git",["rev-parse","HEAD"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ne.captureException(new Error("Error getting git commit:",{cause:s})),""}}function tu(i){try{return((0,Ze.spawnSync)("git",["branch","--show-current"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ne.captureException(new Error("Error getting current branch name:",{cause:s})),""}}function su(i){let s=R.default.resolve("/");for(let e=0;e<20;e++){let t=R.default.join(i,"package.json");if((0,K.existsSync)(t))return i;if(i===s)break;i=R.default.dirname(i)}return null}function ru(i){let s=R.default.resolve("/");for(let e=0;e<20;e++){if((0,K.existsSync)(R.default.join(i,"builder.config.json"))||(0,K.existsSync)(R.default.join(i,"fusion.config.json"))||(0,K.existsSync)(R.default.join(i,"package.json"))||(0,K.existsSync)(R.default.join(i,"remix.config.js"))||(0,K.existsSync)(R.default.join(i,"remix.config.mjs"))||(0,K.existsSync)(R.default.join(i,"remix.config.ts"))||(0,K.existsSync)(R.default.join(i,"vite.config.js"))||(0,K.existsSync)(R.default.join(i,"vite.config.ts"))||(0,K.existsSync)(R.default.join(i,"vite.config.mjs"))||(0,K.existsSync)(R.default.join(i,"next.config.js"))||(0,K.existsSync)(R.default.join(i,"next.config.ts"))||(0,K.existsSync)(R.default.join(i,"angular.json"))||(0,K.existsSync)(R.default.join(i,"project.json"))||(0,K.existsSync)(R.default.join(i,"tsconfig.json")))return i;if(i===s)break;i=R.default.dirname(i)}return null}0&&(module.exports={createDevToolsNodeSys});
|
package/node/index.mjs
CHANGED
|
@@ -104,5 +104,5 @@ ${" ".repeat(6+r)}^`),c));s+=`
|
|
|
104
104
|
${l.join(`
|
|
105
105
|
`)}
|
|
106
106
|
`}this.message=s}},Cc=new Set(["Literal","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","RegExpLiteral","BigIntLiteral"]),Gn=new Set(["string","number","boolean","bigint","symbol","undefined"]),Z=yt;function Ic(i){return/^[$A-Z_a-z][\w$]*$/.test(i)}var zr="__magicast_proxy";function ce(i,s=new Set){if(i===void 0)return Z.identifier("undefined");if(i===null)return Z.literal(null);if(Gn.has(typeof i))return Z.literal(i);if(s.has(i))throw new se("Can not serialize circular reference");if(s.add(i),i[zr])return i.$ast;if(i instanceof RegExp){let e=Z.regExpLiteral(i.source,i.flags);return delete e.extra.raw,e}return i instanceof Set?Z.newExpression(Z.identifier("Set"),[Z.arrayExpression([...i].map(e=>ce(e,s)))]):i instanceof Date?Z.newExpression(Z.identifier("Date"),[Z.literal(i.toISOString())]):i instanceof Map?Z.newExpression(Z.identifier("Map"),[Z.arrayExpression([...i].map(([e,t])=>Z.arrayExpression([ce(e,s),ce(t,s)])))]):Array.isArray(i)?Z.arrayExpression(i.map(e=>ce(e,s))):typeof i=="object"?Z.objectExpression(Object.entries(i).map(([e,t])=>Z.property("init",/^[$A-Z_a-z][\w$]*$/g.test(e)?Z.identifier(e):Z.literal(e),ce(t,s)))):Z.literal(i)}function Nc(i,s={}){let e=s;return e[zr]=!0,e.$ast=i,e.$type||(e.$type="object"),e}var kc={enumerable:!0,configurable:!0};function xe(i,s,e){let t=Nc(i,s);return new Proxy({},{ownKeys(){return Object.keys(t).filter(r=>r!==zr&&!r.startsWith("$"))},getOwnPropertyDescriptor(){return kc},has(r,n){return n in t},...e,get(r,n,a){if(n in t)return t[n];if(e.get)return e.get(r,n,a)},set(r,n,a,o){return n in t?(t[n]=a,!0):e.set?e.set(r,n,a,o):!1}})}var fe=yt,Ir=new WeakMap;function Lc(i,s,e){if(Ir.has(s))return Ir.get(s);let t=xe(s,{get $declaration(){return i},get imported(){return s.type==="ImportDefaultSpecifier"?"default":s.type==="ImportNamespaceSpecifier"?"*":s.imported.type==="Identifier"?s.imported.name:s.imported.value},set imported(r){if(s.type!=="ImportSpecifier")throw new se("Changing import name is not yet implemented");s.imported.type==="Identifier"?s.imported.name=r:s.imported.value=r},get local(){return s.local.name},set local(r){s.local.name=r},get from(){return i.source.value},set from(r){if(r===i.source.value)return;i.specifiers=i.specifiers.filter(a=>a!==s),i.specifiers.length===0&&(e.body=e.body.filter(a=>a!==i));let n=e.body.find(a=>a.type==="ImportDeclaration"&&a.source.value===r);n?n.specifiers.push(s):e.body.unshift(fe.importDeclaration([s],fe.stringLiteral(r)))},toJSON(){return{imported:this.imported,local:this.local,from:this.from}}},{ownKeys(){return["imported","local","from","toJSON"]}});return Ir.set(s,t),t}function Dc(i,s){let e=()=>{let a=[];for(let o of i.body)if(o.type==="ImportDeclaration")for(let l of o.specifiers)a.push(Lc(o,l,i));return a},t=(a,o,l)=>{let c=e(),u=c.find(p=>p.local===a),h=o.local||a;if(u)return u.imported=o.imported,u.local=h,u.from=o.from,!0;let f=o.imported==="default"?fe.importDefaultSpecifier(fe.identifier(h)):o.imported==="*"?fe.importNamespaceSpecifier(fe.identifier(h)):fe.importSpecifier(fe.identifier(o.imported),fe.identifier(h)),d=c.find(p=>p.from===o.from)?.$declaration;if(d)d.specifiers.push(f);else if(l==="prepend"||c.length===0)i.body.unshift(fe.importDeclaration([f],fe.stringLiteral(o.from)));else{let p=c.at(-1).$declaration,g=i.body.indexOf(p);i.body.splice(g+1,0,fe.importDeclaration([f],fe.stringLiteral(o.from)))}return!0},r=a=>{let o=e().find(u=>u.local===a);if(!o)return!1;let l=o.$declaration,c=o.$ast;return l.specifiers=l.specifiers.filter(u=>u!==c),l.specifiers.length===0&&(i.body=i.body.filter(u=>u!==l)),!0};return xe(i,{$type:"imports",$add(a){t(a.local||a.imported,a,"prepend")},$prepend(a){t(a.local||a.imported,a,"prepend")},$append(a){t(a.local||a.imported,a,"append")},get $items(){return e()},toJSON(){return e().reduce((a,o)=>(a[o.local]=o,a),{})}},{get(a,o){return e().find(l=>l.local===o)},set(a,o,l){return t(o,l,"prepend")},deleteProperty(a,o){return r(o)},ownKeys(){return e().map(a=>a.local)},has(a,o){return e().some(l=>l.local===o)}})}function Cs(i,s,e){let t=n=>s[n],r=(n,a)=>{s[n]=a};return xe(i,{$type:"array",push(n){s.push(ce(n))},pop(){return le(s.pop(),e)},unshift(n){s.unshift(ce(n))},shift(){return le(s.shift(),e)},splice(n,a,...o){return s.splice(n,a,...o.map(c=>ce(c))).map(c=>le(c,e))},find(n){return s.map(a=>le(a,e)).find(n)},findIndex(n){return s.map(a=>le(a,e)).findIndex(n)},includes(n){return s.map(a=>le(a,e)).includes(n)},toJSON(){return s.map(n=>le(n,e))}},{get(n,a){if(a==="length")return s.length;if(a===Symbol.iterator)return function*(){for(let c of s)yield le(c,e)};if(typeof a=="symbol")return;let o=+a;if(Number.isNaN(o))return;let l=t(o);if(l)return le(l,e)},set(n,a,o){if(typeof a=="symbol")return!1;let l=+a;return Number.isNaN(l)?!1:(r(l,ce(o)),!0)},deleteProperty(n,a){if(typeof a=="symbol")return!1;let o=+a;return Number.isNaN(o)?!1:(s[o]=ce(void 0),!0)},ownKeys(){return["length",...s.map((n,a)=>a.toString())]}})}function Oc(i,s){if("elements"in i)return Cs(i,i.elements,s)}function Qn(i,s){if(i.type!=="CallExpression")throw new se("Not a function call");function e(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${e(r.object)}.${e(r.property)}`;throw new se("Not implemented")}let t=Cs(i,i.arguments,s);return xe(i,{$type:"function-call",$callee:e(i.callee),$args:t},{})}function Mc(i,s){if(i.type!=="ArrowFunctionExpression")throw new se("Not an arrow function expression");let e=Cs(i,i.params,s);return xe(i,{$type:"arrow-function-expression",$params:e,$body:le(i.body,s)},{})}var Fc=yt;function Bc(i,s){if(!("properties"in i))return;let e=n=>{for(let a of i.properties){if("key"in a&&"name"in a.key&&a.key.name===n)return a.value;if(a.type==="ObjectProperty"&&(a.key.type==="StringLiteral"||a.key.type==="NumericLiteral"||a.key.type==="BooleanLiteral")&&a.key.value.toString()===n)return a.value.value??a.value}},t=(n,a=!1)=>{if("key"in n&&"name"in n.key)return n.key.name;if(n.type==="ObjectProperty"&&(n.key.type==="StringLiteral"||n.key.type==="NumericLiteral"||n.key.type==="BooleanLiteral"))return n.key.value.toString();if(a)throw new se(`Casting "${n.type}" is not supported`,{ast:n,code:s?.$code})},r=(n,a)=>{let o=i.properties.find(l=>t(l)===n);o?o.value=a:Ic(n)?i.properties.push({type:"Property",key:{type:"Identifier",name:n},value:a}):i.properties.push({type:"ObjectProperty",key:Fc.stringLiteral(n),value:a})};return xe(i,{$type:"object",toJSON(){return i.properties.reduce((n,a)=>("key"in a&&"name"in a.key&&(n[a.key.name]=le(a.value,s)),n),{})}},{get(n,a){let o=e(a);if(o)return le(o,s)},set(n,a,o){return typeof a!="string"&&(a=String(a)),r(a,ce(o)),!0},deleteProperty(n,a){typeof a!="string"&&(a=String(a));let o=i.properties.findIndex(l=>"key"in l&&"name"in l.key&&l.key.name===a);return o!==-1&&i.properties.splice(o,1),!0},ownKeys(){return i.properties.map(n=>t(n,!0)).filter(Boolean)}})}function Yn(i,s){if(i.type!=="NewExpression")throw new se("Not a new expression");function e(r){if(r.type==="Identifier")return r.name;if(r.type==="MemberExpression")return`${e(r.object)}.${e(r.property)}`;throw new se("Not implemented")}let t=Cs(i,i.arguments,s);return xe(i,{$type:"new-expression",$callee:e(i.callee),$args:t},{})}function _c(i){if(i.type!=="Identifier")throw new se("Not an identifier");return xe(i,{$type:"identifier",$name:i.name},{})}function jc(i){if(i.type!=="LogicalExpression")throw new se("Not a logical expression");return xe(i,{$type:"logicalExpression"},{})}function Rc(i){if(i.type!=="MemberExpression")throw new se("Not a member expression");return xe(i,{$type:"memberExpression"},{})}var Nr=new WeakMap;function le(i,s){if(Gn.has(typeof i))return i;if(Cc.has(i.type))return i.value;if(Nr.has(i))return Nr.get(i);let e;switch(i.type){case"ObjectExpression":{e=Bc(i,s);break}case"ArrayExpression":{e=Oc(i,s);break}case"CallExpression":{e=Qn(i,s);break}case"ArrowFunctionExpression":{e=Mc(i,s);break}case"NewExpression":{e=Yn(i,s);break}case"Identifier":{e=_c(i);break}case"LogicalExpression":{e=jc(i);break}case"MemberExpression":{e=Rc(i);break}case"TSAsExpression":case"TSSatisfiesExpression":{e=le(i.expression,s);break}default:throw new se(`Casting "${i.type}" is not supported`,{ast:i,code:s?.$code})}return Nr.set(i,e),e}var _t=yt;function Uc(i,s){let e=r=>{let n=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let a of i.body)if(a.type===n){if(r==="default")return a.declaration;if(a.declaration&&"declarations"in a.declaration){let o=a.declaration.declarations[0];if("name"in o.id&&o.id.name===r)return o.init}}},t=(r,n)=>{let a=r==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration",o=ce(n);for(let l of i.body)if(l.type===a){if(r==="default"){l.declaration=o;return}if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===r){c.init=o;return}}}i.body.push(r==="default"?_t.exportDefaultDeclaration(o):_t.exportNamedDeclaration(_t.variableDeclaration("const",[_t.variableDeclarator(_t.identifier(r),o)])))};return xe(i,{$type:"exports"},{get(r,n){let a=e(n);if(a)return le(a,s)},set(r,n,a){return t(n,a),!0},ownKeys(){return i.body.flatMap(r=>r.type==="ExportDefaultDeclaration"?["default"]:r.type==="ExportNamedDeclaration"&&r.declaration&&"declarations"in r.declaration?r.declaration.declarations.map(n=>"name"in n.id?n.id.name:""):[]).filter(Boolean)},deleteProperty(r,n){let a=n==="default"?"ExportDefaultDeclaration":"ExportNamedDeclaration";for(let o=0;o<i.body.length;o++){let l=i.body[o];if(l.type===a){if(n==="default")return i.body.splice(o,1),!0;if(l.declaration&&"declarations"in l.declaration){let c=l.declaration.declarations[0];if("name"in c.id&&c.id.name===n)return i.body.splice(o,1),!0}}}return!1}})}function Vc(i,s){let e=i.program;if(e.type!=="Program")throw new se(`Cannot proxify ${i.type} as module`);let t={$code:s,$type:"module"},r=xe(e,t,{ownKeys(){return["imports","exports","generate"]}});return t.exports=Uc(e,r),t.imports=Dc(e),t.generate=n=>Wr(r,n),r}function Zn(i,s={}){let e={wrapColumn:s.wrapColumn===void 0,indent:s.tabWidth===void 0||s.useTabs===void 0,quote:s.quote===void 0,arrowParens:s.arrowParensAlways===void 0,trailingComma:s.trailingComma===void 0},t=2,r=0,n=0,a=0,o=0,l=/(?<doubleQuote>"[^"]+")|(?<singleQuote>'[^']+')|(?<singleParam>\([^),]+\)\s*=>)|(?<trailingComma>,\s*[\]}])/g,c={doubleQuote:0,singleQuote:0,singleParam:0,trailingComma:0},u=(i||"").split(`
|
|
107
|
-
`),h=!1;for(let f of u){let d=f.trim();if(d.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let p=f.match(/^\s+/)?.[0]||"";p.length>0&&(p.length>0&&p.length<t&&(t=p.length),p[0]===" "?r++:p.length>0&&r--)}if(d.at(-1)===";"?n++:d.length>0&&n--,e.quote||e.arrowParens){let p=d.matchAll(l);for(let g of p)if(g.groups)for(let y in c)g.groups[y]&&c[y]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(h?o++:o--),h=d.endsWith(","))}}return{wrapColumn:a,useTabs:r>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:n>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function ea(i,s){let e=jn(i,{parser:s?.parser||Xn(),...s});return Vc(e,i)}function ta(i,s){let e=jn("("+i+")",{parser:s?.parser||Xn(),...s}),t=e.program.body[0];t.type==="ExpressionStatement"&&(t=t.expression),t.extra?.parenthesized&&(t.extra.parenthesized=!1);let r={$ast:e,$code:" "+i+" ",$type:"module"};return le(t,r)}function Wr(i,s={}){let e=i.$ast||i,t=s.format===!1||!("$code"in i)?{}:Zn(i.$code,s.format),{code:r,map:n}=Ec(e,{...s,...t});return{code:r,map:n}}async function $c(i,s={}){let e=await kr.readFile(i,"utf8");return s.sourceFileName=s.sourceFileName??i,ea(e,s)}async function qc(i,s,e){let t="$ast"in i?i.$ast:i,{code:r,map:n}=Wr(t,e);await kr.writeFile(s,r),n&&await kr.writeFile(s+".map",n)}var ds=yt,zc={functionCall(i,...s){let e=ds.callExpression(ds.identifier(i),s.map(t=>ce(t)));return Qn(e)},newExpression(i,...s){let e=ds.newExpression(ds.identifier(i),s.map(t=>ce(t)));return Yn(e)},literal(i){return ce(i)},raw(i){return ta(i)}};import*as Ie from"@sentry/node";var Wc="1.
|
|
107
|
+
`),h=!1;for(let f of u){let d=f.trim();if(d.length!==0){if(e.wrapColumn&&f.length>a&&(a=f.length),e.indent){let p=f.match(/^\s+/)?.[0]||"";p.length>0&&(p.length>0&&p.length<t&&(t=p.length),p[0]===" "?r++:p.length>0&&r--)}if(d.at(-1)===";"?n++:d.length>0&&n--,e.quote||e.arrowParens){let p=d.matchAll(l);for(let g of p)if(g.groups)for(let y in c)g.groups[y]&&c[y]++}e.trailingComma&&((f.startsWith("}")||f.startsWith("]"))&&(h?o++:o--),h=d.endsWith(","))}}return{wrapColumn:a,useTabs:r>0,tabWidth:t,quote:c.singleQuote>c.doubleQuote?"single":"double",arrowParensAlways:c.singleParam>0,trailingComma:o>0||c.trailingComma>0,useSemi:n>0,arrayBracketSpacing:void 0,objectCurlySpacing:void 0,...s}}function ea(i,s){let e=jn(i,{parser:s?.parser||Xn(),...s});return Vc(e,i)}function ta(i,s){let e=jn("("+i+")",{parser:s?.parser||Xn(),...s}),t=e.program.body[0];t.type==="ExpressionStatement"&&(t=t.expression),t.extra?.parenthesized&&(t.extra.parenthesized=!1);let r={$ast:e,$code:" "+i+" ",$type:"module"};return le(t,r)}function Wr(i,s={}){let e=i.$ast||i,t=s.format===!1||!("$code"in i)?{}:Zn(i.$code,s.format),{code:r,map:n}=Ec(e,{...s,...t});return{code:r,map:n}}async function $c(i,s={}){let e=await kr.readFile(i,"utf8");return s.sourceFileName=s.sourceFileName??i,ea(e,s)}async function qc(i,s,e){let t="$ast"in i?i.$ast:i,{code:r,map:n}=Wr(t,e);await kr.writeFile(s,r),n&&await kr.writeFile(s+".map",n)}var ds=yt,zc={functionCall(i,...s){let e=ds.callExpression(ds.identifier(i),s.map(t=>ce(t)));return Qn(e)},newExpression(i,...s){let e=ds.newExpression(ds.identifier(i),s.map(t=>ce(t)));return Yn(e)},literal(i){return ce(i)},raw(i){return ta(i)}};import*as Ie from"@sentry/node";var Wc="1.14.0",sa=process.env.OVERRIDE_VERSION??Wc;import ia from"prettier";async function aa(i,s){let e=await na(i,{withFileTypes:!0}),t=[];for(let r of e){let n=V.join(i,r.name);if(r.isDirectory()){if(!s.has(r.name))try{let a=await aa(n,s);t.push(...a)}catch(a){Ie.captureException(a,{tags:{errorType:"filesystem_permission",component:"readdirRecursive"},extra:{directory:n,errorCode:a.code}})}}else t.push(n)}return t}async function au(i){let s=new Set,e=(...c)=>{if(process.env.DEBUG){let u=new Date,h=`${String(u.getMinutes()).padStart(2,"0")}:${String(u.getSeconds()).padStart(2,"0")}.${String(u.getMilliseconds()).padStart(3,"0")}`;console.debug(h,"[builder-dev-tools]",...c)}},t=async c=>{let u=Yc("md5");return u.update(c),u.digest("hex")},r=V.normalize(V.resolve(process.cwd(),i.cwd)),n=pu(V.normalize(i.cwd))??r,a=fu(V.normalize(i.cwd))??n,o={...V,getCwdDir:()=>r,getRepoRootDir:()=>n,getAppRootDir:()=>a,cwd:()=>process.cwd(),exists:async c=>{try{return await Jc(c),!0}catch{return!1}},magicast:Jr,existsSync:c=>ie(c),readdir:async(c,u)=>{let h=await na(c);return u?h.map(f=>V.join(c,f)):h},readdirRecursive:async(c,u)=>aa(c,new Set(u)),readdirSync:c=>Zc(c),readFile:async c=>{try{return await Hc(c,"utf-8")}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},readFileSync(c){try{return ra(c,"utf-8")}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},readFileSyncBuffer(c){try{return new Uint8Array(ra(c,{encoding:null}))}catch(u){if(u.code==="ENOENT")return null;throw e(u,c),u}},spawnSync:gt,stat:async c=>await Xc(c),statSync:c=>eu(c),unlinkSync:c=>{tu(c)},unlink:async c=>{await Gc(c)},writeFile:async(c,u)=>{c=V.normalize(c);let h={path:c,basename:V.basename(c),dirname:V.dirname(c),extname:V.extname(c)};await Kc(V.dirname(c),{recursive:!0}),await Qc(c,u);for(let f of s)await f(h)},hash:t,getDeviceId:()=>t(`${ru()}:${su()}`),formatCode:async(c,u)=>{let h=null;try{h=await ia.resolveConfig(c)}catch{}try{return ia.format(u,{...h,filepath:c})}catch{}return u},on:(c,u)=>{c==="change"&&s.add(u)},off:(c,u)=>{c==="change"&&s.delete(u)},debug:e,launchEditor:async c=>{try{let u=c.filePath;typeof c.line=="number"&&(u+=`:${c.line}`,typeof c.column=="number"&&(u+=`:${c.column}`)),nu(u,"code",(h,f)=>{Ie.captureException(new Error(`Failed to launch editor for ${f}`),{extra:{pathFile:h}})})}catch(u){Ie.captureException(new Error("Failed to launch editor",{cause:u}))}},platform:()=>({runtime:"node",os:process.platform}),getRepoInfo:async c=>{let u=V.normalize(c??i.cwd);return{hasGit:cu(u),remoteUrl:ou(u),defaultBranch:lu(u),commit:uu(u),currentBranch:hu(u)}},getFrameworks:()=>[],ts:iu,Sentry:Ie,connectionTracker:null,version:sa,sdkVersion:null,ignoreMissingConfig:i.ignoreMissingConfig,kind:null};o.connectionTracker=new Kt(o);let l=await ei(o);return o.getFrameworks=()=>l,o}function ou(i){try{return(gt("git",["config","--get","remote.origin.url"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ie.captureException(new Error("Error getting git remote URL:",{cause:s})),""}}function lu(i){let s="master";try{let e=gt("git",["branch","-r"],{cwd:i});return e.stdout&&e.stdout.toString().trim().split(`
|
|
108
108
|
`).map(r=>r.trim()).includes("origin/main")?"main":s}catch(e){return Ie.captureException(new Error("Error getting git default branch name:",{cause:e})),s}}function cu(i){try{return(gt("git",["rev-parse","--is-inside-work-tree"],{cwd:i}).stdout||"").toString().trim()==="true"}catch(s){return Ie.captureException(new Error("Error getting git commit:",{cause:s})),!1}}function uu(i){try{return(gt("git",["rev-parse","HEAD"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ie.captureException(new Error("Error getting git commit:",{cause:s})),""}}function hu(i){try{return(gt("git",["branch","--show-current"],{cwd:i}).stdout||"").toString().trim()}catch(s){return Ie.captureException(new Error("Error getting current branch name:",{cause:s})),""}}function pu(i){let s=V.resolve("/");for(let e=0;e<20;e++){let t=V.join(i,"package.json");if(ie(t))return i;if(i===s)break;i=V.dirname(i)}return null}function fu(i){let s=V.resolve("/");for(let e=0;e<20;e++){if(ie(V.join(i,"builder.config.json"))||ie(V.join(i,"fusion.config.json"))||ie(V.join(i,"package.json"))||ie(V.join(i,"remix.config.js"))||ie(V.join(i,"remix.config.mjs"))||ie(V.join(i,"remix.config.ts"))||ie(V.join(i,"vite.config.js"))||ie(V.join(i,"vite.config.ts"))||ie(V.join(i,"vite.config.mjs"))||ie(V.join(i,"next.config.js"))||ie(V.join(i,"next.config.ts"))||ie(V.join(i,"angular.json"))||ie(V.join(i,"project.json"))||ie(V.join(i,"tsconfig.json")))return i;if(i===s)break;i=V.dirname(i)}return null}export{au as createDevToolsNodeSys};
|