slnodejs 6.1.873 → 6.1.879

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sl-browser-agent",
3
- "version": "6.1.873",
3
+ "version": "6.1.879",
4
4
  "description": "le Browser Agent!",
5
5
  "main": "dist/browser-agent-all.js",
6
6
  "browser": {
package/lib/preload.js CHANGED
@@ -30,9 +30,14 @@ function main() {
30
30
  bsid = `--buildSessionIdFile ${process.env.SL_buildSessionIdFile}`;
31
31
  }
32
32
 
33
+ let projectRoot = '';
34
+ if (process.env.SL_projectRoot) {
35
+ projectRoot = `--projectRoot ${process.env.SL_projectRoot}`;
36
+ }
37
+
33
38
  const [argv0, ...restArgv] = process.argv.map(x => x.includes(' ') ? `"${x}"` : x);
34
39
  const originalArgv = process.argv.join(' ');
35
- const args = ['run', ...token.split(' '), ...bsid.split(' '), '--', ...restArgv];
40
+ const args = ['run', ...token.split(' '), ...bsid.split(' '), ...projectRoot.split(' '), '--', ...restArgv];
36
41
  const processArgs = [pathToSlAgentCli, ...args];
37
42
  process.env.NODE_OPTIONS = '';
38
43
  process.env.NODE_DEBUG = 'sl';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slnodejs",
3
- "version": "6.1.873",
3
+ "version": "6.1.879",
4
4
  "description": "",
5
5
  "main": "tsOutputs/api.js",
6
6
  "workspaces": [