mirror of
https://github.com/pnpm/action-setup
synced 2026-11-07 04:57:57 +01:00
fix: remove "type": "module" from package.json
Node.js treats dist/index.js as ESM due to "type": "module", but the bundle uses CJS require() calls. Remove the field so Node.js defaults to CJS for .js files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
ab0b84aeb1
commit
24a61aa18d
2 files changed
+2
-3
No files matched your search
Vendored
+2
-2
@@ -260,7 +260,7 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
|
||||
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
||||
`,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,i=n&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind",s=[];if(i&&r.sep&&!r.value){let o=[];for(let a=0;a<r.sep.length;++a){let A=r.sep[a];switch(A.type){case"newline":o.push(a);break;case"space":break;case"comment":A.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(s=r.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||r.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):i||r.value?(s.push(this.sourceToken),e.items.push({start:s,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(NA(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(lK(r.key)&&!NA(r.sep,"newline")){let o=td(r.start),a=r.key,A=r.sep;A.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:A}]})}else s.length>0?r.sep=r.sep.concat(s,this.sourceToken):r.sep.push(this.sourceToken);else if(NA(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{let o=td(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||i?e.items.push({start:s,key:null,sep:[this.sourceToken]}):NA(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);i||r.value?(e.items.push({start:s,key:o,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(o):(Object.assign(r,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){n&&o.type!=="block-seq"&&e.items.push({start:s}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){let n="end"in r.value?r.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,r.start),i.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||NA(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let r=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"singl
Line truncated
|
||||
`)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
|
||||
`,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=tB(e),n=td(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=tB(e),n=td(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};uK.Parser=h_});var mK=h(vg=>{"use strict";var dK=t_(),fRe=Cg(),xg=Qg(),hRe=ZR(),gRe=qe(),mRe=f_(),fK=g_();function hK(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new mRe.LineCounter||null,prettyErrors:e}}function pRe(t,e={}){let{lineCounter:r,prettyErrors:n}=hK(e),i=new fK.Parser(r?.addNewLine),s=new dK.Composer(e),o=Array.from(s.compose(i.parse(t)));if(n&&r)for(let a of o)a.errors.forEach(xg.prettifyError(t,r)),a.warnings.forEach(xg.prettifyError(t,r));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function gK(t,e={}){let{lineCounter:r,prettyErrors:n}=hK(e),i=new fK.Parser(r?.addNewLine),s=new dK.Composer(e),o=null;for(let a of s.compose(i.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new xg.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(xg.prettifyError(t,r)),o.warnings.forEach(xg.prettifyError(t,r))),o}function yRe(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);let i=gK(t,r);if(!i)return null;if(i.warnings.forEach(s=>hRe.warn(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},r))}function ERe(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){let i=Math.round(r);r=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){let{keepUndefined:i}=r??e??{};if(!i)return}return gRe.isDocument(t)&&!n?t.toString(r):new fRe.Document(t,n,r).toString(r)}vg.parse=yRe;vg.parseAllDocuments=pRe;vg.parseDocument=gK;vg.stringify=ERe});var p_=h(et=>{"use strict";var CRe=t_(),IRe=Cg(),BRe=TD(),m_=Qg(),QRe=ng(),ha=qe(),bRe=la(),NRe=er(),wRe=da(),SRe=fa(),xRe=ZI(),vRe=u_(),RRe=f_(),DRe=g_(),rB=mK(),pK=Zh();et.Composer=CRe.Composer;et.Document=IRe.Document;et.Schema=BRe.Schema;et.YAMLError=m_.YAMLError;et.YAMLParseError=m_.YAMLParseError;et.YAMLWarning=m_.YAMLWarning;et.Alias=QRe.Alias;et.isAlias=ha.isAlias;et.isCollection=ha.isCollection;et.isDocument=ha.isDocument;et.isMap=ha.isMap;et.isNode=ha.isNode;et.isPair=ha.isPair;et.isScalar=ha.isScalar;et.isSeq=ha.isSeq;et.Pair=bRe.Pair;et.Scalar=NRe.Scalar;et.YAMLMap=wRe.YAMLMap;et.YAMLSeq=SRe.YAMLSeq;et.CST=xRe;et.Lexer=vRe.Lexer;et.LineCounter=RRe.LineCounter;et.Parser=DRe.Parser;et.parse=rB.parse;et.parseAllDocuments=rB.parseAllDocuments;et.parseDocument=rB.parseDocument;et.stringify=rB.stringify;et.visit=pK.visit;et.visitAsync=pK.visitAsync});var fd=pt(ot(),1);var g4=pt(XC(),1),Gu=pt(ot(),1);var l4=pt(XC(),1),Ci=pt(ot(),1),u4=pt(tf(),1),d4=pt(c4(),1),f4=pt(require("os"),1);async function h4(t){let e=await WNe();(0,Ci.saveState)("cache_path",e);let r=await(0,d4.hashFiles)(t.cacheDependencyPath);if(!r)throw new Error("Some specified paths were not resolved, unable to cache dependencies.");let n=`pnpm-cache-${process.env.RUNNER_OS}-${f4.default.arch()}-${r}`;(0,Ci.debug)(`Primary key is ${n}`),(0,Ci.saveState)("cache_primary_key",n);let i=await(0,l4.restoreCache)([e],n);if((0,Ci.setOutput)("cache-hit",!!i),!i){(0,Ci.info)("Cache is not found");return}(0,Ci.saveState)("cache_restored_key",i),(0,Ci.info)(`Cache restored from key: ${i}`)}async function WNe(){let{stdout:t}=await(0,u4.getExecOutput)("pnpm store path --silent"),e=t.trim();return(0,Ci.d
Line truncated
|
||||
`,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let r=tB(e),n=td(r);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let r=tB(e),n=td(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};uK.Parser=h_});var mK=h(vg=>{"use strict";var dK=t_(),fRe=Cg(),xg=Qg(),hRe=ZR(),gRe=qe(),mRe=f_(),fK=g_();function hK(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new mRe.LineCounter||null,prettyErrors:e}}function pRe(t,e={}){let{lineCounter:r,prettyErrors:n}=hK(e),i=new fK.Parser(r?.addNewLine),s=new dK.Composer(e),o=Array.from(s.compose(i.parse(t)));if(n&&r)for(let a of o)a.errors.forEach(xg.prettifyError(t,r)),a.warnings.forEach(xg.prettifyError(t,r));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function gK(t,e={}){let{lineCounter:r,prettyErrors:n}=hK(e),i=new fK.Parser(r?.addNewLine),s=new dK.Composer(e),o=null;for(let a of s.compose(i.parse(t),!0,t.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new xg.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&r&&(o.errors.forEach(xg.prettifyError(t,r)),o.warnings.forEach(xg.prettifyError(t,r))),o}function yRe(t,e,r){let n;typeof e=="function"?n=e:r===void 0&&e&&typeof e=="object"&&(r=e);let i=gK(t,r);if(!i)return null;if(i.warnings.forEach(s=>hRe.warn(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},r))}function ERe(t,e,r){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){let i=Math.round(r);r=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){let{keepUndefined:i}=r??e??{};if(!i)return}return gRe.isDocument(t)&&!n?t.toString(r):new fRe.Document(t,n,r).toString(r)}vg.parse=yRe;vg.parseAllDocuments=pRe;vg.parseDocument=gK;vg.stringify=ERe});var p_=h(et=>{"use strict";var CRe=t_(),IRe=Cg(),BRe=TD(),m_=Qg(),QRe=ng(),ha=qe(),bRe=la(),NRe=er(),wRe=da(),SRe=fa(),xRe=ZI(),vRe=u_(),RRe=f_(),DRe=g_(),rB=mK(),pK=Zh();et.Composer=CRe.Composer;et.Document=IRe.Document;et.Schema=BRe.Schema;et.YAMLError=m_.YAMLError;et.YAMLParseError=m_.YAMLParseError;et.YAMLWarning=m_.YAMLWarning;et.Alias=QRe.Alias;et.isAlias=ha.isAlias;et.isCollection=ha.isCollection;et.isDocument=ha.isDocument;et.isMap=ha.isMap;et.isNode=ha.isNode;et.isPair=ha.isPair;et.isScalar=ha.isScalar;et.isSeq=ha.isSeq;et.Pair=bRe.Pair;et.Scalar=NRe.Scalar;et.YAMLMap=wRe.YAMLMap;et.YAMLSeq=SRe.YAMLSeq;et.CST=xRe;et.Lexer=vRe.Lexer;et.LineCounter=RRe.LineCounter;et.Parser=DRe.Parser;et.parse=rB.parse;et.parseAllDocuments=rB.parseAllDocuments;et.parseDocument=rB.parseDocument;et.stringify=rB.stringify;et.visit=pK.visit;et.visitAsync=pK.visitAsync});var fd=pt(ot());var g4=pt(XC()),Gu=pt(ot());var l4=pt(XC()),Ci=pt(ot()),u4=pt(tf()),d4=pt(c4()),f4=pt(require("os"));async function h4(t){let e=await WNe();(0,Ci.saveState)("cache_path",e);let r=await(0,d4.hashFiles)(t.cacheDependencyPath);if(!r)throw new Error("Some specified paths were not resolved, unable to cache dependencies.");let n=`pnpm-cache-${process.env.RUNNER_OS}-${f4.default.arch()}-${r}`;(0,Ci.debug)(`Primary key is ${n}`),(0,Ci.saveState)("cache_primary_key",n);let i=await(0,l4.restoreCache)([e],n);if((0,Ci.setOutput)("cache-hit",!!i),!i){(0,Ci.info)("Cache is not found");return}(0,Ci.saveState)("cache_restored_key",i),(0,Ci.info)(`Cache restored from key: ${i}`)}async function WNe(){let{stdout:t}=await(0,u4.getExecOutput)("pnpm store path --silent"),e=t.trim();return(0,Ci.debug)(`Cache folLine truncated
|
||||
- version ${e} in the GitHub Action config with the key "version"
|
||||
- version ${s} in the package.json with the key "packageManager"
|
||||
Remove one of these versions to avoid version mismatch errors like ERR_PNPM_BAD_PM_VERSION`);return`${n?"@pnpm/exe":"pnpm"}@${e}`}if(!i)throw new Error(`No workspace is found.
|
||||
@@ -269,7 +269,7 @@ please run the actions/checkout before pnpm/action-setup.
|
||||
Otherwise, please specify the pnpm version in the action configuration.`);if(typeof s!="string")throw new Error(`No pnpm version is specified.
|
||||
Please specify it by one of the following ways:
|
||||
- in the GitHub Action config with the key "version"
|
||||
- in the package.json with the key "packageManager"`);if(!s.startsWith("pnpm@"))throw new Error("Invalid packageManager field in package.json");return n?s.replace("pnpm@","@pnpm/exe@"):s}var FK=JDe;async function WDe(t){(0,dd.startGroup)("Running self-installer...");let e=await FK(t);if((0,dd.endGroup)(),e)return(0,dd.setFailed)(`Something went wrong, self-installer exits with code ${e}`)}var UK=WDe;var Tg=pt(ot(),1);var x_=pt(require("path"),1),S_=pt(require("process"),1),v_=t=>x_.default.join(t.dest,"node_modules",".bin"),lB=t=>({...S_.default.env,PATH:v_(t)+x_.default.delimiter+S_.default.env.PATH});function $De(t){let e=v_(t);(0,Tg.addPath)(e),(0,Tg.setOutput)("dest",t.dest),(0,Tg.setOutput)("bin_dest",e)}var qK=$De;var HA=pt(ot(),1),HK=require("child_process");function KDe(t){let e=lB(t);for(let r of t.runInstall){let n=["install"];r.recursive&&n.unshift("recursive"),r.args&&n.push(...r.args);let i=["pnpm",...n].join(" ");(0,HA.startGroup)(`Running ${i}...`);let{error:s,status:o}=(0,HK.spawnSync)("pnpm",n,{stdio:"inherit",cwd:r.cwd,shell:!0,env:e});if((0,HA.endGroup)(),s){(0,HA.setFailed)(s);continue}if(o){(0,HA.setFailed)(`Command ${i} (cwd: ${r.cwd}) exits with status ${o}`);continue}}}var zK=KDe;var zA=pt(ot(),1),jK=require("child_process");function XDe(t){if(t.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,zA.startGroup)("Running pnpm store prune...");let{error:e,status:r}=(0,jK.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:!0,env:lB(t)});if((0,zA.endGroup)(),e){(0,zA.warning)(e);return}if(r){(0,zA.warning)(`command pnpm store prune exits with code ${r}`);return}}var GK=XDe;async function ZDe(){let t=PK();(0,fd.getState)("is_post")==="true"?await t_e(t):await e_e(t)}async function e_e(t){(0,fd.saveState)("is_post","true"),await UK(t),console.log("Installation Completed!"),qK(t),await m4(t),zK(t)}async function t_e(t){GK(t),await C4(t)}ZDe().catch(t=>{console.error(t),(0,fd.setFailed)(t)});
|
||||
- in the package.json with the key "packageManager"`);if(!s.startsWith("pnpm@"))throw new Error("Invalid packageManager field in package.json");return n?s.replace("pnpm@","@pnpm/exe@"):s}var FK=JDe;async function WDe(t){(0,dd.startGroup)("Running self-installer...");let e=await FK(t);if((0,dd.endGroup)(),e)return(0,dd.setFailed)(`Something went wrong, self-installer exits with code ${e}`)}var UK=WDe;var Tg=pt(ot());var x_=pt(require("path")),S_=pt(require("process")),v_=t=>x_.default.join(t.dest,"node_modules",".bin"),lB=t=>({...S_.default.env,PATH:v_(t)+x_.default.delimiter+S_.default.env.PATH});function $De(t){let e=v_(t);(0,Tg.addPath)(e),(0,Tg.setOutput)("dest",t.dest),(0,Tg.setOutput)("bin_dest",e)}var qK=$De;var HA=pt(ot()),HK=require("child_process");function KDe(t){let e=lB(t);for(let r of t.runInstall){let n=["install"];r.recursive&&n.unshift("recursive"),r.args&&n.push(...r.args);let i=["pnpm",...n].join(" ");(0,HA.startGroup)(`Running ${i}...`);let{error:s,status:o}=(0,HK.spawnSync)("pnpm",n,{stdio:"inherit",cwd:r.cwd,shell:!0,env:e});if((0,HA.endGroup)(),s){(0,HA.setFailed)(s);continue}if(o){(0,HA.setFailed)(`Command ${i} (cwd: ${r.cwd}) exits with status ${o}`);continue}}}var zK=KDe;var zA=pt(ot()),jK=require("child_process");function XDe(t){if(t.runInstall.length===0){console.log("Pruning is unnecessary.");return}(0,zA.startGroup)("Running pnpm store prune...");let{error:e,status:r}=(0,jK.spawnSync)("pnpm",["store","prune"],{stdio:"inherit",shell:!0,env:lB(t)});if((0,zA.endGroup)(),e){(0,zA.warning)(e);return}if(r){(0,zA.warning)(`command pnpm store prune exits with code ${r}`);return}}var GK=XDe;async function ZDe(){let t=PK();(0,fd.getState)("is_post")==="true"?await t_e(t):await e_e(t)}async function e_e(t){(0,fd.saveState)("is_post","true"),await UK(t),console.log("Installation Completed!"),qK(t),await m4(t),zK(t)}async function t_e(t){GK(t),await C4(t)}ZDe().catch(t=>{console.error(t),(0,fd.setFailed)(t)});
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/fetch/body.js:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@10.32.1",
|
||||
"scripts": {
|
||||
"build:bundle": "esbuild src/index.ts --bundle --platform=node --target=node24 --format=cjs --minify --outfile=dist/index.js --loader:.json=json",
|
||||
|
||||
Reference in new issue
Block a user