@docupace/pipeline 1.0.39-matttest.21 → 1.0.39-matttest.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.39-matttest.21",
3
+ "version": "1.0.39-matttest.22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -0,0 +1,17 @@
1
+ import { $ as original$ } from 'zx';
2
+
3
+ // Wrapped version of $
4
+ export const $ = async (strings, ...values) => {
5
+ const command = strings.reduce(
6
+ (acc, str, i) => acc + str + (values[i] ?? ''),
7
+ '',
8
+ );
9
+ console.log(`Executing: ${command}`);
10
+ try {
11
+ const result = await original$(strings, ...values);
12
+ return result;
13
+ } catch (error) {
14
+ console.error(`Error executing: ${command}`, error);
15
+ throw error;
16
+ }
17
+ };
@@ -1,4 +1,4 @@
1
- import { $ } from 'zx';
1
+ import { $ } from './logger.js';
2
2
 
3
3
  const {
4
4
  JF_REGISTRY_URL,