@simplysf/simply-cicd 0.23.0 → 0.24.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.
Files changed (244) hide show
  1. package/README.md +40 -39
  2. package/lib/commands/simply/cicd/build/check-permission-sets.d.ts +1 -1
  3. package/lib/commands/simply/cicd/build/check-permission-sets.js +1 -1
  4. package/lib/commands/simply/cicd/build/check-permission-sets.js.map +1 -1
  5. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js +1 -2
  6. package/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js.map +1 -1
  7. package/lib/commands/simply/cicd/build/create-fallback-tag.d.ts +1 -1
  8. package/lib/commands/simply/cicd/build/create-fallback-tag.js +1 -3
  9. package/lib/commands/simply/cicd/build/create-fallback-tag.js.map +1 -1
  10. package/lib/commands/simply/cicd/build/create-package-version.js +1 -3
  11. package/lib/commands/simply/cicd/build/create-package-version.js.map +1 -1
  12. package/lib/commands/simply/cicd/build/create-scratch.d.ts +1 -1
  13. package/lib/commands/simply/cicd/build/create-scratch.js +1 -3
  14. package/lib/commands/simply/cicd/build/create-scratch.js.map +1 -1
  15. package/lib/commands/simply/cicd/build/delete-scratch.js +1 -3
  16. package/lib/commands/simply/cicd/build/delete-scratch.js.map +1 -1
  17. package/lib/commands/simply/cicd/build/determine-package-changes.js +1 -2
  18. package/lib/commands/simply/cicd/build/determine-package-changes.js.map +1 -1
  19. package/lib/commands/simply/cicd/build/generate-flexipage-diff.d.ts +1 -1
  20. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js +1 -1
  21. package/lib/commands/simply/cicd/build/generate-flexipage-diff.js.map +1 -1
  22. package/lib/commands/simply/cicd/build/generate-flow-diff.d.ts +1 -1
  23. package/lib/commands/simply/cicd/build/generate-flow-diff.js +1 -1
  24. package/lib/commands/simply/cicd/build/generate-flow-diff.js.map +1 -1
  25. package/lib/commands/simply/cicd/build/install-dependencies.js +1 -3
  26. package/lib/commands/simply/cicd/build/install-dependencies.js.map +1 -1
  27. package/lib/commands/simply/cicd/build/lwc-jest.d.ts +1 -1
  28. package/lib/commands/simply/cicd/build/lwc-jest.js +1 -1
  29. package/lib/commands/simply/cicd/build/lwc-jest.js.map +1 -1
  30. package/lib/commands/simply/cicd/build/publish-utam-page-objects.d.ts +1 -1
  31. package/lib/commands/simply/cicd/build/publish-utam-page-objects.js +1 -1
  32. package/lib/commands/simply/cicd/build/publish-utam-page-objects.js.map +1 -1
  33. package/lib/commands/simply/cicd/build/push-scratch.js +1 -3
  34. package/lib/commands/simply/cicd/build/push-scratch.js.map +1 -1
  35. package/lib/commands/simply/cicd/build/test-scratch.js +1 -3
  36. package/lib/commands/simply/cicd/build/test-scratch.js.map +1 -1
  37. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js +2 -2
  38. package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js.map +1 -1
  39. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js +1 -1
  40. package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js.map +1 -1
  41. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js +1 -1
  42. package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js.map +1 -1
  43. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js +2 -2
  44. package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js.map +1 -1
  45. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js +2 -2
  46. package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js.map +1 -1
  47. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js +2 -2
  48. package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js.map +1 -1
  49. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js +1 -1
  50. package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js.map +1 -1
  51. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js +1 -1
  52. package/lib/commands/simply/cicd/deploy/happy-soup/validate.js.map +1 -1
  53. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js +2 -2
  54. package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js.map +1 -1
  55. package/lib/commands/simply/cicd/deploy/project/install-packaged.js +1 -1
  56. package/lib/commands/simply/cicd/deploy/project/install-packaged.js.map +1 -1
  57. package/lib/commands/simply/cicd/deploy/project/post-deploy.js +2 -2
  58. package/lib/commands/simply/cicd/deploy/project/post-deploy.js.map +1 -1
  59. package/lib/commands/simply/cicd/deploy/project/post-destructive.js +2 -2
  60. package/lib/commands/simply/cicd/deploy/project/post-destructive.js.map +1 -1
  61. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js +2 -2
  62. package/lib/commands/simply/cicd/deploy/project/pre-destructive.js.map +1 -1
  63. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js +1 -1
  64. package/lib/commands/simply/cicd/deploy/project/run-apex-tests.js.map +1 -1
  65. package/lib/commands/simply/cicd/deploy/project/validate.js +1 -1
  66. package/lib/commands/simply/cicd/deploy/project/validate.js.map +1 -1
  67. package/lib/commands/simply/cicd/deploy/validate.js +1 -1
  68. package/lib/commands/simply/cicd/deploy/validate.js.map +1 -1
  69. package/lib/commands/simply/cicd/notify/build.d.ts +2 -3
  70. package/lib/commands/simply/cicd/notify/build.js +1 -3
  71. package/lib/commands/simply/cicd/notify/build.js.map +1 -1
  72. package/lib/commands/simply/cicd/notify/happy-soup.d.ts +2 -3
  73. package/lib/commands/simply/cicd/notify/happy-soup.js +4 -6
  74. package/lib/commands/simply/cicd/notify/happy-soup.js.map +1 -1
  75. package/lib/commands/simply/cicd/notify/project.d.ts +1 -2
  76. package/lib/commands/simply/cicd/notify/project.js +3 -5
  77. package/lib/commands/simply/cicd/notify/project.js.map +1 -1
  78. package/lib/commands/simply/cicd/notify/teams.js +1 -2
  79. package/lib/commands/simply/cicd/notify/teams.js.map +1 -1
  80. package/lib/commands/simply/cicd/sfdx-dependabot.d.ts +1 -2
  81. package/lib/commands/simply/cicd/sfdx-dependabot.js +1 -4
  82. package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -1
  83. package/lib/common/deploy/stageCommand.d.ts +0 -49
  84. package/lib/common/deploy/stageCommand.js +0 -54
  85. package/lib/common/deploy/stageCommand.js.map +1 -1
  86. package/messages/simply.cicd.build.create-scratch.md +1 -1
  87. package/oclif.manifest.json +2 -2
  88. package/package.json +3 -12
  89. package/lib/common/build/checkPermissionSets.d.ts +0 -22
  90. package/lib/common/build/checkPermissionSets.js +0 -102
  91. package/lib/common/build/checkPermissionSets.js.map +0 -1
  92. package/lib/common/build/cleanupScratchOrgs.d.ts +0 -6
  93. package/lib/common/build/cleanupScratchOrgs.js +0 -91
  94. package/lib/common/build/cleanupScratchOrgs.js.map +0 -1
  95. package/lib/common/build/createFallbackTag.d.ts +0 -24
  96. package/lib/common/build/createFallbackTag.js +0 -147
  97. package/lib/common/build/createFallbackTag.js.map +0 -1
  98. package/lib/common/build/createPackageVersion.d.ts +0 -42
  99. package/lib/common/build/createPackageVersion.js +0 -198
  100. package/lib/common/build/createPackageVersion.js.map +0 -1
  101. package/lib/common/build/createScratchOrg.d.ts +0 -14
  102. package/lib/common/build/createScratchOrg.js +0 -192
  103. package/lib/common/build/createScratchOrg.js.map +0 -1
  104. package/lib/common/build/deleteScratchOrg.d.ts +0 -13
  105. package/lib/common/build/deleteScratchOrg.js +0 -62
  106. package/lib/common/build/deleteScratchOrg.js.map +0 -1
  107. package/lib/common/build/deltaRunner.d.ts +0 -73
  108. package/lib/common/build/deltaRunner.js +0 -109
  109. package/lib/common/build/deltaRunner.js.map +0 -1
  110. package/lib/common/build/determinePackageChanges.d.ts +0 -11
  111. package/lib/common/build/determinePackageChanges.js +0 -90
  112. package/lib/common/build/determinePackageChanges.js.map +0 -1
  113. package/lib/common/build/devHubs.d.ts +0 -12
  114. package/lib/common/build/devHubs.js +0 -42
  115. package/lib/common/build/devHubs.js.map +0 -1
  116. package/lib/common/build/flexipageDelta.d.ts +0 -18
  117. package/lib/common/build/flexipageDelta.js +0 -35
  118. package/lib/common/build/flexipageDelta.js.map +0 -1
  119. package/lib/common/build/flowDelta.d.ts +0 -17
  120. package/lib/common/build/flowDelta.js +0 -34
  121. package/lib/common/build/flowDelta.js.map +0 -1
  122. package/lib/common/build/installDependencies.d.ts +0 -10
  123. package/lib/common/build/installDependencies.js +0 -39
  124. package/lib/common/build/installDependencies.js.map +0 -1
  125. package/lib/common/build/lwcJest.d.ts +0 -25
  126. package/lib/common/build/lwcJest.js +0 -126
  127. package/lib/common/build/lwcJest.js.map +0 -1
  128. package/lib/common/build/publishUtamPageObjects.d.ts +0 -50
  129. package/lib/common/build/publishUtamPageObjects.js +0 -283
  130. package/lib/common/build/publishUtamPageObjects.js.map +0 -1
  131. package/lib/common/build/pushScratch.d.ts +0 -9
  132. package/lib/common/build/pushScratch.js +0 -60
  133. package/lib/common/build/pushScratch.js.map +0 -1
  134. package/lib/common/build/scratchOrgAuth.d.ts +0 -18
  135. package/lib/common/build/scratchOrgAuth.js +0 -52
  136. package/lib/common/build/scratchOrgAuth.js.map +0 -1
  137. package/lib/common/build/scratchOrgInfo.d.ts +0 -14
  138. package/lib/common/build/scratchOrgInfo.js +0 -21
  139. package/lib/common/build/scratchOrgInfo.js.map +0 -1
  140. package/lib/common/build/skipGuard.d.ts +0 -8
  141. package/lib/common/build/skipGuard.js +0 -42
  142. package/lib/common/build/skipGuard.js.map +0 -1
  143. package/lib/common/build/testScratch.d.ts +0 -15
  144. package/lib/common/build/testScratch.js +0 -42
  145. package/lib/common/build/testScratch.js.map +0 -1
  146. package/lib/common/build/utamPageObjects.d.ts +0 -143
  147. package/lib/common/build/utamPageObjects.js +0 -245
  148. package/lib/common/build/utamPageObjects.js.map +0 -1
  149. package/lib/common/build/versionTagFormat.d.ts +0 -57
  150. package/lib/common/build/versionTagFormat.js +0 -194
  151. package/lib/common/build/versionTagFormat.js.map +0 -1
  152. package/lib/common/deploy/deployCommon.d.ts +0 -105
  153. package/lib/common/deploy/deployCommon.js +0 -358
  154. package/lib/common/deploy/deployCommon.js.map +0 -1
  155. package/lib/common/deploy/deployHappySoup.d.ts +0 -56
  156. package/lib/common/deploy/deployHappySoup.js +0 -160
  157. package/lib/common/deploy/deployHappySoup.js.map +0 -1
  158. package/lib/common/deploy/deployProject.d.ts +0 -27
  159. package/lib/common/deploy/deployProject.js +0 -114
  160. package/lib/common/deploy/deployProject.js.map +0 -1
  161. package/lib/common/deploy/runDeployStage.d.ts +0 -16
  162. package/lib/common/deploy/runDeployStage.js +0 -65
  163. package/lib/common/deploy/runDeployStage.js.map +0 -1
  164. package/lib/common/deploy/validate.d.ts +0 -11
  165. package/lib/common/deploy/validate.js +0 -54
  166. package/lib/common/deploy/validate.js.map +0 -1
  167. package/lib/common/env.d.ts +0 -9
  168. package/lib/common/env.js +0 -47
  169. package/lib/common/env.js.map +0 -1
  170. package/lib/common/exec/sfCli.d.ts +0 -27
  171. package/lib/common/exec/sfCli.js +0 -50
  172. package/lib/common/exec/sfCli.js.map +0 -1
  173. package/lib/common/flags/env.d.ts +0 -44
  174. package/lib/common/flags/env.js +0 -81
  175. package/lib/common/flags/env.js.map +0 -1
  176. package/lib/common/git.d.ts +0 -32
  177. package/lib/common/git.js +0 -106
  178. package/lib/common/git.js.map +0 -1
  179. package/lib/common/happySoup/resolveOriginProject.d.ts +0 -22
  180. package/lib/common/happySoup/resolveOriginProject.js +0 -61
  181. package/lib/common/happySoup/resolveOriginProject.js.map +0 -1
  182. package/lib/common/logger.d.ts +0 -10
  183. package/lib/common/logger.js +0 -33
  184. package/lib/common/logger.js.map +0 -1
  185. package/lib/common/notify/buildNotification.d.ts +0 -53
  186. package/lib/common/notify/buildNotification.js +0 -176
  187. package/lib/common/notify/buildNotification.js.map +0 -1
  188. package/lib/common/notify/getCommitStories.d.ts +0 -30
  189. package/lib/common/notify/getCommitStories.js +0 -70
  190. package/lib/common/notify/getCommitStories.js.map +0 -1
  191. package/lib/common/notify/getRemoteCommitStories.d.ts +0 -10
  192. package/lib/common/notify/getRemoteCommitStories.js +0 -45
  193. package/lib/common/notify/getRemoteCommitStories.js.map +0 -1
  194. package/lib/common/notify/happySoupNotification.d.ts +0 -26
  195. package/lib/common/notify/happySoupNotification.js +0 -139
  196. package/lib/common/notify/happySoupNotification.js.map +0 -1
  197. package/lib/common/notify/projectNotification.d.ts +0 -46
  198. package/lib/common/notify/projectNotification.js +0 -177
  199. package/lib/common/notify/projectNotification.js.map +0 -1
  200. package/lib/common/notify/renderTemplate.d.ts +0 -3
  201. package/lib/common/notify/renderTemplate.js +0 -24
  202. package/lib/common/notify/renderTemplate.js.map +0 -1
  203. package/lib/common/notify/sendNotification.d.ts +0 -2
  204. package/lib/common/notify/sendNotification.js +0 -50
  205. package/lib/common/notify/sendNotification.js.map +0 -1
  206. package/lib/common/notify/templates.d.ts +0 -13
  207. package/lib/common/notify/templates.js +0 -118
  208. package/lib/common/notify/templates.js.map +0 -1
  209. package/lib/common/schemas/deployConfig.d.ts +0 -25
  210. package/lib/common/schemas/deployConfig.js +0 -55
  211. package/lib/common/schemas/deployConfig.js.map +0 -1
  212. package/lib/common/schemas/deployProgress.d.ts +0 -33
  213. package/lib/common/schemas/deployProgress.js +0 -46
  214. package/lib/common/schemas/deployProgress.js.map +0 -1
  215. package/lib/common/schemas/deployRules.d.ts +0 -34
  216. package/lib/common/schemas/deployRules.js +0 -40
  217. package/lib/common/schemas/deployRules.js.map +0 -1
  218. package/lib/common/sfApex.d.ts +0 -22
  219. package/lib/common/sfApex.js +0 -169
  220. package/lib/common/sfApex.js.map +0 -1
  221. package/lib/common/sfAuth.d.ts +0 -19
  222. package/lib/common/sfAuth.js +0 -78
  223. package/lib/common/sfAuth.js.map +0 -1
  224. package/lib/common/sfConfig.d.ts +0 -23
  225. package/lib/common/sfConfig.js +0 -82
  226. package/lib/common/sfConfig.js.map +0 -1
  227. package/lib/common/sfPackages.d.ts +0 -31
  228. package/lib/common/sfPackages.js +0 -143
  229. package/lib/common/sfPackages.js.map +0 -1
  230. package/lib/common/sfPlugins.d.ts +0 -11
  231. package/lib/common/sfPlugins.js +0 -134
  232. package/lib/common/sfPlugins.js.map +0 -1
  233. package/lib/common/sfdxDependabot/dependabotRun.d.ts +0 -95
  234. package/lib/common/sfdxDependabot/dependabotRun.js +0 -287
  235. package/lib/common/sfdxDependabot/dependabotRun.js.map +0 -1
  236. package/lib/common/sfdxDependabot/updater.d.ts +0 -14
  237. package/lib/common/sfdxDependabot/updater.js +0 -94
  238. package/lib/common/sfdxDependabot/updater.js.map +0 -1
  239. package/lib/config/defaultDeploymentPlugins.d.ts +0 -2
  240. package/lib/config/defaultDeploymentPlugins.js +0 -18
  241. package/lib/config/defaultDeploymentPlugins.js.map +0 -1
  242. package/lib/config/trustedPlugins.d.ts +0 -2
  243. package/lib/config/trustedPlugins.js +0 -18
  244. package/lib/config/trustedPlugins.js.map +0 -1
@@ -1,18 +0,0 @@
1
- import { type GenerateDiffOptions, type GenerateDiffResult, type RunDeltaOptions } from './deltaRunner.js';
2
- export type RunFlexipageDeltaOptions = RunDeltaOptions;
3
- export type GenerateFlexipageDiffOptions = GenerateDiffOptions;
4
- export type GenerateFlexipageDiffResult = GenerateDiffResult;
5
- /**
6
- * Runs the upstream `flexipage-delta` binary over the commit range, then the reporter binary for
7
- * the selected VCS platform. Does not catch its own errors; callers decide how to handle them.
8
- */
9
- export declare function runFlexipageDelta(options: RunFlexipageDeltaOptions): Promise<void>;
10
- /**
11
- * Action-handler wrapper around `runFlexipageDelta`: checks the job-level skip flag, then runs the
12
- * flexipage delta and logs (rather than throws) on failure, since a diff-posting step shouldn't
13
- * fail the build.
14
- *
15
- * Fixes a bug from the original: the CLI wired its skip flag as `--disabled`, but this function
16
- * checked `options.disableFlexipageDiff` — a property nothing ever set — so `--disabled` was a no-op.
17
- */
18
- export declare function generateFlexipageDiff(options: GenerateFlexipageDiffOptions): Promise<GenerateFlexipageDiffResult>;
@@ -1,35 +0,0 @@
1
- /*
2
- * Copyright (c) 2026, SimplySF.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { FLEXIPAGE_DELTA, generateDiff, runDelta, } from './deltaRunner.js';
17
- /**
18
- * Runs the upstream `flexipage-delta` binary over the commit range, then the reporter binary for
19
- * the selected VCS platform. Does not catch its own errors; callers decide how to handle them.
20
- */
21
- export async function runFlexipageDelta(options) {
22
- return runDelta(FLEXIPAGE_DELTA, options);
23
- }
24
- /**
25
- * Action-handler wrapper around `runFlexipageDelta`: checks the job-level skip flag, then runs the
26
- * flexipage delta and logs (rather than throws) on failure, since a diff-posting step shouldn't
27
- * fail the build.
28
- *
29
- * Fixes a bug from the original: the CLI wired its skip flag as `--disabled`, but this function
30
- * checked `options.disableFlexipageDiff` — a property nothing ever set — so `--disabled` was a no-op.
31
- */
32
- export async function generateFlexipageDiff(options) {
33
- return generateDiff(FLEXIPAGE_DELTA, options);
34
- }
35
- //# sourceMappingURL=flexipageDelta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flexipageDelta.js","sourceRoot":"","sources":["../../../src/common/build/flexipageDelta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EACf,YAAY,EACZ,QAAQ,GAIT,MAAM,kBAAkB,CAAC;AAM1B;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAAiC;IACvE,OAAO,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAC5C,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,OAAqC;IAErC,OAAO,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAChD,CAAC"}
@@ -1,17 +0,0 @@
1
- import { type GenerateDiffOptions, type GenerateDiffResult, type RunDeltaOptions } from './deltaRunner.js';
2
- export type RunFlowDeltaOptions = RunDeltaOptions;
3
- export type GenerateFlowDiffOptions = GenerateDiffOptions;
4
- export type GenerateFlowDiffResult = GenerateDiffResult;
5
- /**
6
- * Runs the upstream `flow-delta` binary over the commit range, then the reporter binary for the
7
- * selected VCS platform. Does not catch its own errors; callers decide how to handle them.
8
- */
9
- export declare function runFlowDelta(options: RunFlowDeltaOptions): Promise<void>;
10
- /**
11
- * Action-handler wrapper around `runFlowDelta`: checks the job-level skip flag, then runs the flow
12
- * delta and logs (rather than throws) on failure, since a diff-posting step shouldn't fail the build.
13
- *
14
- * Fixes a bug from the original: the CLI wired its skip flag as `--disabled`, but this function
15
- * checked `options.disableFlowDiff` — a property nothing ever set — so `--disabled` was a no-op.
16
- */
17
- export declare function generateFlowDiff(options: GenerateFlowDiffOptions): Promise<GenerateFlowDiffResult>;
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright (c) 2026, SimplySF.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { FLOW_DELTA, generateDiff, runDelta, } from './deltaRunner.js';
17
- /**
18
- * Runs the upstream `flow-delta` binary over the commit range, then the reporter binary for the
19
- * selected VCS platform. Does not catch its own errors; callers decide how to handle them.
20
- */
21
- export async function runFlowDelta(options) {
22
- return runDelta(FLOW_DELTA, options);
23
- }
24
- /**
25
- * Action-handler wrapper around `runFlowDelta`: checks the job-level skip flag, then runs the flow
26
- * delta and logs (rather than throws) on failure, since a diff-posting step shouldn't fail the build.
27
- *
28
- * Fixes a bug from the original: the CLI wired its skip flag as `--disabled`, but this function
29
- * checked `options.disableFlowDiff` — a property nothing ever set — so `--disabled` was a no-op.
30
- */
31
- export async function generateFlowDiff(options) {
32
- return generateDiff(FLOW_DELTA, options);
33
- }
34
- //# sourceMappingURL=flowDelta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flowDelta.js","sourceRoot":"","sources":["../../../src/common/build/flowDelta.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,GAIT,MAAM,kBAAkB,CAAC;AAM1B;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAA4B;IAC7D,OAAO,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAAgC;IACrE,OAAO,YAAY,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC"}
@@ -1,10 +0,0 @@
1
- import { type PackageInstallUpgradeType } from '../sfPackages.js';
2
- export type InstallDependenciesOptions = {
3
- /** Required only when the scratch org's Dev Hub was JWT-authenticated (no refresh token available). */
4
- jwtKeyFile?: string;
5
- debug?: boolean;
6
- installType?: 'All' | 'Delta' | 'Upgrade';
7
- upgradeType?: PackageInstallUpgradeType;
8
- };
9
- /** Authenticates to the scratch org (recorded in `SCRATCH_ORG_INFO.json`) and installs its packaged dependencies. */
10
- export declare function installDependencies(options: InstallDependenciesOptions): Promise<void>;
@@ -1,39 +0,0 @@
1
- /*
2
- * Copyright (c) 2026, SimplySF.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { logger } from '../logger.js';
17
- import { installPackageDependencies as installPackageDependenciesCommon, } from '../sfPackages.js';
18
- import { ensureScratchOrgSession } from './scratchOrgAuth.js';
19
- import { readScratchOrgInfo } from './scratchOrgInfo.js';
20
- /** Authenticates to the scratch org (recorded in `SCRATCH_ORG_INFO.json`) and installs its packaged dependencies. */
21
- export async function installDependencies(options) {
22
- logger.info('Installing package dependencies into scratch org...');
23
- const scratchOrgInfo = await readScratchOrgInfo();
24
- await ensureScratchOrgSession(scratchOrgInfo.authFields, {
25
- jwtKeyFile: options.jwtKeyFile,
26
- setDefault: true,
27
- debug: options.debug,
28
- });
29
- // The install runs in-process (not via a child `sf` invocation that would read the default org
30
- // just written to config), so target the scratch org explicitly by its username.
31
- await installPackageDependenciesCommon({
32
- alias: scratchOrgInfo.authFields.username,
33
- wait: '240',
34
- installType: options.installType,
35
- upgradeType: options.upgradeType,
36
- });
37
- logger.success('Package dependencies installed.');
38
- }
39
- //# sourceMappingURL=installDependencies.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"installDependencies.js","sourceRoot":"","sources":["../../../src/common/build/installDependencies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EACL,0BAA0B,IAAI,gCAAgC,GAE/D,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAUzD,qHAAqH;AACrH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,OAAmC;IAC3E,MAAM,CAAC,IAAI,CAAC,qDAAqD,CAAC,CAAC;IACnE,MAAM,cAAc,GAAG,MAAM,kBAAkB,EAAE,CAAC;IAClD,MAAM,uBAAuB,CAAC,cAAc,CAAC,UAAU,EAAE;QACvD,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,UAAU,EAAE,IAAI;QAChB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAC;IACH,+FAA+F;IAC/F,iFAAiF;IACjF,MAAM,gCAAgC,CAAC;QACrC,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,QAAQ;QACzC,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IACH,MAAM,CAAC,OAAO,CAAC,iCAAiC,CAAC,CAAC;AACpD,CAAC"}
@@ -1,25 +0,0 @@
1
- /** Where `runLwcJest` writes the JUnit report, mirroring `runApexTests`'s `./test-results/apex`. */
2
- export declare const LWC_JEST_RESULTS_DIR = "./test-results/lwc";
3
- export declare const LWC_JEST_RESULTS_FILE = "test-result.xml";
4
- export type RunLwcJestOptions = {
5
- disabled?: boolean;
6
- failOnTestFailure?: boolean;
7
- projectDir?: string;
8
- };
9
- export type RunLwcJestResult = {
10
- skipped: boolean;
11
- success: boolean;
12
- };
13
- /**
14
- * Builds an ES module Jest config that loads the project's own config and adds `jest-junit` to its
15
- * reporters, rather than replacing them the way a CLI `--reporters` would. `rootDir` is pinned to the
16
- * project, since Jest would otherwise default it to the wrapper's own (temporary) directory.
17
- */
18
- export declare function buildJunitJestConfig(projectConfigFile: string, projectDir: string): string;
19
- /**
20
- * Installs the LWC Jest test libraries and runs the project's LWC Jest tests with coverage, writing
21
- * a JUnit report to `./test-results/lwc/test-result.xml` alongside any reporters the project's own
22
- * Jest config sets. A failure is logged and returned, unless `failOnTestFailure` is set, in which
23
- * case it also throws.
24
- */
25
- export declare function runLwcJest(options: RunLwcJestOptions): Promise<RunLwcJestResult>;
@@ -1,126 +0,0 @@
1
- /*
2
- * Copyright (c) 2026, SimplySF.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- import { promises as fs } from 'node:fs';
17
- import os from 'node:os';
18
- import path from 'node:path';
19
- import { pathToFileURL } from 'node:url';
20
- import { execa } from 'execa';
21
- import { logger } from '../logger.js';
22
- /** Where `runLwcJest` writes the JUnit report, mirroring `runApexTests`'s `./test-results/apex`. */
23
- export const LWC_JEST_RESULTS_DIR = './test-results/lwc';
24
- export const LWC_JEST_RESULTS_FILE = 'test-result.xml';
25
- /** The project config files `sfdx-lwc-jest` recognizes; with none present it passes its own default `--config`. */
26
- const PROJECT_JEST_CONFIG_FILES = ['jest.config.js', 'jest.config.mjs', 'jest.config.cjs'];
27
- async function findProjectJestConfig(projectDir) {
28
- for (const file of PROJECT_JEST_CONFIG_FILES) {
29
- const configPath = path.join(projectDir, file);
30
- try {
31
- // eslint-disable-next-line no-await-in-loop -- first match wins, in sfdx-lwc-jest's order
32
- await fs.access(configPath);
33
- return configPath;
34
- }
35
- catch {
36
- // not present; try the next name
37
- }
38
- }
39
- return undefined;
40
- }
41
- /**
42
- * Builds an ES module Jest config that loads the project's own config and adds `jest-junit` to its
43
- * reporters, rather than replacing them the way a CLI `--reporters` would. `rootDir` is pinned to the
44
- * project, since Jest would otherwise default it to the wrapper's own (temporary) directory.
45
- */
46
- export function buildJunitJestConfig(projectConfigFile, projectDir) {
47
- // A config function rather than top-level await: Jest loads config files with require() first, and
48
- // require() can't load an ES module that uses top-level await.
49
- return `import path from 'node:path';
50
-
51
- export default async () => {
52
- const mod = await import(${JSON.stringify(pathToFileURL(projectConfigFile).href)});
53
- let config = mod.default ?? mod;
54
- if (typeof config === 'function') {
55
- config = await config();
56
- }
57
-
58
- const reporters = config.reporters ?? ['default'];
59
- const hasJunit = reporters.some((reporter) => (Array.isArray(reporter) ? reporter[0] : reporter) === 'jest-junit');
60
-
61
- return {
62
- ...config,
63
- rootDir: path.resolve(${JSON.stringify(projectDir)}, config.rootDir ?? '.'),
64
- reporters: hasJunit ? reporters : [...reporters, 'jest-junit'],
65
- };
66
- };
67
- `;
68
- }
69
- function failRun(options, message, error) {
70
- logger.error(message);
71
- if (options.failOnTestFailure) {
72
- throw new Error(message, { cause: error });
73
- }
74
- return { skipped: false, success: false };
75
- }
76
- /**
77
- * Installs the LWC Jest test libraries and runs the project's LWC Jest tests with coverage, writing
78
- * a JUnit report to `./test-results/lwc/test-result.xml` alongside any reporters the project's own
79
- * Jest config sets. A failure is logged and returned, unless `failOnTestFailure` is set, in which
80
- * case it also throws.
81
- */
82
- export async function runLwcJest(options) {
83
- if (options.disabled) {
84
- logger.warn('lwc-jest is disabled. Skipping.');
85
- return { skipped: true, success: false };
86
- }
87
- const projectDir = options.projectDir ?? process.cwd();
88
- logger.info('Running LWC Jest tests...');
89
- // Created up front so a pipeline's `when: always` artifact path exists even if Jest never starts.
90
- await fs.mkdir(path.join(projectDir, LWC_JEST_RESULTS_DIR), { recursive: true });
91
- try {
92
- await execa('npm', ['install', '@salesforce/sfdx-lwc-jest', '@sa11y/jest', 'jest-junit'], {
93
- cwd: projectDir,
94
- stdio: 'pipe',
95
- });
96
- }
97
- catch (error) {
98
- return failRun(options, 'Failed to install the LWC Jest test libraries.', error);
99
- }
100
- const projectConfig = await findProjectJestConfig(projectDir);
101
- const wrapperDir = projectConfig ? await fs.mkdtemp(path.join(os.tmpdir(), 'lwc-jest-')) : undefined;
102
- try {
103
- let reporterArgs = ['--reporters=default', '--reporters=jest-junit'];
104
- if (projectConfig && wrapperDir) {
105
- const wrapperConfig = path.join(wrapperDir, 'jest.config.mjs');
106
- await fs.writeFile(wrapperConfig, buildJunitJestConfig(projectConfig, projectDir));
107
- reporterArgs = [`--config=${wrapperConfig}`];
108
- }
109
- await execa('npx', ['sfdx-lwc-jest', '--coverage', '--', '--passWithNoTests', ...reporterArgs], {
110
- cwd: projectDir,
111
- stdio: 'inherit',
112
- env: { JEST_JUNIT_OUTPUT_DIR: LWC_JEST_RESULTS_DIR, JEST_JUNIT_OUTPUT_NAME: LWC_JEST_RESULTS_FILE },
113
- });
114
- }
115
- catch (error) {
116
- return failRun(options, 'LWC Jest tests failed.', error);
117
- }
118
- finally {
119
- if (wrapperDir) {
120
- await fs.rm(wrapperDir, { recursive: true, force: true });
121
- }
122
- }
123
- logger.success('LWC Jest tests completed.');
124
- return { skipped: false, success: true };
125
- }
126
- //# sourceMappingURL=lwcJest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lwcJest.js","sourceRoot":"","sources":["../../../src/common/build/lwcJest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,oGAAoG;AACpG,MAAM,CAAC,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AACzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;AAEvD,mHAAmH;AACnH,MAAM,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAAC;AAK3F,KAAK,UAAU,qBAAqB,CAAC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EAAE,mBAAmB,EAAE,GAAG,YAAY,CAAC,EAAE;YAC9F,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,SAAS;YAChB,GAAG,EAAE,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE;SACpG,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,OAAO,CAAC,OAAO,EAAE,wBAAwB,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;YAAS,CAAC;QACT,IAAI,UAAU,EAAE,CAAC;YACf,MAAM,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC5C,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3C,CAAC"}
@@ -1,50 +0,0 @@
1
- export type NpmAccess = 'public' | 'restricted';
2
- export type PublishUtamPageObjectsOptions = {
3
- /** The packaging Dev Hub's alias. Must already be authenticated. */
4
- packagingDevhub: string;
5
- subscriberPackageVersionId?: string;
6
- /** Overrides `plugins.simply.utam.packageName`. */
7
- npmPackageName?: string;
8
- npmRegistry?: string;
9
- npmAccess?: NpmAccess;
10
- /** Overrides the dist-tag derived from the git tag's suffix. */
11
- npmDistTag?: string;
12
- ciCommitRefName?: string;
13
- packageReleaseBranchPrefix?: string;
14
- /** npm spec of the UTAM compiler to install into the staging directory. */
15
- utamVersion?: string;
16
- /** Compile and `npm pack`, but don't publish. */
17
- dryRun?: boolean;
18
- /** Dotenv file to append the published name and version to. */
19
- out?: string;
20
- /** Dotenv file to read `SUBSCRIBER_PACKAGE_VERSION_ID` from. */
21
- envFile?: string;
22
- debug?: boolean;
23
- disabled?: boolean;
24
- };
25
- export type PublishUtamPageObjectsResult = {
26
- skipped: boolean;
27
- published: boolean;
28
- /** True when this exact version was already on the registry, so nothing needed publishing. */
29
- alreadyPublished?: boolean;
30
- packageName?: string;
31
- version?: string;
32
- distTag?: string;
33
- /** Path to the packed tarball, on `--dry-run` only. */
34
- tarball?: string;
35
- };
36
- /**
37
- * Compile the project's UTAM page objects for one package version and publish them as an npm
38
- * package whose version is derived from the Salesforce version number.
39
- *
40
- * Runs after `create-package-version`, whose `04t` it takes as input, so that every Unlocked
41
- * Package version has a corresponding page-object package a UI-test suite can pin to. See
42
- * `docs/design/0037-utam-page-objects-publish.md` for the reasoning, particularly the version
43
- * mapping and why the compiler config is generated per build rather than read from the repo.
44
- *
45
- * Skips (without failing) when the package didn't change, when the job is disabled, when no `04t`
46
- * can be found, when the project authors no page objects, or when this exact version is already on
47
- * the registry. Everything past those guards throws on failure: a missing page-object package would
48
- * silently break every UI test pinned to that version.
49
- */
50
- export declare function publishUtamPageObjects(options: PublishUtamPageObjectsOptions): Promise<PublishUtamPageObjectsResult>;