-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I have written the following code by peeking into the angular/schematics/component/index.js code
const declarationChanges = addDeclarationToModule(sourceFile, newLocal, `List${strings.classify(_options.name)}Component`, `./components/general-configuration/${dasherize(_options.name)}/list/list-${dasherize(_options.name)}.component`);
const declarationRecorder = tree.beginUpdate(newLocal);
for (const change of declarationChanges) {
if (change instanceof InsertChange) {
_context.logger.info(change.toAdd);
declarationRecorder.insertLeft(change.pos, change.toAdd);
}
}
tree.commitUpdate(declarationRecorder);
I get the following output
UPDATE src/app/app.module.ts (1959 bytes)
but the file still has no changes in it. Any idea what's going wrong here ?
Metadata
Metadata
Assignees
Labels
No labels