{"version":3,"file":"version.mjs","sources":["../../../../src/cli/commands/version.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport type { StrapiCommand } from '../types';\nimport { version } from '../../../package.json';\n\n/**\n * `$ strapi version`\n */\n\nconst command: StrapiCommand = () => {\n  // load the Strapi package.json to get version and other information\n  return createCommand('version')\n    .description('Output the version of Strapi')\n    .action(() => {\n      process.stdout.write(`${version}\\n`);\n      process.exit(0);\n    });\n};\n\nexport { command };\n"],"names":["command","createCommand","description","action","process","stdout","write","version","exit"],"mappings":";;;AAIA;;AAEC,UAEKA,OAAAA,GAAyB,IAAA;;AAE7B,IAAA,OAAOC,cAAc,SAAA,CAAA,CAClBC,WAAW,CAAC,8BAAA,CAAA,CACZC,MAAM,CAAC,IAAA;AACNC,QAAAA,OAAAA,CAAQC,MAAM,CAACC,KAAK,CAAC,CAAA,EAAGC,OAAAA,CAAQ,EAAE,CAAC,CAAA;AACnCH,QAAAA,OAAAA,CAAQI,IAAI,CAAC,CAAA,CAAA;AACf,IAAA,CAAA,CAAA;AACJ;;;;"}