@zenorm/generate 2.1.0 → 2.1.1
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/generate.js +1 -1
- package/package.json +1 -1
package/dist/generate.js
CHANGED
|
@@ -97,7 +97,7 @@ export async function generate(tables, cfg) {
|
|
|
97
97
|
}
|
|
98
98
|
// 排序输出自定义类型到文件头部
|
|
99
99
|
for (const tname of Object.keys(typesOut).sort()) {
|
|
100
|
-
structs.push(`type ${tname} = ${typesOut[tname]}
|
|
100
|
+
structs.push(`type ${tname} = ${typesOut[tname]};`);
|
|
101
101
|
}
|
|
102
102
|
structs.push(...tablesOut);
|
|
103
103
|
const tablesFilename = path.join(outputDir, config.tablesFilename + '.ts');
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@zenorm/generate",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Easy ORM, easy query. easy typing! Auto generate typescript declaration.",
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.1",
|
|
6
6
|
"exports": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"homepage": "https://zenorm.node.ltd",
|