Describe the bug
The validation of the sfdx-project.json in sfpowerscripts blocks the extension from the sfdx-project.json. Sfpowerscripts should only validate json ranges that are managed by Sfpowerscript or just throw an warning. Otherwise third party extensions will be blocked or prevented from adding properties e.g. to the packages.
To Reproduce
Steps to reproduce the behavior:
For example add a property to the one of the package, which is not included/supported by sfpowerscripts, but in another package:
{
"packageDirectories": [
{
"path": "./src-translation",
"package": "translation",
"versionNumber": "1.0.0.0",
"testProperty": ["Test","Test123"],
"dependencies": []
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "57.0",
"packageAliases": {}
}
Expected behavior
No error happens on running the command sfdx sfpowerscripts:dependency:shrink
Screenshots/Log
ERROR running sfpowerscripts:dependency:shrink : The sfdx-project.json is invalid, Please fix the following errors
1: /packageDirectories/4: must NOT have additional properties {
"additionalProperty": "testProperty"
}
Error: Process completed with exit code 1.
Platform Details (please complete the following information):
- OS: Ubuntu
- Version @dxatscale/sfpowerscripts 20.20.3
- Salesforce CLI(sfdx cli) Version: 7.186.2
- CI Platform: GitHub Actions
Additional context
Similar issue as #1256