@matterbridge/core 3.9.2-dev-20260625-582ef8d → 3.9.2-dev-20260625-69add38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -396,8 +396,14 @@ export class Matterbridge extends EventEmitter {
396
396
  this.log.debug(`Found bundled core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
397
397
  }
398
398
  else {
399
- this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..', '..');
400
- this.log.debug(`Found production core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
399
+ if (isBun()) {
400
+ this.rootDirectory = path.join(getGlobalBunModules(), 'matterbridge');
401
+ this.log.debug(`Found bun global core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
402
+ }
403
+ else {
404
+ this.rootDirectory = path.resolve(currentFileDirectory, '..', '..', '..', '..');
405
+ this.log.debug(`Found production core >>> root directory: ${CYAN}${this.rootDirectory}${db}`);
406
+ }
401
407
  }
402
408
  this.environment.vars.set('log.level', MatterLogLevel.DEBUG);
403
409
  this.environment.vars.set('log.format', hasParameter('no-ansi') || process.env.NO_COLOR === '1' ? MatterLogFormat.PLAIN : MatterLogFormat.ANSI);
@@ -760,7 +766,7 @@ export class Matterbridge extends EventEmitter {
760
766
  plugin.enabled = false;
761
767
  continue;
762
768
  }
763
- this.log.debug(`Creating node storage context for plugin ${plg}${plugin.name}${db}`);
769
+ this.log.debug(`Creating node storage context for plugin ${plg}${plugin.name}${db}`);
764
770
  plugin.nodeContext = await this.nodeStorage.createStorage(plugin.name);
765
771
  await plugin.nodeContext.set('name', plugin.name);
766
772
  await plugin.nodeContext.set('type', plugin.type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterbridge/core",
3
- "version": "3.9.2-dev-20260625-582ef8d",
3
+ "version": "3.9.2-dev-20260625-69add38",
4
4
  "description": "Matterbridge core library",
5
5
  "author": "https://github.com/Luligu",
6
6
  "homepage": "https://matterbridge.io/",
@@ -130,10 +130,10 @@
130
130
  ],
131
131
  "dependencies": {
132
132
  "@matter/main": "0.17.4-alpha.0-20260624-ef5aefa3b",
133
- "@matterbridge/dgram": "3.9.2-dev-20260625-582ef8d",
134
- "@matterbridge/thread": "3.9.2-dev-20260625-582ef8d",
135
- "@matterbridge/types": "3.9.2-dev-20260625-582ef8d",
136
- "@matterbridge/utils": "3.9.2-dev-20260625-582ef8d",
133
+ "@matterbridge/dgram": "3.9.2-dev-20260625-69add38",
134
+ "@matterbridge/thread": "3.9.2-dev-20260625-69add38",
135
+ "@matterbridge/types": "3.9.2-dev-20260625-69add38",
136
+ "@matterbridge/utils": "3.9.2-dev-20260625-69add38",
137
137
  "escape-html": "1.0.3",
138
138
  "express": "5.2.1",
139
139
  "express-rate-limit": "8.5.2",