mm_machine 2.8.2 → 2.8.3

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -483,7 +483,8 @@ Manager.prototype._findFiles = async function (dir) {
483
483
  */
484
484
  Manager.prototype.getSnapshotPath = function () {
485
485
  var snapshot_file = this.config.snapshot_file || './snapshot.json';
486
- return snapshot_file.fullname(__dirname);
486
+ let dir = this.getBaseDir();
487
+ return snapshot_file.fullname(dir);
487
488
  };
488
489
 
489
490
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "description": "A flexible Node.js plugin mechanism system for dynamic loading, management and execution of modules. Supports hot reload, lifecycle management, and modern JavaScript features.",
5
5
  "main": "index.js",
6
6
  "scripts": {