Skip to content

Commit

Permalink
feat: packageDirectory.functions (#57)
Browse files Browse the repository at this point in the history
* feat: packageDirectory.functions

* feat: updates per PR

Co-authored-by: Randi Wilson <[email protected]>
  • Loading branch information
cwallsfdc and randi274 authored Nov 9, 2022
1 parent fe70589 commit 65e11fd
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 20 deletions.
8 changes: 6 additions & 2 deletions examples/sfdx-project/package-complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"versionName": "Winter ‘20",
"versionDescription": "Welcome to Winter 2020 Release of Expense Manager Util Package",
"versionNumber": "4.7.0.NEXT",
"definitionFile": "config/scratch-org-def.json"
"definitionFile": "config/scratch-org-def.json",
"functions": [
"functions/myfunction",
"functions/anotherfunction"
]
},
{
"path": "exp-core",
Expand Down Expand Up @@ -55,4 +59,4 @@
"External Apex [email protected]": "04tB0000000IB1EIAW",
"Expense Manager": "0HoB00000004CFuKAM"
}
}
}
99 changes: 81 additions & 18 deletions sfdx-project.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"description": "The properties and shape of the SFDX project",
"type": "object",
"additionalProperties": false,
"required": ["packageDirectories"],
"required": [
"packageDirectories"
],
"properties": {
"packageDirectories": {
"title": "Package Directories",
Expand All @@ -16,22 +18,68 @@
"items": {
"type": "object",
"dependencies": {
"ancestorId": ["package", "versionNumber"],
"ancestorVersion": ["package", "versionNumber"],
"apexTestAccess": ["package", "versionNumber"],
"definitionFile": ["package", "versionNumber"],
"dependencies": ["package", "versionNumber"],
"package": ["versionNumber"],
"postInstallScript": ["package", "versionNumber"],
"postInstallUrl": ["package", "versionNumber"],
"releaseNotesUrl": ["package", "versionNumber"],
"uninstallScript": ["package", "versionNumber"],
"unpackagedMetadata": ["package", "versionNumber"],
"versionDescription": ["package", "versionNumber"],
"versionName": ["package", "versionNumber"],
"versionNumber": ["package"]
"ancestorId": [
"package",
"versionNumber"
],
"ancestorVersion": [
"package",
"versionNumber"
],
"apexTestAccess": [
"package",
"versionNumber"
],
"definitionFile": [
"package",
"versionNumber"
],
"dependencies": [
"package",
"versionNumber"
],
"functions": [
"package",
"versionNumber"
],
"package": [
"versionNumber"
],
"postInstallScript": [
"package",
"versionNumber"
],
"postInstallUrl": [
"package",
"versionNumber"
],
"releaseNotesUrl": [
"package",
"versionNumber"
],
"uninstallScript": [
"package",
"versionNumber"
],
"unpackagedMetadata": [
"package",
"versionNumber"
],
"versionDescription": [
"package",
"versionNumber"
],
"versionName": [
"package",
"versionNumber"
],
"versionNumber": [
"package"
]
},
"required": ["path"],
"required": [
"path"
],
"additionalProperties": false,
"properties": {
"ancestorId": {
Expand All @@ -52,6 +100,9 @@
"dependencies": {
"$ref": "#/definitions/packageDirectory.dependencies"
},
"functions": {
"$ref": "#/definitions/packageDirectory.functions"
},
"includeProfileUserLicenses": {
"$ref": "#/definitions/packageDirectory.includeProfileUserLicenses"
},
Expand Down Expand Up @@ -185,7 +236,9 @@
"description": "To specify dependencies for 2GP within the same Dev Hub, use either the package version alias or a combination of the package name and the version number.",
"items": {
"type": "object",
"required": ["package"],
"required": [
"package"
],
"properties": {
"package": {
"type": "string"
Expand All @@ -199,6 +252,14 @@
}
}
},
"packageDirectory.functions": {
"title": "Functions To Package",
"type": "array",
"description": "Relative path to function directories to be packaged.",
"items": {
"type": "string"
}
},
"packageDirectory.ancestorId": {
"title": "Ancestor ID",
"type": "string",
Expand Down Expand Up @@ -233,7 +294,9 @@
"type": "object",
"title": "Unpackaged Metadata",
"description": "Metadata not meant to be packaged, but deployed when testing packaged metadata",
"required": ["path"],
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
Expand Down

0 comments on commit 65e11fd

Please sign in to comment.