Skip to content

Commit

Permalink
Share pinia with extensions
Browse files Browse the repository at this point in the history
Pinia is stable and also the recommended state management lib for Vue 3 🔥
  • Loading branch information
nickrum committed Dec 6, 2021
1 parent 223c70f commit ec4060f
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 65 deletions.
126 changes: 63 additions & 63 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/shared/src/constants/extensions.ts
@@ -1,7 +1,7 @@
export const APP_SHARED_DEPS = ['@directus/extensions-sdk', 'vue', 'vue-router', 'vue-i18n'];
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 APP_EXTENSION_TYPES = ['interface', 'display', 'layout', 'module', 'panel'] as const;
export const APP_EXTENSION_TYPES = ['interface', 'display', 'layout', 'panel', 'module'] as const;
export const API_EXTENSION_TYPES = ['hook', 'endpoint'] as const;
export const EXTENSION_TYPES = [...APP_EXTENSION_TYPES, ...API_EXTENSION_TYPES] as const;

Expand Down

0 comments on commit ec4060f

Please sign in to comment.