René's URL Explorer Experiment


Title: feat(config): support shared configs with define.extends by chenjiahan · Pull Request #544 · rstackjs/rstack-cli · GitHub

Open Graph Title: feat(config): support shared configs with define.extends by chenjiahan · Pull Request #544 · rstackjs/rstack-cli

X Title: feat(config): support shared configs with define.extends by chenjiahan · Pull Request #544 · rstackjs/rstack-cli

Description: Motivation Allow projects to inherit shared configuration for multiple tools through one API, as proposed in #504. Changes Expose define.extends(configs) and the RstackConfig type from rstack. Shared configs support all seven tools and nested inheritance; they apply from left to right, with project definitions applied last regardless of call order. Reuse the existing config layer composition and lazy tool resolution. Enforce one define.extends() call per config load, including empty arrays, and preserve the direct return path when no shared configs are provided. Keep API behavior and public type tests here. Test cleanup is separate in #545; session isolation and rs check coverage are in #546; shared config reload coverage is in #547. Documentation and examples will follow in a separate PR.

Open Graph Description: Motivation Allow projects to inherit shared configuration for multiple tools through one API, as proposed in #504. Changes Expose define.extends(configs) and the RstackConfig type from rstack. Shar...

X Description: Motivation Allow projects to inherit shared configuration for multiple tools through one API, as proposed in #504. Changes Expose define.extends(configs) and the RstackConfig type from rstack. Shar...

Opengraph URL: https://github.com/rstackjs/rstack-cli/pull/544

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9e57e1e1-ab48-548f-e2f7-236986c1df53
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8E7E:2FA39:5DB1F7:7FA79C:6AEC2FAA
html-safe-nonce34c6c98953fe24dbb13e406fd37ef46dbb87290cb1db3d823aeee4c1bc2e4a11
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTdFOjJGQTM5OjVEQjFGNzo3RkE3OUM6NkFFQzJGQUEiLCJ2aXNpdG9yX2lkIjoiMTYxNTI2MTEwNzg4Mzg4MDM2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb1bf82e20b567e567317de4e8708a1fd8b0afbad358afff9d10f8b39d4059055
hovercard-subject-tagpull_request:4784913047
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/rstackjs/rstack-cli/pull/544/files
twitter:imagehttps://avatars.githubusercontent.com/u/7237365?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/7237365?s=400&v=4
og:image:altMotivation Allow projects to inherit shared configuration for multiple tools through one API, as proposed in #504. Changes Expose define.extends(configs) and the RstackConfig type from rstack. Shar...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef290b7f408d9675a032f84ceb13aaf80220f947c681b4c5d9a7560a59ee32f02
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/rstackjs/rstack-cli git https://github.com/rstackjs/rstack-cli.git
octolytics-dimension-user_id129049372
octolytics-dimension-user_loginrstackjs
octolytics-dimension-repository_id1138027854
octolytics-dimension-repository_nworstackjs/rstack-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1138027854
octolytics-dimension-repository_network_root_nworstackjs/rstack-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasead9a37a663eb727a42b8bacc5e035cc3a24dd058
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/rstackjs/rstack-cli/pull/544/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-cli%2Fpull%2F544%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frstackjs%2Frstack-cli%2Fpull%2F544%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=rstackjs%2Frstack-cli
Reloadhttps://github.com/rstackjs/rstack-cli/pull/544/files
Reloadhttps://github.com/rstackjs/rstack-cli/pull/544/files
Reloadhttps://github.com/rstackjs/rstack-cli/pull/544/files
rstackjshttps://github.com/rstackjs
rstack-clihttps://github.com/rstackjs/rstack-cli
Codehttps://github.com/rstackjs/rstack-cli
Issues3 (3)https://github.com/rstackjs/rstack-cli/issues
Pull requests1 (1)https://github.com/rstackjs/rstack-cli/pulls
Discussionshttps://github.com/rstackjs/rstack-cli/discussions
Actionshttps://github.com/rstackjs/rstack-cli/actions
Projectshttps://github.com/rstackjs/rstack-cli/projects
Security and qualityhttps://github.com/rstackjs/rstack-cli/security
Insightshttps://github.com/rstackjs/rstack-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Frstackjs%2Frstack-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Frstackjs%2Frstack-cli%2Fissues%2Fnew%2Fchoose
chenjiahanhttps://github.com/chenjiahan
mainhttps://github.com/rstackjs/rstack-cli/tree/main
chenjiahan/define-extendshttps://github.com/rstackjs/rstack-cli/tree/chenjiahan/define-extends
Conversation 2 https://github.com/rstackjs/rstack-cli/pull/544
Commits 3 https://github.com/rstackjs/rstack-cli/pull/544/commits
Checks 5 https://github.com/rstackjs/rstack-cli/pull/544/checks
Files changed https://github.com/rstackjs/rstack-cli/pull/544/files
Please reload this pagehttps://github.com/rstackjs/rstack-cli/pull/544/files
feat(config): support shared configs with define.extends https://github.com/rstackjs/rstack-cli/pull/544/files#top
Show all changes 3 commits https://github.com/rstackjs/rstack-cli/pull/544/files
5ded492 feat(config): support shared configs with define.extends chenjiahan Oct 8, 2026 https://github.com/rstackjs/rstack-cli/pull/544/commits/5ded4929bdf08abe4e3c62d28f3ab8ec900ae74a
d491db1 test(config): split follow-up coverage into separate PRs chenjiahan Oct 8, 2026 https://github.com/rstackjs/rstack-cli/pull/544/commits/d491db15e4474bc5095acdc3fc7047eabd63b631
3bc7615 test(config): expand nested objects and remove redundant type case chenjiahan Oct 8, 2026 https://github.com/rstackjs/rstack-cli/pull/544/commits/3bc7615b6d05c07cc31dfa351801d2597760d425
Clear filters https://github.com/rstackjs/rstack-cli/pull/544/files
Please reload this pagehttps://github.com/rstackjs/rstack-cli/pull/544/files
Please reload this pagehttps://github.com/rstackjs/rstack-cli/pull/544/files
config.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
index.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-42bbdbddfb7c1c99d4be15aeeab0391c2ec8e67ce5a2da331c9b461e739b96fc
after.config.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-31ba9f6eb9ad7d5247f1f4f2bd42b00d97cd94c1ec2094af96ca8b5447bf182d
index.test.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-96694a021cbed7579cbe64240df34d15d1ceec7ec4bddc970ee441d0b35cf800
rstack.config.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-d5c2e7fcbb8180093a72d5bf62af7e36eb4ec30008a80cd797c1311d1b5383ac
shared.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-75dfeeb58ce14680ab30792c2fb3cb18b1305add8b1ae5252df473d0411d1aad
duplicate-extends.config.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-1c90d7a8bbbe8a5446ae5ef6f18cf5c558fa5849277326ddbb0a4e3e556154f3
index.test.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
index.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
index.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
index.ts https://github.com/rstackjs/rstack-cli/pull/544/files#diff-65102e2399f251020f75790215670ff3a000e9f25888456fceae83dbdd62b7fe
packages/rstack/src/config.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/src/config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-56cb682bbca3cc1d4f4dccec2feef18640fbe2307c696e5486e813ef96fac871
packages/rstack/src/index.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-42bbdbddfb7c1c99d4be15aeeab0391c2ec8e67ce5a2da331c9b461e739b96fc
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/extends/after.config.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-31ba9f6eb9ad7d5247f1f4f2bd42b00d97cd94c1ec2094af96ca8b5447bf182d
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/extends/after.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/extends/index.test.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-96694a021cbed7579cbe64240df34d15d1ceec7ec4bddc970ee441d0b35cf800
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/extends/index.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/extends/rstack.config.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-d5c2e7fcbb8180093a72d5bf62af7e36eb4ec30008a80cd797c1311d1b5383ac
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/extends/rstack.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/extends/shared.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-75dfeeb58ce14680ab30792c2fb3cb18b1305add8b1ae5252df473d0411d1aad
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/extends/shared.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/load-config/duplicate-extends.config.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-1c90d7a8bbbe8a5446ae5ef6f18cf5c558fa5849277326ddbb0a4e3e556154f3
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/load-config/duplicate-extends.config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
packages/rstack/tests/config/load-config/index.test.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/config/load-config/index.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-e583b438b27b4b3265bc62779bbb7f9aa228526f9bd3c92c4909fde91b8936ee
packages/rstack/tests/types/resolution-bundler/index.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/types/resolution-bundler/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-54102929fbc6530eafd0b5a562aced41c7aa7671457c10fc367cfb16aaf03d19
packages/rstack/tests/types/resolution-nodenext/index.tshttps://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
View file https://github.com/rstackjs/rstack-cli/blob/3bc7615b6d05c07cc31dfa351801d2597760d425/packages/rstack/tests/types/resolution-nodenext/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/rstackjs/rstack-cli/pull/544/{{ revealButtonHref }}
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
https://github.com/rstackjs/rstack-cli/pull/544/files#diff-c1a5eb9463ce312c17977bc8ae4e049e1020d7f01fbc2f6530be5db0706abb44
Please reload this pagehttps://github.com/rstackjs/rstack-cli/pull/544/files
Please reload this pagehttps://github.com/rstackjs/rstack-cli/pull/544/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.