gg-mysql-connector 1.0.23 → 1.0.24

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.
@@ -155,11 +155,11 @@ class ModelGenerator {
155
155
  }
156
156
  const fileName = `${params.appName}_INF.ts`;
157
157
  const code = `export default interface ${params.appName}_INF { ${array.join("\n")} }`;
158
- params.outputDirectory.forEach(async (tempPath) => {
159
- const serverFilePath = path_1.default.join(tempPath, fileName);
158
+ for (let row of params.outputDirectory) {
159
+ const serverFilePath = path_1.default.join(row, fileName);
160
160
  await fs_1.default.writeFileSync(serverFilePath, code);
161
161
  console.log("save to ", serverFilePath);
162
- });
162
+ }
163
163
  console.log(`generate interface ${params.appName} ${chalk_1.default.bgGreen(" SUCCESS ")}`);
164
164
  return code;
165
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gg-mysql-connector",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -207,11 +207,11 @@ export default class ModelGenerator {
207
207
  params.appName
208
208
  }_INF { ${array.join("\n")} }`
209
209
 
210
- params.outputDirectory.forEach(async (tempPath) => {
211
- const serverFilePath = path.join(tempPath, fileName)
210
+ for (let row of params.outputDirectory) {
211
+ const serverFilePath = path.join(row, fileName)
212
212
  await fs.writeFileSync(serverFilePath, code)
213
213
  console.log("save to ", serverFilePath)
214
- })
214
+ }
215
215
 
216
216
  console.log(
217
217
  `generate interface ${params.appName} ${chalk.bgGreen(" SUCCESS ")}`