recon-generate 0.0.21 → 0.0.22
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/templateManager.js +2 -1
- package/package.json +1 -1
package/dist/templateManager.js
CHANGED
|
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.TemplateManager = void 0;
|
|
37
37
|
const path = __importStar(require("path"));
|
|
38
38
|
const fs = __importStar(require("fs/promises"));
|
|
39
|
+
const case_1 = require("case");
|
|
39
40
|
const templates = __importStar(require("./templates"));
|
|
40
41
|
const types_1 = require("./types");
|
|
41
42
|
class TemplateManager {
|
|
@@ -209,7 +210,7 @@ class TemplateManager {
|
|
|
209
210
|
[path.join(suiteTargetsDir, 'ManagersTargets.sol')]: templates.managersTargetsTemplate({}),
|
|
210
211
|
};
|
|
211
212
|
for (const [contractName, functions] of Object.entries(separatedByContract)) {
|
|
212
|
-
const targetPath = path.join(suiteTargetsDir, `${contractName}Targets.sol`);
|
|
213
|
+
const targetPath = path.join(suiteTargetsDir, `${(0, case_1.pascal)(contractName)}Targets.sol`);
|
|
213
214
|
files[targetPath] = templates.targetsTemplate({
|
|
214
215
|
contractName,
|
|
215
216
|
path: functions.length > 0 ? functions[0].contractPath : '',
|