next-admin icon indicating copy to clipboard operation
next-admin copied to clipboard

[FEATURE] - Remove the in `dist` in next-admin import path

Open quentingrchr opened this issue 1 year ago • 0 comments

Summary

Currently when we import next-admin functions and components we include /dist

import { getNextAdminProps } from "@premieroctet/next-admin/dist/appRouter";

Basic Example

It would be better to only expose certains files of our library using the exports property in the package.json

import { getNextAdminProps } from "@premieroctet/next-admin/appRouter";

Drawbacks

No drawbacks, we should just make sure that the docs is updated with the new improved import and that it doesn't break the old /dist import

Unresolved questions

No response

quentingrchr avatar Aug 09 '24 14:08 quentingrchr