@scandipwa/magento-scripts 2.4.0-alpha.4 → 2.4.0
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.
package/lib/commands/cli.js
CHANGED
|
@@ -175,6 +175,12 @@ const buildDockerFileInstructions = async (
|
|
|
175
175
|
`addgroup -g ${gid} ${username} && adduser -u ${gid} -G ${username} -H -s /sbin/nologin -D ${username} && \
|
|
176
176
|
addgroup www-data ${username}`
|
|
177
177
|
)
|
|
178
|
+
|
|
179
|
+
if (ctx.isDockerDesktop) {
|
|
180
|
+
dockerFileInstructions.run(
|
|
181
|
+
`chown -R ${username}:${username} /composer/home/cache`
|
|
182
|
+
)
|
|
183
|
+
}
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
dockerFileInstructions.workDir(ctx.config.baseConfig.containerMagentoDir)
|
|
@@ -277,13 +277,17 @@ const installMagentoProject = () => ({
|
|
|
277
277
|
title: 'Installing Magento dependencies',
|
|
278
278
|
task: async () => {
|
|
279
279
|
try {
|
|
280
|
-
await runComposerCommand(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
280
|
+
await runComposerCommand(
|
|
281
|
+
ctx,
|
|
282
|
+
`install${ctx.verbose ? ' -v' : ''}`,
|
|
283
|
+
{
|
|
284
|
+
callback: !ctx.verbose
|
|
285
|
+
? undefined
|
|
286
|
+
: (t) => {
|
|
287
|
+
task.output = t
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
)
|
|
287
291
|
} catch (e) {
|
|
288
292
|
if (
|
|
289
293
|
e instanceof UnknownError &&
|
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.4.0
|
|
6
|
+
"version": "2.4.0",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"@types/node": "^20.14.11",
|
|
60
60
|
"@types/yargs": "^17.0.32"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "2260d8d8945d830bb552aa910af847ce7fe8ab6b"
|
|
63
63
|
}
|