@domain.js/main 0.4.9 → 0.4.10

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.
package/dist/cli/index.js CHANGED
@@ -96,7 +96,7 @@ const checkHookExport = (_dir) => {
96
96
  }
97
97
  }
98
98
  };
99
- const loadDeps = async (rootDir, ext = "js") => {
99
+ const loadDeps = async (rootDir, ext = "js", ignoreCheckHook = false) => {
100
100
  const isTS = ext === "ts";
101
101
  const modules = [];
102
102
  const dir = path.resolve(rootDir, "./");
@@ -109,7 +109,8 @@ const loadDeps = async (rootDir, ext = "js") => {
109
109
  // 非目录忽略,模块必须是目录
110
110
  if (!stat.isDirectory())
111
111
  continue;
112
- checkHookExport(_dir);
112
+ if (!ignoreCheckHook)
113
+ checkHookExport(_dir);
113
114
  modules.push(path.join(dir, x));
114
115
  }
115
116
  // 按字典排序,后续有变动的时候不容易冲突
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {