@storm-software/git-tools
Version:
Tools for managing Git repositories within a Nx workspace.
27 lines (26 loc) • 863 B
JavaScript
import { run } from './chunk-G3YPGVPS.js';
import { getConfig, handleProcess, writeInfo, exitWithSuccess, writeFatal, exitWithError } from './chunk-GMMJM4AI.js';
// bin/pre-install.ts
void (async () => {
const config = await getConfig();
try {
handleProcess(config);
writeInfo("Running pre-install hook...", config);
if (Boolean(process.env.CI) || Boolean(process.env.STORM_CI)) {
writeInfo("Skipping pre-install for CI process...", config);
exitWithSuccess(config);
}
run(config, "npx -y only-allow pnpm");
exitWithSuccess(config);
} catch (error) {
writeFatal(
`A fatal error occurred while running the program: ${error.message}`,
config
);
exitWithError(config);
process.exit(1);
}
})();
//# sourceMappingURL=pre-install.js.map
//# sourceMappingURL=pre-install.js.map