@mono-labs/cli 0.0.78 → 0.0.79

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.
@@ -1,5 +1,5 @@
1
1
  import { spawn } from 'child_process';
2
- import { setData } from '../dataLayer.js';
2
+ import { replaceTokens, setData } from '../dataLayer.js';
3
3
 
4
4
  // Regex to capture tokens like: {out:field value}
5
5
  const TOKEN_RX = /\{out:(?<field>[^\s}]+)\s+(?<value>[^\s}]+)\}/g;
@@ -10,6 +10,8 @@ const TOKEN_RX = /\{out:(?<field>[^\s}]+)\s+(?<value>[^\s}]+)\}/g;
10
10
  */
11
11
  export function runForeground(cmd, envObj = {}, options = {}) {
12
12
  console.log('optionsForeground:', options);
13
+ const newCmd = replaceTokens(cmd);
14
+ console.log('outCmd:', newCmd);
13
15
  return new Promise((resolve, reject) => {
14
16
  let lastLine = '';
15
17
  let buffer = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mono-labs/cli",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "description": "A CLI tool for building and deploying projects",
5
5
  "type": "module",
6
6
  "main": "index.js",