ondc-code-generator 0.3.8 → 0.4.0
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.
|
@@ -67,12 +67,12 @@ export class ConfigCompiler {
|
|
|
67
67
|
await this.performValidations(valConfig);
|
|
68
68
|
}
|
|
69
69
|
// Generate code based on the language
|
|
70
|
-
const targetPath =
|
|
70
|
+
const targetPath = `${outputPath}generated/${codeName}`;
|
|
71
71
|
switch (this.language) {
|
|
72
72
|
case SupportedLanguages.Typescript:
|
|
73
|
-
await new TypescriptGenerator(valConfig, this.errorDefinitions ?? [],
|
|
74
|
-
//
|
|
75
|
-
).generateCode({
|
|
73
|
+
await new TypescriptGenerator(valConfig, this.errorDefinitions ?? [],
|
|
74
|
+
// `./generated/${codeName}`
|
|
75
|
+
targetPath).generateCode({
|
|
76
76
|
codeName: codeName,
|
|
77
77
|
});
|
|
78
78
|
break;
|
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export { ConfigCompiler };
|
|
|
16
16
|
// const buildYaml = readFileSync(buildPath, "utf-8");
|
|
17
17
|
// const valConfig = JSON.parse(readFileSync(valConfigPath, "utf-8"));
|
|
18
18
|
// await compiler.initialize(buildYaml);
|
|
19
|
-
// await compiler.generateCode(valConfig, "L1-validations");
|
|
19
|
+
// await compiler.generateCode(valConfig, "L1-validations", false);
|
|
20
20
|
// };
|
|
21
21
|
// (async () => {
|
|
22
22
|
// await main();
|