fern-api 0.19.24-rc0 → 0.19.24
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/bundle.cjs +30 -15
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -823424,14 +823424,6 @@ var GeneratorOutputSchema = z.discriminatedUnion("location", [
|
|
|
823424
823424
|
RubyGemsOutputLocationSchema
|
|
823425
823425
|
]);
|
|
823426
823426
|
|
|
823427
|
-
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GeneratorPublishMetadataSchema.js
|
|
823428
|
-
var GeneratorPublishMetadataSchema = z.strictObject({
|
|
823429
|
-
"package-description": z.optional(z.string()),
|
|
823430
|
-
email: z.optional(z.string()),
|
|
823431
|
-
"reference-url": z.optional(z.string()),
|
|
823432
|
-
author: z.optional(z.string())
|
|
823433
|
-
});
|
|
823434
|
-
|
|
823435
823427
|
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GithubLicenseCustomSchema.js
|
|
823436
823428
|
var GithubLicenseCustomSchema = z.strictObject({
|
|
823437
823429
|
custom: z.string()
|
|
@@ -823440,6 +823432,15 @@ var GithubLicenseCustomSchema = z.strictObject({
|
|
|
823440
823432
|
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GithubLicenseSchema.js
|
|
823441
823433
|
var GithubLicenseSchema = z.union([z.enum(["MIT", "Apache-2.0"]), GithubLicenseCustomSchema]);
|
|
823442
823434
|
|
|
823435
|
+
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GeneratorPublishMetadataSchema.js
|
|
823436
|
+
var GeneratorPublishMetadataSchema = z.strictObject({
|
|
823437
|
+
"package-description": z.optional(z.string()),
|
|
823438
|
+
email: z.optional(z.string()),
|
|
823439
|
+
"reference-url": z.optional(z.string()),
|
|
823440
|
+
author: z.optional(z.string()),
|
|
823441
|
+
license: z.optional(GithubLicenseSchema)
|
|
823442
|
+
});
|
|
823443
|
+
|
|
823443
823444
|
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GithubCommitAndReleaseSchema.js
|
|
823444
823445
|
var GithubCommitAndReleaseSchema = z.strictObject({
|
|
823445
823446
|
repository: z.string(),
|
|
@@ -823480,7 +823481,8 @@ var GeneratorInvocationSchema = z.strictObject({
|
|
|
823480
823481
|
"ir-version": z.optional(z.string()),
|
|
823481
823482
|
"smart-casing": z.optional(z.boolean()),
|
|
823482
823483
|
"disable-examples": z.optional(z.boolean()),
|
|
823483
|
-
"publish-metadata": z.optional(GeneratorPublishMetadataSchema)
|
|
823484
|
+
"publish-metadata": z.optional(GeneratorPublishMetadataSchema),
|
|
823485
|
+
metadata: z.optional(GeneratorPublishMetadataSchema)
|
|
823484
823486
|
});
|
|
823485
823487
|
|
|
823486
823488
|
// pnp:/home/circleci/project/packages/cli/configuration/lib/generators-yml/schemas/GeneratorGroupSchema.js
|
|
@@ -823631,6 +823633,7 @@ function convertPublishMetadata({ publishMetadata }) {
|
|
|
823631
823633
|
};
|
|
823632
823634
|
}
|
|
823633
823635
|
async function convertOutputMode({ absolutePathToGeneratorsConfiguration, generator }) {
|
|
823636
|
+
var _a4;
|
|
823634
823637
|
if (generator.github != null) {
|
|
823635
823638
|
const indexOfFirstSlash = generator.github.repository.indexOf("/");
|
|
823636
823639
|
const owner = generator.github.repository.slice(0, indexOfFirstSlash);
|
|
@@ -823638,7 +823641,7 @@ async function convertOutputMode({ absolutePathToGeneratorsConfiguration, genera
|
|
|
823638
823641
|
const publishInfo = generator.output != null ? getGithubPublishInfo(generator.output) : void 0;
|
|
823639
823642
|
const license = generator.github.license != null ? await getGithubLicense({
|
|
823640
823643
|
absolutePathToGeneratorsConfiguration,
|
|
823641
|
-
githubLicense: generator.github.license
|
|
823644
|
+
githubLicense: ((_a4 = generator["publish-metadata"]) == null ? void 0 : _a4.license) ?? generator.github.license
|
|
823642
823645
|
}) : void 0;
|
|
823643
823646
|
const mode = generator.github.mode ?? "release";
|
|
823644
823647
|
switch (mode) {
|
|
@@ -827033,7 +827036,7 @@ var AccessTokenPosthogManager = class {
|
|
|
827033
827036
|
properties: {
|
|
827034
827037
|
...event,
|
|
827035
827038
|
...event.properties,
|
|
827036
|
-
version: "0.19.24
|
|
827039
|
+
version: "0.19.24",
|
|
827037
827040
|
usingAccessToken: true
|
|
827038
827041
|
}
|
|
827039
827042
|
});
|
|
@@ -827095,7 +827098,7 @@ var UserPosthogManager = class {
|
|
|
827095
827098
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
827096
827099
|
event: "CLI",
|
|
827097
827100
|
properties: {
|
|
827098
|
-
version: "0.19.24
|
|
827101
|
+
version: "0.19.24",
|
|
827099
827102
|
...event,
|
|
827100
827103
|
...event.properties
|
|
827101
827104
|
}
|
|
@@ -839474,9 +839477,21 @@ function buildEnumTypeDeclaration(schema2) {
|
|
|
839474
839477
|
if (schema2.description != null) {
|
|
839475
839478
|
enumSchema.docs = schema2.description;
|
|
839476
839479
|
}
|
|
839480
|
+
const uniqueEnumName = /* @__PURE__ */ new Set();
|
|
839481
|
+
const uniqueEnumSchema = {
|
|
839482
|
+
...enumSchema,
|
|
839483
|
+
enum: []
|
|
839484
|
+
};
|
|
839485
|
+
for (const enumValue of enumSchema.enum) {
|
|
839486
|
+
const name2 = typeof enumValue === "string" ? enumValue : enumValue.name ?? enumValue.value;
|
|
839487
|
+
if (!uniqueEnumName.has(name2.toLowerCase())) {
|
|
839488
|
+
uniqueEnumSchema.enum.push(enumValue);
|
|
839489
|
+
uniqueEnumName.add(name2.toLowerCase());
|
|
839490
|
+
}
|
|
839491
|
+
}
|
|
839477
839492
|
return {
|
|
839478
839493
|
name: schema2.nameOverride ?? schema2.generatedName,
|
|
839479
|
-
schema:
|
|
839494
|
+
schema: uniqueEnumSchema
|
|
839480
839495
|
};
|
|
839481
839496
|
}
|
|
839482
839497
|
function buildReferenceTypeDeclaration({ schema: schema2, context, declarationFile }) {
|
|
@@ -851112,10 +851127,10 @@ var CliContext = class {
|
|
|
851112
851127
|
return "fern-api";
|
|
851113
851128
|
}
|
|
851114
851129
|
getPackageVersion() {
|
|
851115
|
-
if ("0.19.24
|
|
851130
|
+
if ("0.19.24" == null) {
|
|
851116
851131
|
this.logger.error("CLI_VERSION is not defined");
|
|
851117
851132
|
}
|
|
851118
|
-
return "0.19.24
|
|
851133
|
+
return "0.19.24";
|
|
851119
851134
|
}
|
|
851120
851135
|
getCliName() {
|
|
851121
851136
|
if ("fern" == null) {
|