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