You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we're including too much code in the package itself, including both dist and src directories. The way the node_modules subfolder is structured means that we cannot import from the pundit package directly.
An index.js should be included in the root of the package
We shouldn't include uncompiled TypeScript code in the package
import { Policy, When, PunditProvider } from 'pundit/dist/pundit.mjs' should become import { Policy, When, PunditProvider } from 'pundit'
The text was updated successfully, but these errors were encountered:
Currently we're including too much code in the package itself, including both
dist
andsrc
directories. The way thenode_modules
subfolder is structured means that we cannot import from thepundit
package directly.index.js
should be included in the root of the packageimport { Policy, When, PunditProvider } from 'pundit/dist/pundit.mjs'
should becomeimport { Policy, When, PunditProvider } from 'pundit'
The text was updated successfully, but these errors were encountered: