Skip to content

docs(typescript): document packageJsonMergeStrategy - #6815

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1788365635-ts-package-json-merge-strategy
Open

docs(typescript): document packageJsonMergeStrategy#6815
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1788365635-ts-package-json-merge-strategy

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Documents the new TypeScript SDK generator option packageJsonMergeStrategy: 'shallow' | 'deep' (default shallow) on the TypeScript configuration reference, next to packageJson, and adds a pointer from packageJson to it.

Introduced in fern-api/fern#17609. deep lets users add a custom exports condition without redeclaring the generated import/require/default conditions; shallow is the existing behavior where nested objects are replaced wholesale. Should merge after the generator release ships.

Link to Devin session: https://app.devin.ai/sessions/df07e774e6de4b6e9f4a78074bffa093
Open in Devin Desktop: https://app.devin.ai/desktop/session/df07e774e6de4b6e9f4a78074bffa093?variant=devin

Co-Authored-By: bot_apk <apk@cognition.ai>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

default: "./src/index.ts"
```

Removing a generated key (for example dropping the `require` condition) is not expressible under either strategy.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'isn't' instead of 'is not'.

Suggested change
Removing a generated key (for example dropping the `require` condition) is not expressible under either strategy.
Removing a generated key (for example dropping the `require` condition) isn't expressible under either strategy.

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants