fern-api 0.19.24-rc2 → 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.
Files changed (2) hide show
  1. package/bundle.cjs +19 -16
  2. 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-rc2",
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-rc2",
827101
+ version: "0.19.24",
827099
827102
  ...event,
827100
827103
  ...event.properties
827101
827104
  }
@@ -839481,9 +839484,9 @@ function buildEnumTypeDeclaration(schema2) {
839481
839484
  };
839482
839485
  for (const enumValue of enumSchema.enum) {
839483
839486
  const name2 = typeof enumValue === "string" ? enumValue : enumValue.name ?? enumValue.value;
839484
- if (!uniqueEnumName.has(name2)) {
839487
+ if (!uniqueEnumName.has(name2.toLowerCase())) {
839485
839488
  uniqueEnumSchema.enum.push(enumValue);
839486
- uniqueEnumName.add(name2);
839489
+ uniqueEnumName.add(name2.toLowerCase());
839487
839490
  }
839488
839491
  }
839489
839492
  return {
@@ -851124,10 +851127,10 @@ var CliContext = class {
851124
851127
  return "fern-api";
851125
851128
  }
851126
851129
  getPackageVersion() {
851127
- if ("0.19.24-rc2" == null) {
851130
+ if ("0.19.24" == null) {
851128
851131
  this.logger.error("CLI_VERSION is not defined");
851129
851132
  }
851130
- return "0.19.24-rc2";
851133
+ return "0.19.24";
851131
851134
  }
851132
851135
  getCliName() {
851133
851136
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.19.24-rc2",
3
+ "version": "0.19.24",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",