browserstack-cypress-cli 1.36.7 → 1.36.8

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.
@@ -27,9 +27,7 @@ let packages = {};
27
27
 
28
28
  exports.requireModule = (module, internal = false) => {
29
29
  let local_path = "";
30
- if(process.env["browserStackCwd"]){
31
- local_path = path.join(process.env["browserStackCwd"], 'node_modules', module);
32
- } else if(internal) {
30
+ if(internal) {
33
31
  local_path = path.join(process.cwd(), 'node_modules', 'browserstack-cypress-cli', 'node_modules', module);
34
32
  } else {
35
33
  local_path = path.join(process.cwd(), 'node_modules', module);
@@ -928,9 +928,9 @@ exports.runCypressTestsLocally = (bsConfig, args, rawArgs) => {
928
928
  rawArgs = cleanupTestObservabilityFlags(rawArgs);
929
929
  logger.info(`Running npx cypress run ${getReRunSpecs(rawArgs.slice(1)).join(' ')} ${getLocalSessionReporter().join(' ')}`);
930
930
  const cypressProcess = spawn(
931
- 'npx',
931
+ /^win/.test(process.platform) ? 'npx.cmd' : 'npx',
932
932
  ['cypress', 'run', ...getReRunSpecs(rawArgs.slice(1)), ...getLocalSessionReporter()],
933
- { stdio: 'inherit', cwd: process.cwd(), env: process.env, shell: true }
933
+ { stdio: 'inherit', cwd: process.cwd(), env: process.env, shell: false }
934
934
  );
935
935
  cypressProcess.on('close', async (code) => {
936
936
  logger.info(`Cypress process exited with code ${code}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browserstack-cypress-cli",
3
- "version": "1.36.7",
3
+ "version": "1.36.8",
4
4
  "description": "BrowserStack Cypress CLI for Cypress integration with BrowserStack's remote devices.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,13 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm --version)",
5
- "Bash(npm ls *)",
6
- "Bash(git checkout *)",
7
- "Bash(rm -rf node_modules)",
8
- "Bash(npm ci *)",
9
- "Bash(npm test *)",
10
- "Bash(npm view *)"
11
- ]
12
- }
13
- }