Added initial bun support.

This commit is contained in:
SamTV12345 2023-10-02 19:06:25 +02:00
parent b6ce8c7377
commit 8be2dffc37
9 changed files with 32 additions and 9619 deletions

View file

@ -14,10 +14,10 @@ const logger = log4js.getLogger('plugins');
// Log the version of npm at startup.
(async () => {
try {
const version = await runCmd(['npm', '--version'], {stdio: [null, 'string']});
logger.info(`npm --version: ${version}`);
const version = await runCmd(['bun', '--version'], {stdio: [null, 'string']});
logger.info(`bun --version: ${version}`);
} catch (err) {
logger.error(`Failed to get npm version: ${err.stack || err}`);
logger.error(`Failed to get bun version: ${err.stack || err}`);
// This isn't a fatal error so don't re-throw.
}
})();