From b6f16098413cb15fc7df54db40338ff6b00e66cb Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 12 Aug 2026 22:17:46 +0000
Subject: [PATCH 1/3] Use ScrollWalkthrough for npm publishing config steps
---
.../typescript/publishing-to-npm.mdx | 80 ++++++-------------
1 file changed, 26 insertions(+), 54 deletions(-)
diff --git a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
index bc78f73e4..8cd7c1015 100644
--- a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
+++ b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
@@ -38,60 +38,32 @@ Default to OIDC authentication unless the user has a specific reason to use toke
Update your `generators.yml` file to configure the package name, output location, and client naming for npm publishing. Your `generators.yml` [should live in your source repository](/learn/sdks/overview/project-structure) (or on your local machine), not the repository that contains your TypeScript SDK code.
-
-
-
- In the `group` for your TypeScript SDK, change the output location from `local-file-system` (the default) to `npm` to indicate that Fern should publish your package directly to the npmjs registry:
-
- ```yaml {6-7} title="generators.yml"
- groups:
- ts-sdk: # Group name for your TypeScript SDK
- generators:
- - name: fern-typescript-sdk
- version:
- output:
- location: npm
- ```
-
-
-
-
-
- Your package name must be unique in the npmjs registry, otherwise publishing your SDK will fail.
-
- ```yaml {8} title="generators.yml"
- groups:
- ts-sdk:
- generators:
- - name: fern-typescript-sdk
- version:
- output:
- location: npm
- package-name: your-package-name
- ```
-
-
-
-
-
- The `namespaceExport` option controls the name of the generated client. This is the name customers use to import your SDK (`import { your-client-name } from 'your-package-name';`).
-
- ```yaml {9-10} title="generators.yml"
- groups:
- ts-sdk:
- generators:
- - name: fern-typescript-sdk
- version:
- output:
- location: npm
- package-name: your-package-name
- config:
- namespaceExport: YourClientName # must be PascalCase
- ```
-
-
-
-
+
+
+ In the `group` for your TypeScript SDK, change the output location from `local-file-system` (the default) to `npm` to indicate that Fern should publish your package directly to the npmjs registry.
+
+
+
+ Your package name must be unique in the npmjs registry, otherwise publishing your SDK will fail.
+
+
+
+ The `namespaceExport` option controls the name of the generated client. This is the name customers use to import your SDK (`import { your-client-name } from 'your-package-name';`).
+
+
+ ```yaml generators.yml
+ groups:
+ ts-sdk: # Group name for your TypeScript SDK
+ generators:
+ - name: fern-typescript-sdk
+ version:
+ output:
+ location: npm
+ package-name: your-package-name
+ config:
+ namespaceExport: YourClientName # must be PascalCase
+ ```
+
## Configure GitHub publishing
From 7dcb6ad73b181e1fb4ed34539690b1e010291568 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 12 Aug 2026 22:21:32 +0000
Subject: [PATCH 2/3] Widen scroll walkthrough panel on npm publishing page
---
fern/products/sdks/generators/typescript/publishing-to-npm.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
index 8cd7c1015..3210be14e 100644
--- a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
+++ b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
@@ -38,7 +38,7 @@ Default to OIDC authentication unless the user has a specific reason to use toke
Update your `generators.yml` file to configure the package name, output location, and client naming for npm publishing. Your `generators.yml` [should live in your source repository](/learn/sdks/overview/project-structure) (or on your local machine), not the repository that contains your TypeScript SDK code.
-
+
In the `group` for your TypeScript SDK, change the output location from `local-file-system` (the default) to `npm` to indicate that Fern should publish your package directly to the npmjs registry.
From 2ec898388cee3dbbcb83431ebcbf9f7edb061d14 Mon Sep 17 00:00:00 2001
From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com>
Date: Wed, 12 Aug 2026 23:11:03 +0000
Subject: [PATCH 3/3] Use highlight instead of focus in npm publishing
walkthrough
---
.../sdks/generators/typescript/publishing-to-npm.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
index 3210be14e..c04fa200b 100644
--- a/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
+++ b/fern/products/sdks/generators/typescript/publishing-to-npm.mdx
@@ -39,15 +39,15 @@ Default to OIDC authentication unless the user has a specific reason to use toke
Update your `generators.yml` file to configure the package name, output location, and client naming for npm publishing. Your `generators.yml` [should live in your source repository](/learn/sdks/overview/project-structure) (or on your local machine), not the repository that contains your TypeScript SDK code.
-
+
In the `group` for your TypeScript SDK, change the output location from `local-file-system` (the default) to `npm` to indicate that Fern should publish your package directly to the npmjs registry.
-
+
Your package name must be unique in the npmjs registry, otherwise publishing your SDK will fail.
-
+
The `namespaceExport` option controls the name of the generated client. This is the name customers use to import your SDK (`import { your-client-name } from 'your-package-name';`).