Title: Need help! Create alias for entrypoints path · Issue #575 · preconstruct/preconstruct · GitHub
Open Graph Title: Need help! Create alias for entrypoints path · Issue #575 · preconstruct/preconstruct
X Title: Need help! Create alias for entrypoints path · Issue #575 · preconstruct/preconstruct
Description: Thanks for the wonderful library! Is there a way to create alias path in entrypoints? Let me explain the scenario. Library code structure: -src - components - Button - Dropdown If I add the following entrypoints and run npm run fix, it i...
Open Graph Description: Thanks for the wonderful library! Is there a way to create alias path in entrypoints? Let me explain the scenario. Library code structure: -src - components - Button - Dropdown If I add the followi...
X Description: Thanks for the wonderful library! Is there a way to create alias path in entrypoints? Let me explain the scenario. Library code structure: -src - components - Button - Dropdown If I add the followi...
Opengraph URL: https://github.com/preconstruct/preconstruct/issues/575
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Need help! Create alias for entrypoints path","articleBody":"Thanks for the wonderful library!\r\n\r\nIs there a way to create alias path in entrypoints?\r\n\r\nLet me explain the scenario.\r\n\r\nLibrary code structure:\r\n```\r\n-src\r\n - components\r\n - Button\r\n - Dropdown\r\n```\r\n \r\nIf I add the following `entrypoints `and run `npm run fix`, it is creating folders with `package.json` in the root in this structure\r\n\r\n```\r\n- components\r\n - Button\r\n - package.json\r\n - Dropdown\r\n - package.json\r\n- src\r\n```\r\n for this below configuration\r\n\r\n```\r\n\"preconstruct\": {\r\n \"entrypoints\": [\r\n \"index.tsx\", \r\n \"components/Button/index.tsx\",\r\n \"components/Dropdown/index.tsx\" \r\n ]\r\n }\r\n```\r\n\r\nIs there way to setup the entry points to generate folders in root without `components ` folder name? So that team consuming the library can access the components as `import { Button } from '@ABC/Core/Button`\r\n\r\nExpected folder structure:\r\n\r\n```\r\n- Button\r\n - package.json\r\n- Dropdown\r\n - package.json\r\n- src\r\n - components\r\n```\r\n\r\nPlease help in defining `entrypoints ` to get the expected folder structure. \r\n\r\n\r\n","author":{"url":"https://github.com/vinesh20","@type":"Person","name":"vinesh20"},"datePublished":"2023-07-27T02:53:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/575/preconstruct/issues/575"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbb623e9-158a-c708-f797-481506162fae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E24E:34CE3F:845723:B5FE4E:69775932 |
| html-safe-nonce | c76a683d2e971e6c8461d213af80ea4015d0ceabfb0b466792cf3e11c04a7b47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjRFOjM0Q0UzRjo4NDU3MjM6QjVGRTRFOjY5Nzc1OTMyIiwidmlzaXRvcl9pZCI6IjcwODY5ODUxNjQ0ODI4OTQxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e38706f84c4ad56ee63247408534f7b2e3fdb958bb776d2e3fc40a7019e35d7 |
| hovercard-subject-tag | issue:1823521114 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/preconstruct/preconstruct/575/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58b4420df9999f485244192e4e8354b60396d0f24830434b20b26f3d33844920/preconstruct/preconstruct/issues/575 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58b4420df9999f485244192e4e8354b60396d0f24830434b20b26f3d33844920/preconstruct/preconstruct/issues/575 |
| og:image:alt | Thanks for the wonderful library! Is there a way to create alias path in entrypoints? Let me explain the scenario. Library code structure: -src - components - Button - Dropdown If I add the followi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vinesh20 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/preconstruct/preconstruct git https://github.com/preconstruct/preconstruct.git |
| octolytics-dimension-user_id | 44863262 |
| octolytics-dimension-user_login | preconstruct |
| octolytics-dimension-repository_id | 156285001 |
| octolytics-dimension-repository_nwo | preconstruct/preconstruct |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156285001 |
| octolytics-dimension-repository_network_root_nwo | preconstruct/preconstruct |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width