dev-launchers / dev-launchers-platform

Monorepo for all DevLaunchers internal products and libraries used by the official platform

Home Page:https://devlaunchers.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Figure out a better export system

Enjoy2Live opened this issue · comments

Currently component consumers are struggling to find the component they're looking for, it would be nice if we can utilize "exports" field in package.json to allow for better importing experience for the consumers and to allow for automating the documentation page in storybook to have the import statement (in the future).

Example of our current importing system: import SomeMolecule from "@devlaunchers/components/src/components/molecules/SomeMolecule/SomeMolecule.tsx"

You can see how unnecessary is to write all of this....

We can take inspiration from this
storybook
repo

Acceptance Criteria

  • Scenario: Export system improvement
  • Given the component consumers are struggling to find the component they're looking for
  • When we utilize "exports" field in package.json
  • Then the consumers will have a better importing experience
  • And the documentation page in storybook will have the import statement
  • And the automation for that will take place in the future