Skip to content

Commit cfac3da

Browse files
author
kumar-ankita
committed
creating change lists and backup change lists
1 parent 8a5b10b commit cfac3da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/utils/generatePackageXml.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,13 @@ function backupChangeList(apexClasses: string[], lwcComponents: string[]): void
6868
const filePath = path.join(__dirname, 'backup-package.xml');
6969
fs.writeFileSync(filePath, packageXmlContent.trim());
7070
}
71+
72+
// remove all this code later --- only for testing
73+
const apexClasses = ['MyApexClass1', 'MyApexClass2'];
74+
const lwcComponents = ['MyLwcComponent1', 'MyLwcComponent2'];
75+
76+
// creating normal package.xml with additional types
77+
createChangeList(apexClasses, lwcComponents);
78+
79+
// creating backup-package.xml without additional types
80+
backupChangeList(apexClasses, lwcComponents);

0 commit comments

Comments
 (0)