mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 19:56:41 +00:00
Merge pull request #14894 from strapi/deits/cli-check-for-strapi
[DEITS] import / export should require being in local Strapi folder
This commit is contained in:
commit
c6535a15dc
@ -303,7 +303,7 @@ program
|
||||
.arguments('[filename]')
|
||||
.allowExcessArguments(false)
|
||||
.hook('preAction', promptEncryptionKey)
|
||||
.action(require('../lib/commands/transfer/export'));
|
||||
.action(getLocalScript('transfer/export'));
|
||||
|
||||
// `$ strapi import`
|
||||
program
|
||||
@ -329,6 +329,6 @@ program
|
||||
)
|
||||
.arguments('<filename>')
|
||||
.allowExcessArguments(false)
|
||||
.action(require('../lib/commands/transfer/import'));
|
||||
.action(getLocalScript('transfer/import'));
|
||||
|
||||
program.parseAsync(process.argv);
|
||||
|
Loading…
x
Reference in New Issue
Block a user