Conversation
Added JSON import capability with type inference for .mjs/.mts files. Removed unused debug console log statement in bundleprompts.js.
Updated and clarified JSDoc comments for better code readability.
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.
Summary of Changes:
JSON Module Imports: Added improved JSON module support with
importsyntax using{ type: "json" }. This allows for more efficient and readable inclusion of external JSON data.📥 Example:
import sample from "../src/sample.json" with { type: "json" }Exporting Functions: Updated example code to demonstrate how to import and use JSON modules, simplifying integration into existing projects.
💡
Code Styling: Adjusted formatting within the prompt module to improve readability, including trimming unnecessary whitespace and aligning comments for consistency.
📝
Module Configuration: Enhanced module configuration with
verbatimModuleSyntaxandresolveJsonModuleto ensure proper JSON handling:Versioning & Exporting: Fixed formatting in the prompt module file to maintain proper code quality standards:
These changes improve JSON module integration, maintainability, and alignment with modern coding standards while keeping existing public APIs intact. 🛠️