Skip to content

Commit

Permalink
creating change lists and backup change lists
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar-ankita committed Sep 20, 2024
1 parent 8a5b10b commit cfac3da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/utils/generatePackageXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ function backupChangeList(apexClasses: string[], lwcComponents: string[]): void
const filePath = path.join(__dirname, 'backup-package.xml');
fs.writeFileSync(filePath, packageXmlContent.trim());
}

// remove all this code later --- only for testing
const apexClasses = ['MyApexClass1', 'MyApexClass2'];
const lwcComponents = ['MyLwcComponent1', 'MyLwcComponent2'];

// creating normal package.xml with additional types
createChangeList(apexClasses, lwcComponents);

// creating backup-package.xml without additional types
backupChangeList(apexClasses, lwcComponents);

0 comments on commit cfac3da

Please sign in to comment.