diff --git a/build/index.js b/build/index.js index 59cb221..cfeef76 100755 --- a/build/index.js +++ b/build/index.js @@ -38,7 +38,7 @@ var restoreAccountCredentialsPathParamDescription = 'Google Cloud account creden var prettyPrintParamKey = 'prettyPrint'; var prettyPrintParamDescription = 'JSON backups done with pretty-printing.'; -var version = require('./package.json').version; +var version = require('../package.json').version; _commander2.default.version(version).option('-a, --' + accountCredentialsPathParamKey + ' ', accountCredentialsPathParamDescription).option('-B, --' + backupPathParamKey + ' ', backupPathParamDescription).option('-a2, --' + restoreAccountCredentialsPathParamKey + ' ', restoreAccountCredentialsPathParamDescription).option('-P, --' + prettyPrintParamKey, prettyPrintParamDescription).parse(_process2.default.argv); @@ -173,4 +173,4 @@ accountDb.getCollections().then(function (collections) { return backupCollection(collection, backupPath + '/' + collection.id, '/'); }; })); -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index cb0f4c1..c94183a 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build": "babel -d ./build index.js", "prepublishOnly": "npm run clean && npm run build" }, - "bin": "./bin/firestore-backup.js", + "bin": "./bin/firestore-backup-restore.js", "dependencies": { "babel-cli": "^6.26.0", "babel-preset-env": "^1.6.1",