JezK
Edit File: versions.js.map
{"version":3,"file":"versions.js","names":["setFlags","commander","description","hasWrapper","args","run","config","reporter","flags","versions","yarn","yarnVersion","maybeReadManifest","cwd","pkg","name","version","Object","assign","process","inspect"],"sourceRoot":"../../../src","sources":["cli/commands/versions.js"],"sourcesContent":["/* @flow */\n\nimport type {Reporter} from '../../reporters/index.js';\nimport type Config from '../../config.js';\n\nimport {version as yarnVersion} from '../../util/yarn-version.js';\n\nexport function setFlags(commander: Object) {\n commander.description('Displays version information of currently installed Yarn, Node.js, and its dependencies.');\n}\n\nexport function hasWrapper(commander: Object, args: Array<string>): boolean {\n return true;\n}\n\nexport async function run(config: Config, reporter: Reporter, commander: Object, flags: Object, args: Array<string>): Promise<void> {\n const versions: {[name: string]: string} = {yarn: yarnVersion};\n\n const pkg = await config.maybeReadManifest(config.cwd);\n if (pkg && pkg.name && pkg.version) {\n versions[pkg.name] = pkg.version;\n }\n\n Object.assign(versions, process.versions);\n\n reporter.inspect(versions);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAKA;EAAA;EAAA;IAAA;EAAA;EAAA;AAAA;AAEO,SAASA,QAAQ,CAACC,SAAiB,EAAE;EAC1CA,SAAS,CAACC,WAAW,CAAC,0FAA0F,CAAC;AACnH;AAEO,SAASC,UAAU,CAACF,SAAiB,EAAEG,IAAmB,EAAW;EAC1E,OAAO,IAAI;AACb;AAAC,SAEqBC,GAAG;EAAA;AAAA;AAAA;EAAA,yFAAlB,iBAAmBC,MAAc,EAAEC,QAAkB,EAAEN,SAAiB,EAAEO,KAAa,EAAEJ,IAAmB;IAAA;IAAA;MAAA;QAAA;UAC3GK,QAAkC,GAAG;YAACC,IAAI,EAAEC;UAAW,CAAC;UAAA;UAAA,OAE5CL,MAAM,CAACM,iBAAiB,CAACN,MAAM,CAACO,GAAG,CAAC;QAAA;UAAhDC,GAAG;UACT,IAAIA,GAAG,IAAIA,GAAG,CAACC,IAAI,IAAID,GAAG,CAACE,OAAO,EAAE;YAClCP,QAAQ,CAACK,GAAG,CAACC,IAAI,CAAC,GAAGD,GAAG,CAACE,OAAO;UAClC;UAEAC,MAAM,CAACC,MAAM,CAACT,QAAQ,EAAEU,OAAO,CAACV,QAAQ,CAAC;UAEzCF,QAAQ,CAACa,OAAO,CAACX,QAAQ,CAAC;QAAC;QAAA;UAAA;MAAA;IAAA;EAAA,CAC5B;EAAA;AAAA"}