@jayfong/x-server 1.10.1 → 1.10.2
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/CHANGELOG.md +7 -0
- package/lib/cli/api_generator.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.10.2](https://github.com/jfWorks/x-server/compare/v1.10.1...v1.10.2) (2022-04-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* api gen ([cc33df1](https://github.com/jfWorks/x-server/commit/cc33df1bf15c2b367b1a62cf920a1a1184c20339))
|
|
11
|
+
|
|
5
12
|
### [1.10.1](https://github.com/jfWorks/x-server/compare/v1.10.0...v1.10.1) (2022-04-19)
|
|
6
13
|
|
|
7
14
|
## [1.10.0](https://github.com/jfWorks/x-server/compare/v1.8.0...v1.10.0) (2022-04-19)
|
package/lib/cli/api_generator.js
CHANGED
|
@@ -273,7 +273,7 @@ class ApiGenerator {
|
|
|
273
273
|
tsConfigFilePath: node_path_1.default.join(this.cwd, 'tsconfig.json'),
|
|
274
274
|
});
|
|
275
275
|
this.debug('加载文件...');
|
|
276
|
-
const sourceFile = this.project.
|
|
276
|
+
const sourceFile = this.project.createSourceFile(node_path_1.default.join(this.cwd, 'src/generated/handlers.ts'), await fs_extra_1.default.readFile(node_path_1.default.join(this.cwd, 'node_modules/.x/handlers.ts'), 'utf-8'));
|
|
277
277
|
this.debug('导出处理器...');
|
|
278
278
|
const handlerGroup = sourceFile.getExportSymbols();
|
|
279
279
|
const handles = [];
|