@fern-api/fern-api-dev 5.55.1 → 5.55.2
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/cli.cjs +46 -6
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -686956,7 +686956,7 @@ var AccessTokenPosthogManager = class {
|
|
|
686956
686956
|
properties: {
|
|
686957
686957
|
...event,
|
|
686958
686958
|
...event.properties,
|
|
686959
|
-
version: "5.55.
|
|
686959
|
+
version: "5.55.2",
|
|
686960
686960
|
usingAccessToken: true,
|
|
686961
686961
|
...getRunIdProperties()
|
|
686962
686962
|
}
|
|
@@ -687022,7 +687022,7 @@ var UserPosthogManager = class {
|
|
|
687022
687022
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
687023
687023
|
event: "CLI",
|
|
687024
687024
|
properties: {
|
|
687025
|
-
version: "5.55.
|
|
687025
|
+
version: "5.55.2",
|
|
687026
687026
|
...event,
|
|
687027
687027
|
...event.properties,
|
|
687028
687028
|
usingAccessToken: false,
|
|
@@ -868116,7 +868116,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
868116
868116
|
var LOGS_FOLDER_NAME = "logs";
|
|
868117
868117
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
868118
868118
|
function getCliSource() {
|
|
868119
|
-
const version7 = "5.55.
|
|
868119
|
+
const version7 = "5.55.2";
|
|
868120
868120
|
return `cli@${version7}`;
|
|
868121
868121
|
}
|
|
868122
868122
|
var DebugLogger = class {
|
|
@@ -870607,6 +870607,32 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
870607
870607
|
}
|
|
870608
870608
|
}
|
|
870609
870609
|
|
|
870610
|
+
// ../docs-preview/lib/getExternalDocsWatchPaths.js
|
|
870611
|
+
init_lib8();
|
|
870612
|
+
function getExternalDocsWatchPaths(absoluteFilePathToFern, docsDefinition) {
|
|
870613
|
+
const fernDirWithSep = absoluteFilePathToFern + "/";
|
|
870614
|
+
const externalDirs = /* @__PURE__ */ new Set();
|
|
870615
|
+
for (const pageId of Object.keys(docsDefinition.pages)) {
|
|
870616
|
+
const absolutePath = resolve6(absoluteFilePathToFern, pageId);
|
|
870617
|
+
if (!absolutePath.startsWith(fernDirWithSep)) {
|
|
870618
|
+
const dir = dirname6(absolutePath);
|
|
870619
|
+
externalDirs.add(dir);
|
|
870620
|
+
}
|
|
870621
|
+
}
|
|
870622
|
+
if (externalDirs.size === 0) {
|
|
870623
|
+
return [];
|
|
870624
|
+
}
|
|
870625
|
+
const sortedDirs = [...externalDirs].sort((a3, b5) => a3.length - b5.length);
|
|
870626
|
+
const rootDirs = [];
|
|
870627
|
+
for (const dir of sortedDirs) {
|
|
870628
|
+
const alreadyCovered = rootDirs.some((root6) => dir.startsWith(root6 + "/") || dir === root6);
|
|
870629
|
+
if (!alreadyCovered) {
|
|
870630
|
+
rootDirs.push(dir);
|
|
870631
|
+
}
|
|
870632
|
+
}
|
|
870633
|
+
return rootDirs.map(AbsoluteFilePath2.of);
|
|
870634
|
+
}
|
|
870635
|
+
|
|
870610
870636
|
// ../docs-preview/lib/nodePolyfills.js
|
|
870611
870637
|
var import_fs29 = require("fs");
|
|
870612
870638
|
var import_path70 = __toESM(require("path"), 1);
|
|
@@ -871876,6 +871902,13 @@ ${err.stack}`);
|
|
|
871876
871902
|
slugTracker.initialize(previewResult.docsDefinition);
|
|
871877
871903
|
}
|
|
871878
871904
|
const additionalFilepaths = project.apiWorkspaces.flatMap((workspace) => workspace.getAbsoluteFilePaths());
|
|
871905
|
+
if (previewResult != null) {
|
|
871906
|
+
const externalDocsPaths = getExternalDocsWatchPaths(absoluteFilePathToFern, previewResult.docsDefinition);
|
|
871907
|
+
if (externalDocsPaths.length > 0) {
|
|
871908
|
+
context3.logger.debug(`Watching external docs directories: ${externalDocsPaths.join(", ")}`);
|
|
871909
|
+
additionalFilepaths.push(...externalDocsPaths);
|
|
871910
|
+
}
|
|
871911
|
+
}
|
|
871879
871912
|
const watcher = await createDocsPreviewWatcher({
|
|
871880
871913
|
absoluteFilePathToFern,
|
|
871881
871914
|
additionalFilepaths,
|
|
@@ -872439,6 +872472,13 @@ ${err.stack}`);
|
|
|
872439
872472
|
}
|
|
872440
872473
|
}
|
|
872441
872474
|
const additionalFilepaths = project.apiWorkspaces.flatMap((workspace) => workspace.getAbsoluteFilePaths());
|
|
872475
|
+
if (previewResult != null) {
|
|
872476
|
+
const externalDocsPaths = getExternalDocsWatchPaths(absoluteFilePathToFern, previewResult.docsDefinition);
|
|
872477
|
+
if (externalDocsPaths.length > 0) {
|
|
872478
|
+
context3.logger.debug(`Watching external docs directories: ${externalDocsPaths.join(", ")}`);
|
|
872479
|
+
additionalFilepaths.push(...externalDocsPaths);
|
|
872480
|
+
}
|
|
872481
|
+
}
|
|
872442
872482
|
const bundleRoot = bundlePath ? AbsoluteFilePath2.of(import_path72.default.resolve(bundlePath)) : getPathToBundleFolder({ cacheDir });
|
|
872443
872483
|
const watcher = await createDocsPreviewWatcher({
|
|
872444
872484
|
absoluteFilePathToFern,
|
|
@@ -900470,7 +900510,7 @@ var LegacyDocsPublisher = class {
|
|
|
900470
900510
|
previewId,
|
|
900471
900511
|
disableTemplates: void 0,
|
|
900472
900512
|
skipUpload,
|
|
900473
|
-
cliVersion: "5.55.
|
|
900513
|
+
cliVersion: "5.55.2",
|
|
900474
900514
|
loginCommand: "fern auth login"
|
|
900475
900515
|
});
|
|
900476
900516
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -966739,7 +966779,7 @@ function getAutomationContextFromEnv() {
|
|
|
966739
966779
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
966740
966780
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
966741
966781
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
966742
|
-
cli_version: "5.55.
|
|
966782
|
+
cli_version: "5.55.2"
|
|
966743
966783
|
};
|
|
966744
966784
|
}
|
|
966745
966785
|
function isAutomationMode() {
|
|
@@ -967571,7 +967611,7 @@ var CliContext = class _CliContext {
|
|
|
967571
967611
|
if (false) {
|
|
967572
967612
|
this.logger.error("CLI_VERSION is not defined");
|
|
967573
967613
|
}
|
|
967574
|
-
return "5.55.
|
|
967614
|
+
return "5.55.2";
|
|
967575
967615
|
}
|
|
967576
967616
|
getCliName() {
|
|
967577
967617
|
if (false) {
|
package/package.json
CHANGED