Skip to content

Commit

Permalink
fix(import): fix import path for parseExport
Browse files Browse the repository at this point in the history
  • Loading branch information
acburdine committed Nov 6, 2019
1 parent e0d05c5 commit b2629e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/commands/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const Command = require('../command');
class ImportCommand extends Command {
async run(argv) {
const semver = require('semver');
const {importTask} = require('../tasks/import');
const {importTask, parseExport} = require('../tasks/import');
const {SystemError} = require('../errors');

const instance = this.system.getInstance();
const {version} = importTask.parseExport(argv.file);
const {version} = parseExport(argv.file);

if (semver.major(version) === 0 && semver.major(instance.version) > 1) {
throw new SystemError(`v0.x export files can only be imported by Ghost v1.x versions. You are running Ghost v${instance.version}.`);
Expand Down

0 comments on commit b2629e5

Please sign in to comment.