@flydocs/cli 0.6.0-alpha.30 → 0.6.0-alpha.31
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/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME, POSTHOG_API_KEY;
|
|
|
15
15
|
var init_constants = __esm({
|
|
16
16
|
"src/lib/constants.ts"() {
|
|
17
17
|
"use strict";
|
|
18
|
-
CLI_VERSION = "0.6.0-alpha.
|
|
18
|
+
CLI_VERSION = "0.6.0-alpha.31";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
|
|
@@ -3559,27 +3559,27 @@ async function runCloneAndInit(targetDir, keyArg, repos, apiKey, workspaceId) {
|
|
|
3559
3559
|
const shortName = repoShortName(repo.name);
|
|
3560
3560
|
printInfo(`Workspace has 1 repo: ${pc8.bold(shortName)}`);
|
|
3561
3561
|
const shouldClone = await confirm3({
|
|
3562
|
-
message: `Clone ${shortName} and initialize?`
|
|
3562
|
+
message: `Clone ${shortName} into this directory and initialize?`
|
|
3563
3563
|
});
|
|
3564
3564
|
if (isCancel4(shouldClone) || !shouldClone) {
|
|
3565
3565
|
cancel3("Init cancelled.");
|
|
3566
3566
|
process.exit(0);
|
|
3567
3567
|
}
|
|
3568
|
-
const cloneDir = join20(targetDir, shortName);
|
|
3569
3568
|
printInfo(`Cloning ${shortName}...`);
|
|
3570
|
-
await execFileAsync("git", ["clone", repo.cloneUrl,
|
|
3569
|
+
await execFileAsync("git", ["clone", repo.cloneUrl, "."], {
|
|
3570
|
+
cwd: targetDir,
|
|
3571
3571
|
timeout: 6e4
|
|
3572
3572
|
});
|
|
3573
3573
|
printStatus(`Cloned ${shortName}`);
|
|
3574
3574
|
const serverResponse = await pullServerConfig(
|
|
3575
3575
|
apiKey,
|
|
3576
|
-
|
|
3576
|
+
targetDir,
|
|
3577
3577
|
workspaceId,
|
|
3578
3578
|
true
|
|
3579
3579
|
// always include context on fresh clone
|
|
3580
3580
|
);
|
|
3581
3581
|
const { actions, skipped } = await initSingleRepo(
|
|
3582
|
-
|
|
3582
|
+
targetDir,
|
|
3583
3583
|
apiKey,
|
|
3584
3584
|
serverResponse
|
|
3585
3585
|
);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.0-alpha.
|
|
1
|
+
0.6.0-alpha.31
|
package/template/manifest.json
CHANGED