UNPKG

@storm-software/git-tools

Version:

Tools for managing Git repositories within a Nx workspace.

37 lines (35 loc) 1.31 kB
#!/usr/bin/env node 'use strict'; var chunkAU5PZKTN_cjs = require('./chunk-AU5PZKTN.cjs'); var chunkFH5OSXAJ_cjs = require('./chunk-FH5OSXAJ.cjs'); var chunk3PQ6YKQX_cjs = require('./chunk-3PQ6YKQX.cjs'); // bin/post-merge.ts void (async () => { const config = await chunk3PQ6YKQX_cjs.getConfig(); try { chunk3PQ6YKQX_cjs.handleProcess(config); chunk3PQ6YKQX_cjs.writeInfo("Running post-merge hook...", config); chunkAU5PZKTN_cjs.checkPackageVersion(process.argv?.slice(1)); try { chunkFH5OSXAJ_cjs.run(config, "git-lfs version"); } catch (error) { chunk3PQ6YKQX_cjs.writeError( `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-merge. Error: ${error?.message}`, config ); chunk3PQ6YKQX_cjs.exitWithError(config); } chunkFH5OSXAJ_cjs.run(config, "git lfs post-merge"); chunk3PQ6YKQX_cjs.exitWithSuccess(config); } catch (error) { chunk3PQ6YKQX_cjs.writeFatal( `A fatal error occurred while running the program: ${error.message}`, config ); chunk3PQ6YKQX_cjs.exitWithError(config); process.exit(1); } })(); //# sourceMappingURL=post-merge.cjs.map //# sourceMappingURL=post-merge.cjs.map