diff --git a/compiled/sfdx-project.schema.json b/compiled/sfdx-project.schema.json index 4841d8d..c982e8a 100644 --- a/compiled/sfdx-project.schema.json +++ b/compiled/sfdx-project.schema.json @@ -809,7 +809,7 @@ }, "registryPresets": { "$ref": "#/definitions/RegistryPresets", - "description": "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", + "deprecated": "use `sourceBehaviorOptions`\nfilenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", "title": "Custom predefined presets for decomposing metadata types" }, "replacements": { @@ -834,6 +834,11 @@ "description": "The API version that the source is compatible with. By default it matches the API version.", "title": "Source API Version", "type": "string" + }, + "sourceBehaviorOptions": { + "$ref": "#/definitions/RegistryPresets", + "description": "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", + "title": "Custom predefined presets for decomposing metadata types" } }, "required": ["packageDirectories"], diff --git a/sfdx-project.schema.json b/sfdx-project.schema.json index 14c3457..f5b9fb9 100644 --- a/sfdx-project.schema.json +++ b/sfdx-project.schema.json @@ -920,7 +920,7 @@ }, "registryPresets": { "$ref": "#/definitions/RegistryPresets", - "description": "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", + "deprecated": "use `sourceBehaviorOptions`\nfilenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", "title": "Custom predefined presets for decomposing metadata types" }, "replacements": { @@ -945,6 +945,11 @@ "description": "The API version that the source is compatible with. By default it matches the API version.", "title": "Source API Version", "type": "string" + }, + "sourceBehaviorOptions": { + "$ref": "#/definitions/RegistryPresets", + "description": "filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets", + "title": "Custom predefined presets for decomposing metadata types" } }, "required": [ diff --git a/src/sfdx-project/sfdxProjectJson.ts b/src/sfdx-project/sfdxProjectJson.ts index ff7c1d6..c65012d 100644 --- a/src/sfdx-project/sfdxProjectJson.ts +++ b/src/sfdx-project/sfdxProjectJson.ts @@ -55,10 +55,16 @@ export type ProjectJson = { */ packageAliases?: { [k: string]: string }; /** + * @deprecated use `sourceBehaviorOptions` * filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets * @title Custom predefined presets for decomposing metadata types */ registryPresets?: RegistryPresets; + /** + * filenames from https://github.com/forcedotcom/source-deploy-retrieve/tree/main/src/registry/presets + * @title Custom predefined presets for decomposing metadata types + */ + sourceBehaviorOptions?: RegistryPresets; // TODO: does this belong here or in SDR? This should be the simplified, "public" version of the registry props. Only allow things we want people to do registryCustomizations?: MetadataRegistry; /**