@scandipwa/magento-scripts 1.12.1 → 1.12.2

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,7 +1,7 @@
1
1
  const os = require('os');
2
2
  const path = require('path');
3
3
 
4
- const homePath = process.env.PHPBREW_HOME || os.homedir();
4
+ const homePath = process.env.PHPBREW_HOME || path.join(os.homedir(), '.phpbrew');
5
5
  const phpbrewConfig = {
6
6
  homePath,
7
7
  buildPath: path.join(homePath, 'build'),
@@ -5,7 +5,7 @@ const installDependenciesTask = require('../../../util/install-dependencies-task
5
5
  /**
6
6
  * @type {() => import('listr2').ListrTask<import('../../../../typings/context').ListrContext>}
7
7
  */
8
- const fedoraDependenciesCheck = () => ({
8
+ const centosDependenciesCheck = () => ({
9
9
  title: 'Checking CentOS dependencies',
10
10
  task: async (ctx, task) => {
11
11
  const installedDependencies = (await execAsyncSpawn('yum list installed')).split('\n')
@@ -32,4 +32,4 @@ const fedoraDependenciesCheck = () => ({
32
32
  }
33
33
  });
34
34
 
35
- module.exports = fedoraDependenciesCheck;
35
+ module.exports = centosDependenciesCheck;
@@ -1,4 +1,3 @@
1
- const os = require('os');
2
1
  const osPlatform = require('../../../util/os-platform');
3
2
  const archDependenciesCheck = require('./arch');
4
3
  const fedoraDependenciesCheck = require('./fedora');
@@ -7,9 +6,7 @@ const ubuntuDependenciesCheck = require('./ubuntu');
7
6
  const macDependenciesCheck = require('./mac');
8
7
 
9
8
  const dependencyCheck = async () => {
10
- const currentPlatform = os.platform();
11
-
12
- if (currentPlatform === 'darwin') {
9
+ if (process.platform === 'darwin') {
13
10
  return macDependenciesCheck();
14
11
  }
15
12
 
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.12.1",
6
+ "version": "1.12.2",
7
7
  "main": "./index.js",
8
8
  "types": "./typings/index.d.ts",
9
9
  "license": "OSL-3.0",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "079d0a72e1abeaaa3b529406c328ce2aa0d224d7"
45
+ "gitHead": "8e4db94149d0d2b56fef23f6c9db8c0df223da2e"
46
46
  }