Repository navigation
Add root TypeScript exports while preserving explicit stylesheet imports - #28
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Add support for importing TypeScript constants from package root
Add root TypeScript exports while preserving explicit stylesheet imports
Jul 15, 2026
bklaing2
requested changes
Jul 15, 2026
github-actions
Bot
force-pushed
the
copilot/implement-ts-constants-import
branch
from
July 15, 2026 18:21
7556157 to
e606ce9
Compare
bklaing2
marked this pull request as ready for review
July 15, 2026 18:22
bklaing2
approved these changes
Jul 15, 2026
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.
This updates
maltipoofrom a stylesheet-only package to a dual-purpose package: root imports now resolve to a JS/TS module for shared constants, while compiled CSS remains available via explicit stylesheet subpaths. Existingdist/stylesheetsoutputs are preserved, and package exports now define the supported import surface directly.Package entrypoints
dist/index.jswithdist/index.d.tstypingsmaltipoo/stylesheets/doi.cssmaltipoo/stylesheets/doi.min.cssmaltipoo/dist/stylesheets/*TypeScript constants
src/index.tsentrypointDATACITE_PRIMARY_DARK_BLUEDATACITE_PRIMARY_LIGHT_BLUEBuild output
dist/index.jsdist/index.d.tsdist/stylesheets/doi.cssdist/stylesheets/doi.min.cssDocumentation
maltipoomaltipoo/stylesheets/doi.min.cssdist/stylesheetsimportsExample usage: