@flydocs/cli 0.5.0-beta.18 → 0.5.0-beta.19
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 +7 -6
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/CHANGELOG.md +10 -0
- package/template/manifest.json +1 -1
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.5.0-beta.
|
|
18
|
+
CLI_VERSION = "0.5.0-beta.19";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
|
|
@@ -1865,29 +1865,30 @@ var init_install = __esm({
|
|
|
1865
1865
|
process.exit(1);
|
|
1866
1866
|
}
|
|
1867
1867
|
tier = args.tier;
|
|
1868
|
-
printInfo(`Tier set via flag: ${tier}`);
|
|
1869
1868
|
} else if (await pathExists(join13(targetDir, ".flydocs", "config.json"))) {
|
|
1870
1869
|
try {
|
|
1871
1870
|
const existing = await readConfig(targetDir);
|
|
1872
1871
|
if (existing.tier) {
|
|
1873
1872
|
tier = existing.tier;
|
|
1874
|
-
printInfo(`Tier from config: ${tier}`);
|
|
1875
1873
|
}
|
|
1876
1874
|
} catch {
|
|
1877
1875
|
}
|
|
1878
1876
|
}
|
|
1879
|
-
if (!tier) {
|
|
1877
|
+
if (!args.tier) {
|
|
1880
1878
|
const shouldInstall = await confirm2({
|
|
1881
|
-
message: `Install FlyDocs here? (local tier)
|
|
1879
|
+
message: `Install FlyDocs here?${tier ? ` (${tier} tier)` : " (local tier)"}
|
|
1882
1880
|
Directory: ${targetDir}`
|
|
1883
1881
|
});
|
|
1884
1882
|
if (isCancel3(shouldInstall) || !shouldInstall) {
|
|
1885
1883
|
cancel2("Installation cancelled.");
|
|
1886
1884
|
process.exit(0);
|
|
1887
1885
|
}
|
|
1888
|
-
tier = "local";
|
|
1889
1886
|
console.log();
|
|
1890
1887
|
}
|
|
1888
|
+
if (!tier) {
|
|
1889
|
+
tier = "local";
|
|
1890
|
+
}
|
|
1891
|
+
printInfo(`Tier: ${tier}`);
|
|
1891
1892
|
await capture("install_tier_selected", { tier });
|
|
1892
1893
|
if (!await pathExists(join13(targetDir, ".git"))) {
|
|
1893
1894
|
printWarning("No git repository detected. Run git init when ready.");
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.0-beta.
|
|
1
|
+
0.5.0-beta.19
|
package/template/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ Versioning: [Semantic Versioning](https://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.5.0-beta.19] — 2026-02-27
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Install always confirms before proceeding** — the "Install FlyDocs here?"
|
|
15
|
+
prompt now shows even when an existing config is detected. Previously, reinstalls
|
|
16
|
+
with an existing `.flydocs/config.json` skipped the confirmation entirely.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
10
20
|
## [0.5.0-beta.18] — 2026-02-27
|
|
11
21
|
|
|
12
22
|
### Changed
|
package/template/manifest.json
CHANGED