Skip to content

Commit 100732d

Browse files
committed
🛠️ Add rmDependents.sh for Manifest Feature Adjustment in CustomModules
- Introduced `rmDependents.sh` script to modify 'required' features in NetSuite manifest files. - Script selectively marks MULTIBOOK, SUBSCRIPTIONBILLING, and BILLINGACCOUNTS features as 'not required'. - Facilitates more flexible deployment options by adjusting feature dependencies. - Ensures manifest changes cater to a wider range of deployment scenarios. - Script integrated into the build process via package.json for automated execution.
1 parent 8336d3c commit 100732d

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.ci/scripts/rmDependents.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# This script modifies certain features in a NetSuite manifest file that are marked as "required" but are not essential for most deployments.
4+
# Please review and adjust these changes as necessary to fit your specific deployment needs.
5+
6+
# Replace "required" with "not required" for the MULTIBOOK feature in the manifest file.
7+
sed 's/required="true">MULTIBOOK/required="false">MULTIBOOK/' ./src/manifest.xml >./src/manifest2.xml
8+
9+
# Replace "required" with "not required" for the SUBSCRIPTIONBILLING feature in the manifest file.
10+
sed 's/required="true">SUBSCRIPTIONBILLING/required="false">SUBSCRIPTIONBILLING/' ./src/manifest2.xml >./src/manifest3.xml
11+
12+
# Replace "required" with "not required" for the BILLINGACCOUNTS feature in the manifest file.
13+
sed 's/required="true">BILLINGACCOUNTS/required="false">BILLINGACCOUNTS/' ./src/manifest3.xml >./src/manifest.xml
14+
15+
# Clean up intermediate files created during the process to better support all Unix systems, including macOS.
16+
rm -f ./src/manifest2.xml
17+
rm -f ./src/manifest3.xml

0 commit comments

Comments
 (0)