@scandipwa/magento-scripts 1.16.0-alpha.0 → 1.16.0-alpha.1

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.
@@ -75,7 +75,7 @@ const enableMagentoComposerPlugins = () => ({
75
75
  return;
76
76
  }
77
77
 
78
- task.title = 'Checking allowed composer plugins...';
78
+ task.title = 'Checking allowed Composer plugins...';
79
79
 
80
80
  const composerPlugins = await getInstalledComposerPlugins();
81
81
  const composerJsonData = await getJsonfileData(composerJsonPath);
@@ -1,11 +1,9 @@
1
1
  /* eslint-disable max-len */
2
2
  const path = require('path');
3
3
  const fs = require('fs');
4
- const os = require('os');
5
4
  const { execAsyncSpawn } = require('../../../util/exec-async-command');
6
5
  const pathExists = require('../../../util/path-exists');
7
6
  const phpbrewConfig = require('../../../config/phpbrew');
8
- const { getArch } = require('../../../util/arch');
9
7
 
10
8
  /**
11
9
  * Get enabled extensions list with versions
@@ -13,9 +11,9 @@ const { getArch } = require('../../../util/arch');
13
11
  * @returns {Promise<{[key: string]: string}}>}
14
12
  */
15
13
  const getEnabledExtensions = async ({ php }) => {
16
- const isArmMac = await getArch() === 'arm64' && os.platform() === 'darwin';
17
14
  const output = await execAsyncSpawn(
18
- `${isArmMac ? 'arch -x86_64 ' : ''}${ php.binPath } -c ${php.iniPath} -r 'foreach (get_loaded_extensions() as $extension) echo "$extension:" . phpversion($extension) . "\n";'`
15
+ `${ php.binPath } -c ${php.iniPath} -r 'foreach (get_loaded_extensions() as $extension) echo "$extension:" . phpversion($extension) . "\n";'`,
16
+ { useRosetta2: true }
19
17
  );
20
18
 
21
19
  return output
@@ -49,7 +47,7 @@ const getDisabledExtensions = async ({ php }) => {
49
47
  }
50
48
  );
51
49
 
52
- return extensionIniList.filter((f) => f.isFile() && f.name.endsWith('.disabled')).map((f) => f.name.replace('.disabled', ''));
50
+ return extensionIniList.filter((f) => f.isFile() && f.name.endsWith('.disabled')).map((f) => f.name.replace('.ini.disabled', ''));
53
51
  };
54
52
 
55
53
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Scripts and configuration used by CMA.",
4
4
  "homepage": "https://docs.create-magento-app.com/",
5
5
  "repository": "github:scandipwa/create-magento-app",
6
- "version": "1.16.0-alpha.0",
6
+ "version": "1.16.0-alpha.1",
7
7
  "main": "./index.js",
8
8
  "types": "./typings/index.d.ts",
9
9
  "license": "OSL-3.0",
@@ -53,5 +53,5 @@
53
53
  "mysql",
54
54
  "scandipwa"
55
55
  ],
56
- "gitHead": "e3d08c91ce20747b465b5b9edc1a4cd7737037ce"
56
+ "gitHead": "ebd76eb7a1fac6dd0acbf589f52655ec01c64db2"
57
57
  }