Skip to content

Make CodeMirror base packages configurable - #35

Merged
alexandrecuer merged 9 commits into
mainfrom
feat/codemirror-base-packages-input
Nov 25, 2026
Merged

alexandrecuer merged 9 commits into
mainfrom
feat/codemirror-base-packages-input

Conversation

@alexandrecuer

@alexandrecuer alexandrecuer commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replace the dedicated autocompletion version input with a single base input containing comma-separated package:version pairs (the @codemirror/ scope is added by the workflow).
  • Install every package declared in base.
  • Generate build/codemirror/src/index.js with scripts/generate_entry.py from the selected base packages, so exports for omitted packages are not included.
  • Keep the fixed codemirror and @codemirror/lang-yaml exports in the generated entry point.
  • Include the selected base package versions in the generated bundle/artifact name.

Example base value:

autocomplete:6.0.0,language:6.0.0

The Python generator validates package names, versions, duplicates, and supported package mappings. Its PACKAGE_EXPORTS table defines the public exports exposed for each optional base package.

@alexandrecuer
alexandrecuer merged commit 707a4ce into main Nov 25, 2026
3 checks passed
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.

1 participant