mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00

refactor(package.json): change prepare script to run prepare.js script instead of husky install directly
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
const { exec } = require('child_process');
|
|
|
|
if (process.env.NODE_ENV !== 'CI') {
|
|
exec('npx husky install', (error, stdout, stderr) => {
|
|
if (error) {
|
|
console.error(`exec error: ${error}`);
|
|
return;
|
|
}
|
|
console.log(`stdout: ${stdout}`);
|
|
console.error(`stderr: ${stderr}`);
|
|
});
|
|
}
|