@wix/create-headless-site 0.0.28 → 0.0.30
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
|
@@ -90353,7 +90353,7 @@ function wixCliCliError(params) {
|
|
|
90353
90353
|
var package_default = {
|
|
90354
90354
|
name: "@wix/create-headless-site",
|
|
90355
90355
|
description: "Headless site creation wizard",
|
|
90356
|
-
version: "0.0.
|
|
90356
|
+
version: "0.0.30",
|
|
90357
90357
|
bin: "bin/index.cjs",
|
|
90358
90358
|
devDependencies: {
|
|
90359
90359
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -92163,20 +92163,23 @@ async function gitCommit(cwd3) {
|
|
|
92163
92163
|
{ cwd: cwd3 }
|
|
92164
92164
|
);
|
|
92165
92165
|
}
|
|
92166
|
-
async function gitClone(url2, path8) {
|
|
92167
|
-
await runCommand(
|
|
92168
|
-
|
|
92169
|
-
|
|
92170
|
-
|
|
92171
|
-
|
|
92172
|
-
|
|
92173
|
-
|
|
92174
|
-
|
|
92175
|
-
|
|
92176
|
-
|
|
92177
|
-
|
|
92166
|
+
async function gitClone(url2, path8, branch) {
|
|
92167
|
+
await runCommand(
|
|
92168
|
+
`git clone --depth 1 ${branch ? `-b ${branch}` : ""} ${url2} ${path8}`,
|
|
92169
|
+
{
|
|
92170
|
+
env: {
|
|
92171
|
+
/*
|
|
92172
|
+
* This is to prevent git from prompting for credentials.
|
|
92173
|
+
* `git clone` uses a subprocess for the authentication, so we can't attach the main process to its stdio.
|
|
92174
|
+
* This leads to:
|
|
92175
|
+
* - the spinners "swallow" its output.
|
|
92176
|
+
* - after answering with the username and pressing "Enter", the first line of the output is being duplicated.
|
|
92177
|
+
* That's why we're disabling the prompt, so user should be pre-authenticated.
|
|
92178
|
+
*/
|
|
92179
|
+
GIT_TERMINAL_PROMPT: "0"
|
|
92180
|
+
}
|
|
92178
92181
|
}
|
|
92179
|
-
|
|
92182
|
+
);
|
|
92180
92183
|
}
|
|
92181
92184
|
|
|
92182
92185
|
// ../package-manager/src/repo-type.ts
|