Skip to content

Commit

Permalink
feat: rename-presets-property (#87)
Browse files Browse the repository at this point in the history
* feat: rename presets property

* style: format
  • Loading branch information
mshanemc authored May 17, 2024
1 parent 2fbce2e commit fc86397
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion compiled/sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"],
Expand Down
7 changes: 6 additions & 1 deletion sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": [
Expand Down
6 changes: 6 additions & 0 deletions src/sfdx-project/sfdxProjectJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down

0 comments on commit fc86397

Please sign in to comment.