bruno
bruno copied to clipboard
Add Support for Multiple Import Styles in Bruno Converters
Description
- Modified
src/index.jsto support both default and named exports - Added proper exports configuration in
package.json - Updated build configuration to handle both CommonJS and ESM formats
Details
- Added support for three import styles:
- Default Import:
import brunoConverters from "@usebruno/converters"; const { insomniaToBruno } = brunoConverters; - Named Import:
import { insomniaToBruno } from "@usebruno/converters"; - CommonJS:
const { insomniaToBruno } = require("@usebruno/converters");
- Default Import:
Contribution Checklist:
- [x] The pull request only addresses one issue or adds one feature.
- [x] The pull request does not introduce any breaking changes
- [ ] I have added screenshots or gifs to help explain the change if applicable.
- [ ] I have read the contribution guidelines.
- [ ] Create an issue and link to the pull request.
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.