bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Add Support for Multiple Import Styles in Bruno Converters

Open ganesh-bruno opened this issue 8 months ago • 0 comments

Description

  • Modified src/index.js to 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:
    1. Default Import:
      import brunoConverters from "@usebruno/converters";
      const { insomniaToBruno } = brunoConverters;
      
    2. Named Import:
      import { insomniaToBruno } from "@usebruno/converters";
      
    3. CommonJS:
      const { insomniaToBruno } = require("@usebruno/converters");
      

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.

ganesh-bruno avatar Apr 18 '25 10:04 ganesh-bruno