mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
Merge pull request #15483 from strapi/deits/fix-only-schemas
This commit is contained in:
commit
89235fd7fb
@ -273,6 +273,11 @@ class TransferEngine<
|
||||
shouldSkipStage(stage: TransferStage) {
|
||||
const { exclude, only } = this.options;
|
||||
|
||||
// schemas must always be included
|
||||
if (stage === 'schemas') {
|
||||
return false;
|
||||
}
|
||||
|
||||
// everything is included by default unless 'only' has been set
|
||||
let included = isEmpty(only);
|
||||
if (only?.length > 0) {
|
||||
|
||||
@ -99,7 +99,7 @@ const excludeOption = new Option(
|
||||
|
||||
const onlyOption = new Option(
|
||||
'--only <command-separated data types>',
|
||||
`Include only this data. Available types: ${transferDataTypes.join(',')}`
|
||||
`Include only this data (plus schemas). Available types: ${transferDataTypes.join(',')}`
|
||||
).argParser(getParseListWithChoices(transferDataTypes, 'Invalid options for "only"'));
|
||||
|
||||
const validateExcludeOnly = (command) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user