From 0ec9024bb8c0b8474478ba1f96a61fd560766217 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Wed, 16 Nov 2022 12:24:52 +0100 Subject: [PATCH] only run export and import from a local strapi folder --- packages/core/strapi/bin/strapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/strapi/bin/strapi.js b/packages/core/strapi/bin/strapi.js index cf7953802c..72e7f31db3 100755 --- a/packages/core/strapi/bin/strapi.js +++ b/packages/core/strapi/bin/strapi.js @@ -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('') .allowExcessArguments(false) - .action(require('../lib/commands/transfer/import')); + .action(getLocalScript('transfer/import')); program.parseAsync(process.argv);