mirror of
https://github.com/strapi/strapi.git
synced 2025-09-03 22:03:08 +00:00
make email, upload, CM and CTB plugins internal
This commit is contained in:
parent
c1bc942632
commit
70eec366f9
@ -13,13 +13,9 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/admin": "3.6.8",
|
"@strapi/admin": "3.6.8",
|
||||||
"@strapi/plugin-content-manager": "3.6.8",
|
|
||||||
"@strapi/plugin-content-type-builder": "3.6.8",
|
|
||||||
"@strapi/plugin-documentation": "3.6.8",
|
"@strapi/plugin-documentation": "3.6.8",
|
||||||
"@strapi/plugin-email": "3.6.8",
|
|
||||||
"@strapi/plugin-graphql": "3.6.8",
|
"@strapi/plugin-graphql": "3.6.8",
|
||||||
"@strapi/plugin-i18n": "3.6.8",
|
"@strapi/plugin-i18n": "3.6.8",
|
||||||
"@strapi/plugin-upload": "3.6.8",
|
|
||||||
"@strapi/plugin-users-permissions": "3.6.8",
|
"@strapi/plugin-users-permissions": "3.6.8",
|
||||||
"@strapi/provider-email-mailgun": "3.6.8",
|
"@strapi/provider-email-mailgun": "3.6.8",
|
||||||
"@strapi/provider-upload-aws-s3": "3.6.8",
|
"@strapi/provider-upload-aws-s3": "3.6.8",
|
||||||
|
@ -3,11 +3,17 @@
|
|||||||
const { dirname, join } = require('path');
|
const { dirname, join } = require('path');
|
||||||
const { statSync, existsSync } = require('fs');
|
const { statSync, existsSync } = require('fs');
|
||||||
const _ = require('lodash');
|
const _ = require('lodash');
|
||||||
const { get, has, pick, pickBy, defaultsDeep, map, prop, pipe } = require('lodash/fp');
|
const { get, has, pick, pickBy, defaultsDeep, map, prop, pipe, keys } = require('lodash/fp');
|
||||||
const { isKebabCase } = require('@strapi/utils');
|
const { isKebabCase } = require('@strapi/utils');
|
||||||
const loadConfigFile = require('../../app-configuration/load-config-file');
|
const loadConfigFile = require('../../app-configuration/load-config-file');
|
||||||
|
|
||||||
const isStrapiPlugin = info => get('strapi.kind', info) === 'plugin';
|
const isStrapiPlugin = info => get('strapi.kind', info) === 'plugin';
|
||||||
|
const INTERNAL_PLUGINS = [
|
||||||
|
'@strapi/plugin-content-manager',
|
||||||
|
'@strapi/plugin-content-type-builder',
|
||||||
|
'@strapi/plugin-email',
|
||||||
|
'@strapi/plugin-upload',
|
||||||
|
];
|
||||||
|
|
||||||
const validatePluginName = pluginName => {
|
const validatePluginName = pluginName => {
|
||||||
if (!isKebabCase(pluginName)) {
|
if (!isKebabCase(pluginName)) {
|
||||||
@ -42,8 +48,13 @@ const toDetailedDeclaration = declaration => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getEnabledPlugins = async strapi => {
|
const getEnabledPlugins = async strapi => {
|
||||||
|
const projectDependencies = [
|
||||||
|
...keys(strapi.config.get('info.dependencies', {})),
|
||||||
|
...INTERNAL_PLUGINS,
|
||||||
|
];
|
||||||
|
|
||||||
const installedPlugins = {};
|
const installedPlugins = {};
|
||||||
for (const dep in strapi.config.get('info.dependencies', {})) {
|
for (const dep of projectDependencies) {
|
||||||
const packagePath = join(dep, 'package.json');
|
const packagePath = join(dep, 'package.json');
|
||||||
const packageInfo = require(packagePath);
|
const packageInfo = require(packagePath);
|
||||||
|
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
"@strapi/generators": "3.6.8",
|
"@strapi/generators": "3.6.8",
|
||||||
"@strapi/generate-new": "3.6.8",
|
"@strapi/generate-new": "3.6.8",
|
||||||
"@strapi/logger": "3.6.8",
|
"@strapi/logger": "3.6.8",
|
||||||
|
"@strapi/plugin-content-manager": "3.6.8",
|
||||||
|
"@strapi/plugin-content-type-builder": "3.6.8",
|
||||||
|
"@strapi/plugin-email": "3.6.8",
|
||||||
|
"@strapi/plugin-upload": "3.6.8",
|
||||||
"@strapi/utils": "3.6.8",
|
"@strapi/utils": "3.6.8",
|
||||||
"async": "^2.1.2",
|
"async": "^2.1.2",
|
||||||
"boom": "^7.3.0",
|
"boom": "^7.3.0",
|
||||||
|
@ -52,11 +52,7 @@ module.exports = (projectDirectory, cliArguments) => {
|
|||||||
'@strapi/strapi',
|
'@strapi/strapi',
|
||||||
'@strapi/admin',
|
'@strapi/admin',
|
||||||
'@strapi/utils',
|
'@strapi/utils',
|
||||||
'@strapi/plugin-content-type-builder',
|
|
||||||
'@strapi/plugin-content-manager',
|
|
||||||
'@strapi/plugin-users-permissions',
|
'@strapi/plugin-users-permissions',
|
||||||
'@strapi/plugin-email',
|
|
||||||
'@strapi/plugin-upload',
|
|
||||||
'@strapi/plugin-i18n',
|
'@strapi/plugin-i18n',
|
||||||
],
|
],
|
||||||
additionalsDependencies: {},
|
additionalsDependencies: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user