{"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,OAAyB,GAAA,IAAA;;AAE7B,IAAA,OAAOC,cAAc,SAClBC,CAAAA,CAAAA,WAAW,CAAC,8BAAA,CAAA,CACZC,MAAM,CAAC,IAAA;QACNC,OAAQC,CAAAA,MAAM,CAACC,KAAK,CAAC,CAAC,EAAEC,OAAAA,CAAQ,EAAE,CAAC,CAAA;AACnCH,QAAAA,OAAAA,CAAQI,IAAI,CAAC,CAAA,CAAA;AACf,KAAA,CAAA;AACJ;;;;"}