Skip to content

Commit

Permalink
NO-JIRA Add plugin echo execute to yarn (#11857)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarath-nair-sonarsource authored and sonartech committed Sep 26, 2024
1 parent f316794 commit d1c671d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/* eslint-disable */
module.exports = {
name: "@yarnpkg/plugin-echo-execute",
factory: function (require) {
var plugin;(()=>{"use strict";var o={d:(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(o,t)=>Object.prototype.hasOwnProperty.call(o,t),r:o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}},t={};o.r(t),o.d(t,{default:()=>r});const e=require("@yarnpkg/core"),r={hooks:{wrapScriptExecution:async(o,t,r,a,n)=>async()=>(await e.StreamReport.start({configuration:t.configuration,json:!1,includeFooter:!1,stdout:n.stdout},async o=>{const r=e.formatUtils.applyColor(t.configuration,a,e.formatUtils.Type.NAME),i=e.formatUtils.applyColor(t.configuration,n.script,e.formatUtils.Type.CODE);o.reportInfo(e.MessageName.UNNAMED,`executing [${r}]: ${i}`)}),o())}};plugin=t})();
return plugin;
}
};
4 changes: 4 additions & 0 deletions server/sonar-web/.yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ enableGlobalCache: true
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.2.2.cjs

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-echo-execute.cjs
spec: "https://yarnplugins.com/plugin-echo-execute"

0 comments on commit d1c671d

Please sign in to comment.