Repository navigation
refactor(config-typescript): extend the shared typescript library config - #416
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://extend-library-config-uxf-953.styleframe.dev, https://extend-library-config-uxf-953-styleframe.uxfront.workers.dev (commit 48fcbad)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://extend-library-config-uxf-953.play.styleframe.dev, https://extend-library-config-uxf-953-styleframe-playground.uxfront.workers.dev (commit 48fcbad)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://extend-library-config-uxf-953.storybook.styleframe.dev, https://extend-library-config-uxf-953-styleframe-storybook.uxfront.workers.dev (commit 48fcbad)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
alexgrozav
marked this pull request as ready for review
November 22, 2026 08:41
This was referenced Nov 22, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
@styleframe/config-typescriptpackage repeated the first 11 options of@uxfront/typescript-configand added the library options by hand. ItsoutDir: "dist"also resolved inside this config package, not in the package that extends it, soengine/coreresolvedoutDirto../../config/typescript/dist.It now extends
@uxfront/typescript-config/library.json(0.2.0) and sets only what differs from it:module: "esnext",moduleResolution: "bundler",declarationMapandsourceMap. It also sets"include": ["${configDir}/**/*"], since the base's ownincluderesolves insidenode_modules, and a config that relied on the defaultinclude, like the roottsconfig.json, would match nothing. Along with that, this PR changes three more things:@uxfront/typescript-configis adependency(from the default catalog,^0.2.0), because a project that extends this config resolves it at type-check time.config/AGENTS.mdnow says what the package extends, lists only its own options, and explains thedist/srcoutput layout and theexcludea customoutDirneeds.@styleframe/config-typescript.These are the checks I ran:
tsc --showConfigin all 15 configs that extend it (the root, the engine, theme, tooling and testing packages) gives the samecompilerOptionsand the samefilesbefore and after, apart fromoutDir(now./dist),noEmit(nowfalse, or the package's owntruein the plugin playground) andexclude. Everytypecheckscript runstsc --noEmit, so nothing new is written.pnpm build:nodocswrites byte-identicaldist/output (2,400 files,shasum) with the old and the new config."@uxfront/typescript-config": "^0.2.0", notcatalog:.outDir, with"outDir": "dist", with"outDir": "lib"plus the documentedexclude, and with"outDir": "lib"plus"include": ["src"].Related issue
None in this repository.
Type of change
Checklist
feat(theme): …)pnpm build:nodocs && pnpm lint && pnpm typecheck && pnpm testand everything passespnpm changeset) for changes to publishable packages, or this change only touches docs/storybook/app/playground/testsdist/,.styleframe/)mainand stays focused in scopeNotes / screenshots
The scope box refers to the PR title, which becomes the squash commit. The first commit on the branch has no scope. No tests changed, since the package is a config file and the checks above cover it. The format check (
pnpm format:check) passes too.For external users of
@styleframe/config-typescript, the change behaves differently in three ways:outDirnow writes to its owndist, where before it wrote insidenode_modules/@styleframe/config-typescript/dist.includeis the project's own files. A project with noincludenow type-checks every file in its own folder.outDirneeds anexclude. A project that sets its ownoutDirordeclarationDiroutsidedistand keeps the defaultincludenow stops withTS5055on its second build, because the inheritedexcludereplaces TypeScript's default one, which left out theoutDir. The fix is one line, anexcludelike["node_modules", "dist", "lib"]or anincludelike["src"], and both the changeset andconfig/AGENTS.mdgive it. On 3.0.1 the same project builds twice. The changeset stays apatch, as the owner decided.