{"version":3,"sources":["../../src/hooks/post-checkout.ts"],"names":["writeInfo","checkPackageVersion","run"],"mappings":";;;;;;;AAMA,eAAsB,gBAAA,CACpB,QACA,KAAA,EACA;AACA,EAAAA,2BAAA,CAAU,iCAAiC,MAAM,CAAA;AACjD,EAAAC,qCAAA,CAAoB,KAAK,CAAA;AAEzB,EAAA,IAAI;AACF,IAAAC,qBAAA,CAAI,QAAQ,iBAAiB,CAAA;AAAA,EAC/B,SAAS,KAAA,EAAO;AACd,IAAA,MAAM,IAAI,KAAA;AAAA,MACR,CAAA;AAAA,OAAA,EACG,OAAiB,OACpB,CAAA;AAAA,KACF;AAAA,EACF;AAEA,EAAAA,qBAAA,CAAI,QAAQ,uBAAuB,CAAA;AACrC","file":"chunk-P6GZDOJU.cjs","sourcesContent":["#!/usr/bin/env node\n\nimport { StormWorkspaceConfig } from \"@storm-software/config\";\nimport { run, writeInfo } from \"@storm-software/config-tools\";\nimport { checkPackageVersion } from \"../utilities/check-package-version\";\n\nexport async function postCheckoutHook(\n  config: StormWorkspaceConfig,\n  files: string[]\n) {\n  writeInfo(\"Running post-checkout hook...\", config);\n  checkPackageVersion(files);\n\n  try {\n    run(config, \"git-lfs version\");\n  } catch (error) {\n    throw new Error(\n      `This repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting .git/hooks/post-checkout.\\nError: ${\n        (error as Error)?.message\n      }`\n    );\n  }\n\n  run(config, \"git lfs post-checkout\");\n}\n"]}