INNER CODE UNIT · TypeScript
Create$
afteracademy/wimm-apis · .templates/feature.generator.ts:152
export class Create${featureCaps}Dto {
@IsNotEmpty()
readonly property1: string;
@IsNotEmpty()
@MaxLength(1000)
readonly property2: string;
}
`;
await writeFile(dtoPath, template);
}
function capitalizeFirstLetter(str: string) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
async function main() {
const featureName = process.argv[2];