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
ref https://linear.app/ghost/issue/PRO-1465
The AdapterManager was designed to support loading from node_modules by passing
an empty string for the adapter storage path. The idea was that `require` would
get called with just the name of the adapter, rather than a path prefix.
This however was not working, because we were prefixing the adapter name with a
subdirectory. This was so that we would load e.g. storages adapters from e.g.
`content/adapters/storage` instead of `content/adapters`
this breaks loading from node modules because we would attempt to require
`storage/node-module` instead of `node-module`
I've added a test here to make sure this doesn't regress, the fix is scoped
only to loading from the empty string path.
0 commit comments