apex-code-coverage-transformer 2.13.3 → 2.13.4

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 CHANGED
@@ -5,6 +5,13 @@
5
5
 
6
6
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
7
7
 
8
+ ## [2.13.4](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v2.13.3...v2.13.4) (2025-10-27)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * change oclif hook from postrun to finally ([#229](https://github.com/mcarvin8/apex-code-coverage-transformer/issues/229)) ([27bb6d6](https://github.com/mcarvin8/apex-code-coverage-transformer/commit/27bb6d62d85b616130e11398fedd7fff614f9fe3))
14
+
8
15
  ## [2.13.3](https://github.com/mcarvin8/apex-code-coverage-transformer/compare/v2.13.2...v2.13.3) (2025-07-14)
9
16
 
10
17
 
@@ -0,0 +1,2 @@
1
+ import { Hook } from '@oclif/core';
2
+ export declare const hook: Hook<'finally'>;
@@ -4,7 +4,8 @@ import { readFile } from 'node:fs/promises';
4
4
  import { resolve } from 'node:path';
5
5
  import TransformerTransform from '../commands/acc-transformer/transform.js';
6
6
  import { getRepoRoot } from '../utils/getRepoRoot.js';
7
- export const postrun = async function (options) {
7
+ export const hook = async function (options) {
8
+ const commandId = options?.Command?.id ?? '';
8
9
  let commandType;
9
10
  let coverageJson;
10
11
  if ([
@@ -13,10 +14,10 @@ export const postrun = async function (options) {
13
14
  'project:deploy:report',
14
15
  'project:deploy:resume',
15
16
  'hardis:project:deploy:smart',
16
- ].includes(options.Command.id)) {
17
+ ].includes(commandId)) {
17
18
  commandType = 'deploy';
18
19
  }
19
- else if (['apex:run:test', 'apex:get:test', 'hardis:org:test:apex'].includes(options.Command.id)) {
20
+ else if (['apex:run:test', 'apex:get:test', 'hardis:org:test:apex'].includes(commandId)) {
20
21
  commandType = 'test';
21
22
  }
22
23
  else {
@@ -75,4 +76,4 @@ export const postrun = async function (options) {
75
76
  }
76
77
  await TransformerTransform.run(commandArgs);
77
78
  };
78
- //# sourceMappingURL=postrun.js.map
79
+ //# sourceMappingURL=finally.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finally.js","sourceRoot":"","sources":["../../src/hooks/finally.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,CAAC,MAAM,IAAI,GAAoB,KAAK,WAAW,OAAO;IAC1D,MAAM,SAAS,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAI,WAAmB,CAAC;IACxB,IAAI,YAAoB,CAAC;IACzB,IACE;QACE,yBAAyB;QACzB,sBAAsB;QACtB,uBAAuB;QACvB,uBAAuB;QACvB,6BAA6B;KAC9B,CAAC,QAAQ,CAAC,SAAS,CAAC,EACrB,CAAC;QACD,WAAW,GAAG,QAAQ,CAAC;IACzB,CAAC;SAAM,IAAI,CAAC,eAAe,EAAE,eAAe,EAAE,sBAAsB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1F,WAAW,GAAG,MAAM,CAAC;IACvB,CAAC;SAAM,CAAC;QACN,OAAO;IACT,CAAC;IACD,IAAI,UAAoB,CAAC;IACzB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,WAAW,EAAE,CAAC;IACzC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;IACT,CAAC;IACD,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,qCAAqC,CAAC,CAAC;IAE5E,IAAI,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