Remove extensions-sdk and axios from the list of shared deps (#11099)

This ensures that extensions work with an out-of-root extensions folder.
Instead of leaving the list of API shared deps empty, this adds `directus` as the only shared dep
because it is never a good idea to bundle the Directus API into an extension.
This commit is contained in:
Nicola Krumschmidt
2022-01-17 16:22:52 +01:00
committed by GitHub
parent ff63ed498a
commit 9237a6452a

View File

@@ -1,5 +1,5 @@
export const APP_SHARED_DEPS = ['@directus/extensions-sdk', 'vue', 'vue-router', 'vue-i18n', 'pinia'];
export const API_SHARED_DEPS = ['@directus/extensions-sdk', 'axios'];
export const API_SHARED_DEPS = ['directus'];
export const APP_EXTENSION_TYPES = ['interface', 'display', 'layout', 'module', 'panel'] as const;
export const API_EXTENSION_TYPES = ['hook', 'endpoint'] as const;