@scandipwa/magento-scripts 2.0.2 → 2.0.3

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,5 @@
1
1
  const path = require('path');
2
2
  const os = require('os');
3
- const envPhpToJson = require('../../util/env-php-json');
4
3
  const getJsonfileData = require('../../util/get-jsonfile-data');
5
4
  const pathExists = require('../../util/path-exists');
6
5
  const { containerApi } = require('../docker/containers');
@@ -36,23 +35,8 @@ const updateEnvPHP = () => ({
36
35
  if (await pathExists(composerLockPath)) {
37
36
  const composerLockData = await getJsonfileData(composerLockPath);
38
37
 
39
- if (composerLockData.packages.some(({ name }) => name === 'scandipwa/persisted-query')) {
40
- if (typeof ctx.CSAThemeInstalled !== 'boolean') {
41
- ctx.CSAThemeInstalled = true;
42
- }
43
-
44
- const envPhp = await envPhpToJson(ctx);
45
-
46
- const persistedQueryConfig = envPhp.cache && envPhp.cache['persisted-query'];
47
-
48
- if (
49
- persistedQueryConfig
50
- && persistedQueryConfig.redis
51
- && (persistedQueryConfig.redis.port !== `${ ctx.ports.redis }`
52
- || persistedQueryConfig.redis.host === hostMachine)
53
- ) {
54
- SETUP_PQ = '';
55
- }
38
+ if (!composerLockData.packages.some(({ name }) => name === 'scandipwa/persisted-query')) {
39
+ SETUP_PQ = '';
56
40
  }
57
41
  }
58
42
 
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": "2.0.2",
6
+ "version": "2.0.3",
7
7
  "main": "./index.js",
8
8
  "types": "./typings/index.d.ts",
9
9
  "license": "OSL-3.0",
@@ -54,5 +54,5 @@
54
54
  "mysql",
55
55
  "scandipwa"
56
56
  ],
57
- "gitHead": "676d083e666a985e1942a7b1d216ca6d6b6151f8"
57
+ "gitHead": "21913f16c2eb9b18f7e35d0e19df0c30373044fc"
58
58
  }