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 is creating folders with package.json in the root in this structure
- components
- Button
- package.json
- Dropdown
- package.json
- src
for this below configuration
"preconstruct": {
"entrypoints": [
"index.tsx",
"components/Button/index.tsx",
"components/Dropdown/index.tsx"
]
}
Is 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
Expected folder structure:
- Button
- package.json
- Dropdown
- package.json
- src
- components
Please help in defining entrypoints to get the expected folder structure.
Thanks for the wonderful library!
Is there a way to create alias path in entrypoints?
Let me explain the scenario.
Library code structure:
If I add the following
entrypointsand runnpm run fix, it is creating folders withpackage.jsonin the root in this structurefor this below configuration
Is there way to setup the entry points to generate folders in root without
componentsfolder name? So that team consuming the library can access the components asimport { Button } from '@ABC/Core/ButtonExpected folder structure:
Please help in defining
entrypointsto get the expected folder structure.