@wix/create-app 0.0.148 → 0.0.149
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/build/index.js +17 -14
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -73667,7 +73667,7 @@ function reportCommandStartEvent({
|
|
|
73667
73667
|
var package_default = {
|
|
73668
73668
|
name: "@wix/create-app",
|
|
73669
73669
|
description: "Create Wix apps",
|
|
73670
|
-
version: "0.0.
|
|
73670
|
+
version: "0.0.149",
|
|
73671
73671
|
author: "Ihor Machuzhak",
|
|
73672
73672
|
bin: "bin/index.cjs",
|
|
73673
73673
|
devDependencies: {
|
|
@@ -75490,20 +75490,23 @@ async function gitCommit(cwd3) {
|
|
|
75490
75490
|
{ cwd: cwd3 }
|
|
75491
75491
|
);
|
|
75492
75492
|
}
|
|
75493
|
-
async function gitClone(url2, path8) {
|
|
75494
|
-
await runCommand(
|
|
75495
|
-
|
|
75496
|
-
|
|
75497
|
-
|
|
75498
|
-
|
|
75499
|
-
|
|
75500
|
-
|
|
75501
|
-
|
|
75502
|
-
|
|
75503
|
-
|
|
75504
|
-
|
|
75493
|
+
async function gitClone(url2, path8, branch) {
|
|
75494
|
+
await runCommand(
|
|
75495
|
+
`git clone --depth 1 ${branch ? `-b ${branch}` : ""} ${url2} ${path8}`,
|
|
75496
|
+
{
|
|
75497
|
+
env: {
|
|
75498
|
+
/*
|
|
75499
|
+
* This is to prevent git from prompting for credentials.
|
|
75500
|
+
* `git clone` uses a subprocess for the authentication, so we can't attach the main process to its stdio.
|
|
75501
|
+
* This leads to:
|
|
75502
|
+
* - the spinners "swallow" its output.
|
|
75503
|
+
* - after answering with the username and pressing "Enter", the first line of the output is being duplicated.
|
|
75504
|
+
* That's why we're disabling the prompt, so user should be pre-authenticated.
|
|
75505
|
+
*/
|
|
75506
|
+
GIT_TERMINAL_PROMPT: "0"
|
|
75507
|
+
}
|
|
75505
75508
|
}
|
|
75506
|
-
|
|
75509
|
+
);
|
|
75507
75510
|
}
|
|
75508
75511
|
|
|
75509
75512
|
// ../package-manager/src/repo-type.ts
|