mm_machine 3.3.3 → 3.3.4

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/lib/drive.js +3 -0
  2. package/package.json +1 -1
package/lib/drive.js CHANGED
@@ -95,6 +95,9 @@ Drive.prototype._preset = function () {
95
95
  Drive.prototype._loadConfig = function (file) {
96
96
  if (file) {
97
97
  this.config_file = file;
98
+ // 清除构造阶段被Base.setConfig错误缓存的_dir和错误的script_file
99
+ this._dir = '';
100
+ this.script_file = '';
98
101
  }
99
102
  try {
100
103
  // 加载配置(支持热更新)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "3.3.3",
3
+ "version": "3.3.4",
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": {