sfdx-hardis 6.0.2-beta202508110129.0 → 6.0.2-beta202508111351.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +3 -3
- package/lib/commands/hardis/org/configure/data.js +19 -5
- package/lib/commands/hardis/org/configure/data.js.map +1 -1
- package/lib/commands/hardis/org/configure/files.js +6 -1
- package/lib/commands/hardis/org/configure/files.js.map +1 -1
- package/lib/commands/hardis/org/select.js +1 -1
- package/lib/commands/hardis/project/clean/references.js +3 -4
- package/lib/commands/hardis/project/clean/references.js.map +1 -1
- package/lib/commands/hardis/scratch/pull.js +1 -0
- package/lib/commands/hardis/scratch/pull.js.map +1 -1
- package/lib/commands/hardis/work/new.js +20 -20
- package/lib/commands/hardis/work/new.js.map +1 -1
- package/lib/commands/hardis/work/refresh.js +2 -2
- package/lib/commands/hardis/work/refresh.js.map +1 -1
- package/lib/commands/hardis/work/save.js +11 -13
- package/lib/commands/hardis/work/save.js.map +1 -1
- package/lib/common/utils/deployUtils.js +18 -6
- package/lib/common/utils/deployUtils.js.map +1 -1
- package/lib/common/utils/gitUtils.js +27 -5
- package/lib/common/utils/gitUtils.js.map +1 -1
- package/lib/common/utils/index.d.ts +1 -1
- package/lib/common/utils/index.js +26 -10
- package/lib/common/utils/index.js.map +1 -1
- package/lib/common/utils/orgUtils.js +1 -1
- package/lib/common/utils/orgUtils.js.map +1 -1
- package/lib/common/utils/prompts.js +3 -3
- package/lib/common/utils/prompts.js.map +1 -1
- package/lib/common/utils/xmlUtils.js +1 -4
- package/lib/common/utils/xmlUtils.js.map +1 -1
- package/lib/common/websocketClient.js +2 -1
- package/lib/common/websocketClient.js.map +1 -1
- package/messages/org.md +2 -2
- package/oclif.manifest.json +126 -126
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocketClient.js","sourceRoot":"","sources":["../../src/common/websocketClient.ts"],"names":[],"m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
30
30
|
|
|
31
|
-
When a
|
|
31
|
+
When a User Story is completed, guide user to create a merge request
|
|
32
32
|
|
|
33
33
|
# dataTreeExport
|
|
34
34
|
|
|
@@ -84,7 +84,7 @@ Filter according to Name criteria
|
|
|
84
84
|
|
|
85
85
|
# newWorkTask
|
|
86
86
|
|
|
87
|
-
New
|
|
87
|
+
New User Story
|
|
88
88
|
|
|
89
89
|
# orgFreezeUser
|
|
90
90
|
|
package/oclif.manifest.json
CHANGED
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
"hardis:work:new": {
|
|
3915
3915
|
"aliases": [],
|
|
3916
3916
|
"args": {},
|
|
3917
|
-
"description": "\n## Command Behavior\n\n**Assisted menu to start working on a Salesforce
|
|
3917
|
+
"description": "\n## Command Behavior\n\n**Assisted menu to start working on a Salesforce User Story, streamlining the setup of your development environment.**\n\nThis command guides you through the process of preparing your local environment and a Salesforce org for a new development or configuration based User Story. It automates several steps, ensuring consistency and adherence to project standards.\n\nKey features include:\n\n- **Git Branch Management:** Ensures your local Git repository is up-to-date with the target branch and creates a new Git branch with a formatted name based on your User Story details. Branch naming conventions can be customized via the `branchPrefixChoices` property in `.sfdx-hardis.yml`.\n- **Org Provisioning & Initialization:** Facilitates the creation and initialization of either a scratch org or a source-tracked sandbox. The configuration for org initialization (e.g., package installation, source push, permission set assignments, Apex script execution, data loading) can be defined in `config/.sfdx-hardis.yml- **Project-Specific Configuration:** Supports defining multiple target branches (`availableTargetBranches`) and projects (`availableProjects`) in `.sfdx-hardis.yml`, allowing for tailored User Stories workflows.\n- **User Story Name Validation:** Enforces User Story name formatting using `newTaskNameRegex` and provides examples via `newTaskNameRegexExample- **Shared Development Sandboxes:** Accounts for scenarios with shared development sandboxes, adjusting prompts to prevent accidental overwrites.\n\nAdvanced instructions are available in the [Create New User Story documentation](https://sfdx-hardis.cloudity.com/salesforce-ci-cd-create-new-task/).\n\n## Technical explanations\n\nThe command's logic orchestrates various underlying processes:\n\n- **Git Operations:** Utilizes `checkGitClean`, `ensureGitBranch`, `gitCheckOutRemote`, and `git().pull()` to manage Git repository state and branches.\n- **Interactive Prompts:** Leverages the `prompts` library to gather user input for User Story type, source types, and User Story names.\n- **Configuration Management:** Reads and applies project-specific configurations from `.sfdx-hardis.yml` using `getConfig` and `setConfig- **Org Initialization Utilities:** Calls a suite of utility functions for org setup, including `initApexScripts`, `initOrgData`, `initOrgMetadatas`, `initPermissionSetAssignments`, `installPackages`, and `makeSureOrgIsConnected- **Salesforce CLI Interaction:** Executes Salesforce CLI commands (e.g., `sf config set target-org`, `sf org open`, `sf project delete tracking`) via `execCommand` and `execSfdxJson- **Dynamic Org Selection:** Presents choices for scratch orgs or sandboxes based on project configuration and existing orgs, dynamically calling `ScratchCreate.run` or `SandboxCreate.run` as needed.\n- **WebSocket Communication:** Sends refresh status messages via `WebSocketClient.sendRefreshStatusMessage()` to update connected VS Code clients.\n",
|
|
3918
3918
|
"examples": [
|
|
3919
3919
|
"$ sf hardis:work:new"
|
|
3920
3920
|
],
|
|
@@ -3991,7 +3991,7 @@
|
|
|
3991
3991
|
"pluginType": "core",
|
|
3992
3992
|
"strict": true,
|
|
3993
3993
|
"enableJsonFlag": true,
|
|
3994
|
-
"title": "New
|
|
3994
|
+
"title": "New User Story",
|
|
3995
3995
|
"requiresProject": true,
|
|
3996
3996
|
"isESM": true,
|
|
3997
3997
|
"relativePath": [
|
|
@@ -4085,7 +4085,7 @@
|
|
|
4085
4085
|
"pluginType": "core",
|
|
4086
4086
|
"strict": true,
|
|
4087
4087
|
"enableJsonFlag": true,
|
|
4088
|
-
"title": "Refresh
|
|
4088
|
+
"title": "Refresh User Story branch",
|
|
4089
4089
|
"requiresProject": true,
|
|
4090
4090
|
"isESM": true,
|
|
4091
4091
|
"relativePath": [
|
|
@@ -4195,7 +4195,7 @@
|
|
|
4195
4195
|
"hardis:work:save": {
|
|
4196
4196
|
"aliases": [],
|
|
4197
4197
|
"args": {},
|
|
4198
|
-
"description": "\n## Command Behavior\n\n**Guides the user through the process of saving their work, preparing it for a Merge Request (also named Pull Request), and pushing changes to the remote Git repository.**\n\nThis command automates several critical steps involved in finalizing a development
|
|
4198
|
+
"description": "\n## Command Behavior\n\n**Guides the user through the process of saving their work, preparing it for a Merge Request (also named Pull Request), and pushing changes to the remote Git repository.**\n\nThis command automates several critical steps involved in finalizing a development User Story and integrating it into the main codebase. It ensures that your local changes are properly synchronized, cleaned, and committed before being pushed.\n\nKey functionalities include:\n\n- **Git Status Management:** Ensures a clean Git working directory by handling ongoing merges and unstaging files.\n- **Org Synchronization (Optional):** Prompts the user to pull the latest metadata updates from their scratch org or source-tracked sandbox, ensuring local files reflect the org's state.\n- **Package.xml Updates:** Automatically generates `package.xml` and `destructiveChanges.xml` files based on the Git delta between your current branch and the target branch, reflecting added, modified, and deleted metadata.\n- **Automated Source Cleaning:** Applies predefined cleaning operations to your local Salesforce sources, such as removing unwanted references, minimizing profiles, or cleaning XML files based on configurations in your `.sfdx-hardis.yml`.\n - `autoCleanTypes`: A list of automated source cleanings, configurable via [hardis:project:clean:references](${CONSTANTS.DOC_URL_ROOT}/hardis/project/clean/references/).\n - `autoRemoveUserPermissions`: A list of user permissions to automatically remove from profile metadata.\n- **Deployment Plan Generation:** Builds an automated deployment plan based on the updated `package.xml` and configured deployment splits.\n- **Commit and Push:** Guides the user to commit the changes and push them to the remote Git repository, optionally handling force pushes if a branch reset occurred.\n- **Merge Request Guidance:** Provides information and links to facilitate the creation of a merge request after the changes are pushed.\n\nExample `.sfdx-hardis.yml` configuration:\n\n```yaml\nautoCleanTypes:\n - checkPermissions\n - destructivechanges\n - datadotcom\n - minimizeProfiles\n - listViewsMine\nautoRemoveUserPermissions:\n - EnableCommunityAppLauncher\n - FieldServiceAccess\n - OmnichannelInventorySync\n - SendExternalEmailAvailable\n - UseOmnichannelInventoryAPIs\n - ViewDataLeakageEvents\n - ViewMLModels\n - ViewPlatformEvents\n - WorkCalibrationUser\n```\n\nAdvanced instructions are available in the [Publish a User Story documentation](${CONSTANTS.DOC_URL_ROOT}/salesforce-ci-cd-publish-task/).\n\n## Technical explanations\n\nThe command's technical implementation involves a series of orchestrated steps:\n\n- **Git Integration:** Extensively uses the `git` utility for status checks, adding files, committing, and pushing. It also leverages `sfdx-git-delta` for generating metadata differences between Git revisions.\n- **Interactive Prompts:** Employs the `prompts` library to interact with the user for decisions like pulling sources or pushing commits.\n- **Configuration Management:** Reads and updates project and user configurations using `getConfig` and `setConfig` to store preferences and deployment plans.\n- **Metadata Synchronization:** Calls `forceSourcePull` to retrieve metadata from the org and `callSfdxGitDelta` to generate `package.xml` and `destructiveChanges.xml` based on Git changes.\n- **XML Manipulation:** Utilizes `appendPackageXmlFilesContent`, `removePackageXmlFilesContent`, `parseXmlFile`, and `writeXmlFile` for modifying `package.xml` and `destructiveChanges.xml` files.\n- **Automated Cleaning:** Integrates with `CleanReferences.run` and `CleanXml.run` commands to perform automated cleaning operations on the Salesforce source files.\n- **Deployment Plan Building:** Dynamically constructs a deployment plan by analyzing the `package.xml` content and applying configured deployment splits.\n- **WebSocket Communication:** Uses `WebSocketClient.sendRefreshStatusMessage` to notify connected VS Code clients about status updates.\n- **External Tool Integration:** Requires the `sfdx-git-delta` plugin to be installed for its core functionality.\n",
|
|
4199
4199
|
"examples": [
|
|
4200
4200
|
"$ sf hardis:work:task:save",
|
|
4201
4201
|
"$ sf hardis:work:task:save --nopull --nogit --noclean"
|
|
@@ -4294,7 +4294,7 @@
|
|
|
4294
4294
|
"pluginType": "core",
|
|
4295
4295
|
"strict": true,
|
|
4296
4296
|
"enableJsonFlag": true,
|
|
4297
|
-
"title": "Save
|
|
4297
|
+
"title": "Save User Story",
|
|
4298
4298
|
"requiresProject": true,
|
|
4299
4299
|
"requiresSfdxPlugins": [
|
|
4300
4300
|
"sfdx-git-delta"
|
|
@@ -7973,6 +7973,126 @@
|
|
|
7973
7973
|
"packageconfig:retrieve:org:hardis"
|
|
7974
7974
|
]
|
|
7975
7975
|
},
|
|
7976
|
+
"hardis:org:test:apex": {
|
|
7977
|
+
"aliases": [],
|
|
7978
|
+
"args": {},
|
|
7979
|
+
"description": "Run apex tests in Salesforce org\n\nIf following configuration is defined, it will fail if apex coverage target is not reached:\n\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n\nYou can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-apex-tests/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
7980
|
+
"examples": [
|
|
7981
|
+
"$ sf hardis:org:test:apex"
|
|
7982
|
+
],
|
|
7983
|
+
"flags": {
|
|
7984
|
+
"json": {
|
|
7985
|
+
"description": "Format output as json.",
|
|
7986
|
+
"helpGroup": "GLOBAL",
|
|
7987
|
+
"name": "json",
|
|
7988
|
+
"allowNo": false,
|
|
7989
|
+
"type": "boolean"
|
|
7990
|
+
},
|
|
7991
|
+
"flags-dir": {
|
|
7992
|
+
"helpGroup": "GLOBAL",
|
|
7993
|
+
"name": "flags-dir",
|
|
7994
|
+
"summary": "Import flag values from a directory.",
|
|
7995
|
+
"hasDynamicHelp": false,
|
|
7996
|
+
"multiple": false,
|
|
7997
|
+
"type": "option"
|
|
7998
|
+
},
|
|
7999
|
+
"testlevel": {
|
|
8000
|
+
"char": "l",
|
|
8001
|
+
"description": "Level of tests to apply to validate deployment",
|
|
8002
|
+
"name": "testlevel",
|
|
8003
|
+
"default": "RunLocalTests",
|
|
8004
|
+
"hasDynamicHelp": false,
|
|
8005
|
+
"multiple": false,
|
|
8006
|
+
"options": [
|
|
8007
|
+
"NoTestRun",
|
|
8008
|
+
"RunSpecifiedTests",
|
|
8009
|
+
"RunLocalTests",
|
|
8010
|
+
"RunAllTestsInOrg"
|
|
8011
|
+
],
|
|
8012
|
+
"type": "option"
|
|
8013
|
+
},
|
|
8014
|
+
"debug": {
|
|
8015
|
+
"char": "d",
|
|
8016
|
+
"description": "Activate debug mode (more logs)",
|
|
8017
|
+
"name": "debug",
|
|
8018
|
+
"allowNo": false,
|
|
8019
|
+
"type": "boolean"
|
|
8020
|
+
},
|
|
8021
|
+
"websocket": {
|
|
8022
|
+
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8023
|
+
"name": "websocket",
|
|
8024
|
+
"hasDynamicHelp": false,
|
|
8025
|
+
"multiple": false,
|
|
8026
|
+
"type": "option"
|
|
8027
|
+
},
|
|
8028
|
+
"skipauth": {
|
|
8029
|
+
"description": "Skip authentication check when a default username is required",
|
|
8030
|
+
"name": "skipauth",
|
|
8031
|
+
"allowNo": false,
|
|
8032
|
+
"type": "boolean"
|
|
8033
|
+
},
|
|
8034
|
+
"target-org": {
|
|
8035
|
+
"aliases": [
|
|
8036
|
+
"targetusername",
|
|
8037
|
+
"u"
|
|
8038
|
+
],
|
|
8039
|
+
"char": "o",
|
|
8040
|
+
"deprecateAliases": true,
|
|
8041
|
+
"name": "target-org",
|
|
8042
|
+
"noCacheDefault": true,
|
|
8043
|
+
"required": true,
|
|
8044
|
+
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8045
|
+
"hasDynamicHelp": true,
|
|
8046
|
+
"multiple": false,
|
|
8047
|
+
"type": "option"
|
|
8048
|
+
}
|
|
8049
|
+
},
|
|
8050
|
+
"hasDynamicHelp": true,
|
|
8051
|
+
"hiddenAliases": [],
|
|
8052
|
+
"id": "hardis:org:test:apex",
|
|
8053
|
+
"pluginAlias": "sfdx-hardis",
|
|
8054
|
+
"pluginName": "sfdx-hardis",
|
|
8055
|
+
"pluginType": "core",
|
|
8056
|
+
"strict": true,
|
|
8057
|
+
"enableJsonFlag": true,
|
|
8058
|
+
"title": "Run apex tests",
|
|
8059
|
+
"isESM": true,
|
|
8060
|
+
"relativePath": [
|
|
8061
|
+
"lib",
|
|
8062
|
+
"commands",
|
|
8063
|
+
"hardis",
|
|
8064
|
+
"org",
|
|
8065
|
+
"test",
|
|
8066
|
+
"apex.js"
|
|
8067
|
+
],
|
|
8068
|
+
"aliasPermutations": [],
|
|
8069
|
+
"permutations": [
|
|
8070
|
+
"hardis:org:test:apex",
|
|
8071
|
+
"org:hardis:test:apex",
|
|
8072
|
+
"org:test:hardis:apex",
|
|
8073
|
+
"org:test:apex:hardis",
|
|
8074
|
+
"hardis:test:org:apex",
|
|
8075
|
+
"test:hardis:org:apex",
|
|
8076
|
+
"test:org:hardis:apex",
|
|
8077
|
+
"test:org:apex:hardis",
|
|
8078
|
+
"hardis:test:apex:org",
|
|
8079
|
+
"test:hardis:apex:org",
|
|
8080
|
+
"test:apex:hardis:org",
|
|
8081
|
+
"test:apex:org:hardis",
|
|
8082
|
+
"hardis:org:apex:test",
|
|
8083
|
+
"org:hardis:apex:test",
|
|
8084
|
+
"org:apex:hardis:test",
|
|
8085
|
+
"org:apex:test:hardis",
|
|
8086
|
+
"hardis:apex:org:test",
|
|
8087
|
+
"apex:hardis:org:test",
|
|
8088
|
+
"apex:org:hardis:test",
|
|
8089
|
+
"apex:org:test:hardis",
|
|
8090
|
+
"hardis:apex:test:org",
|
|
8091
|
+
"apex:hardis:test:org",
|
|
8092
|
+
"apex:test:hardis:org",
|
|
8093
|
+
"apex:test:org:hardis"
|
|
8094
|
+
]
|
|
8095
|
+
},
|
|
7976
8096
|
"hardis:org:user:activateinvalid": {
|
|
7977
8097
|
"aliases": [],
|
|
7978
8098
|
"args": {},
|
|
@@ -8373,126 +8493,6 @@
|
|
|
8373
8493
|
"unfreeze:user:org:hardis"
|
|
8374
8494
|
]
|
|
8375
8495
|
},
|
|
8376
|
-
"hardis:org:test:apex": {
|
|
8377
|
-
"aliases": [],
|
|
8378
|
-
"args": {},
|
|
8379
|
-
"description": "Run apex tests in Salesforce org\n\nIf following configuration is defined, it will fail if apex coverage target is not reached:\n\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n- Env `APEX_TESTS_MIN_COVERAGE_ORG_WIDE` or `.sfdx-hardis` property `apexTestsMinCoverageOrgWide`\n\nYou can override env var SFDX_TEST_WAIT_MINUTES to wait more than 60 minutes.\n\nThis command is part of [sfdx-hardis Monitoring](https://sfdx-hardis.cloudity.com/salesforce-monitoring-apex-tests/) and can output Grafana, Slack and MsTeams Notifications.\n",
|
|
8380
|
-
"examples": [
|
|
8381
|
-
"$ sf hardis:org:test:apex"
|
|
8382
|
-
],
|
|
8383
|
-
"flags": {
|
|
8384
|
-
"json": {
|
|
8385
|
-
"description": "Format output as json.",
|
|
8386
|
-
"helpGroup": "GLOBAL",
|
|
8387
|
-
"name": "json",
|
|
8388
|
-
"allowNo": false,
|
|
8389
|
-
"type": "boolean"
|
|
8390
|
-
},
|
|
8391
|
-
"flags-dir": {
|
|
8392
|
-
"helpGroup": "GLOBAL",
|
|
8393
|
-
"name": "flags-dir",
|
|
8394
|
-
"summary": "Import flag values from a directory.",
|
|
8395
|
-
"hasDynamicHelp": false,
|
|
8396
|
-
"multiple": false,
|
|
8397
|
-
"type": "option"
|
|
8398
|
-
},
|
|
8399
|
-
"testlevel": {
|
|
8400
|
-
"char": "l",
|
|
8401
|
-
"description": "Level of tests to apply to validate deployment",
|
|
8402
|
-
"name": "testlevel",
|
|
8403
|
-
"default": "RunLocalTests",
|
|
8404
|
-
"hasDynamicHelp": false,
|
|
8405
|
-
"multiple": false,
|
|
8406
|
-
"options": [
|
|
8407
|
-
"NoTestRun",
|
|
8408
|
-
"RunSpecifiedTests",
|
|
8409
|
-
"RunLocalTests",
|
|
8410
|
-
"RunAllTestsInOrg"
|
|
8411
|
-
],
|
|
8412
|
-
"type": "option"
|
|
8413
|
-
},
|
|
8414
|
-
"debug": {
|
|
8415
|
-
"char": "d",
|
|
8416
|
-
"description": "Activate debug mode (more logs)",
|
|
8417
|
-
"name": "debug",
|
|
8418
|
-
"allowNo": false,
|
|
8419
|
-
"type": "boolean"
|
|
8420
|
-
},
|
|
8421
|
-
"websocket": {
|
|
8422
|
-
"description": "Websocket host:port for VsCode SFDX Hardis UI integration",
|
|
8423
|
-
"name": "websocket",
|
|
8424
|
-
"hasDynamicHelp": false,
|
|
8425
|
-
"multiple": false,
|
|
8426
|
-
"type": "option"
|
|
8427
|
-
},
|
|
8428
|
-
"skipauth": {
|
|
8429
|
-
"description": "Skip authentication check when a default username is required",
|
|
8430
|
-
"name": "skipauth",
|
|
8431
|
-
"allowNo": false,
|
|
8432
|
-
"type": "boolean"
|
|
8433
|
-
},
|
|
8434
|
-
"target-org": {
|
|
8435
|
-
"aliases": [
|
|
8436
|
-
"targetusername",
|
|
8437
|
-
"u"
|
|
8438
|
-
],
|
|
8439
|
-
"char": "o",
|
|
8440
|
-
"deprecateAliases": true,
|
|
8441
|
-
"name": "target-org",
|
|
8442
|
-
"noCacheDefault": true,
|
|
8443
|
-
"required": true,
|
|
8444
|
-
"summary": "Username or alias of the target org. Not required if the `target-org` configuration variable is already set.",
|
|
8445
|
-
"hasDynamicHelp": true,
|
|
8446
|
-
"multiple": false,
|
|
8447
|
-
"type": "option"
|
|
8448
|
-
}
|
|
8449
|
-
},
|
|
8450
|
-
"hasDynamicHelp": true,
|
|
8451
|
-
"hiddenAliases": [],
|
|
8452
|
-
"id": "hardis:org:test:apex",
|
|
8453
|
-
"pluginAlias": "sfdx-hardis",
|
|
8454
|
-
"pluginName": "sfdx-hardis",
|
|
8455
|
-
"pluginType": "core",
|
|
8456
|
-
"strict": true,
|
|
8457
|
-
"enableJsonFlag": true,
|
|
8458
|
-
"title": "Run apex tests",
|
|
8459
|
-
"isESM": true,
|
|
8460
|
-
"relativePath": [
|
|
8461
|
-
"lib",
|
|
8462
|
-
"commands",
|
|
8463
|
-
"hardis",
|
|
8464
|
-
"org",
|
|
8465
|
-
"test",
|
|
8466
|
-
"apex.js"
|
|
8467
|
-
],
|
|
8468
|
-
"aliasPermutations": [],
|
|
8469
|
-
"permutations": [
|
|
8470
|
-
"hardis:org:test:apex",
|
|
8471
|
-
"org:hardis:test:apex",
|
|
8472
|
-
"org:test:hardis:apex",
|
|
8473
|
-
"org:test:apex:hardis",
|
|
8474
|
-
"hardis:test:org:apex",
|
|
8475
|
-
"test:hardis:org:apex",
|
|
8476
|
-
"test:org:hardis:apex",
|
|
8477
|
-
"test:org:apex:hardis",
|
|
8478
|
-
"hardis:test:apex:org",
|
|
8479
|
-
"test:hardis:apex:org",
|
|
8480
|
-
"test:apex:hardis:org",
|
|
8481
|
-
"test:apex:org:hardis",
|
|
8482
|
-
"hardis:org:apex:test",
|
|
8483
|
-
"org:hardis:apex:test",
|
|
8484
|
-
"org:apex:hardis:test",
|
|
8485
|
-
"org:apex:test:hardis",
|
|
8486
|
-
"hardis:apex:org:test",
|
|
8487
|
-
"apex:hardis:org:test",
|
|
8488
|
-
"apex:org:hardis:test",
|
|
8489
|
-
"apex:org:test:hardis",
|
|
8490
|
-
"hardis:apex:test:org",
|
|
8491
|
-
"apex:hardis:test:org",
|
|
8492
|
-
"apex:test:hardis:org",
|
|
8493
|
-
"apex:test:org:hardis"
|
|
8494
|
-
]
|
|
8495
|
-
},
|
|
8496
8496
|
"hardis:package:version:create": {
|
|
8497
8497
|
"aliases": [],
|
|
8498
8498
|
"args": {},
|
|
@@ -14849,5 +14849,5 @@
|
|
|
14849
14849
|
]
|
|
14850
14850
|
}
|
|
14851
14851
|
},
|
|
14852
|
-
"version": "6.0.2-
|
|
14852
|
+
"version": "6.0.2-beta202508111351.0"
|
|
14853
14853
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Swiss-army-knife Toolbox for Salesforce.\n Allows you to define a complete CD/CD Pipeline.\n Orchestrate base commands and assist users with interactive wizards",
|
|
4
4
|
"author": "NicolasVuillamy @nvuillam",
|
|
5
5
|
"bugs": "https://github.com/hardisgroupcom/sfdx-hardis/issues",
|
|
6
|
-
"version": "6.0.2-
|
|
6
|
+
"version": "6.0.2-beta202508111351.0",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@actions/github": "^6.0.1",
|
|
9
9
|
"@cparra/apexdocs": "^3.14.0",
|