From 9e0908b5fb094c119c488000bf1512fc758dc41f Mon Sep 17 00:00:00 2001 From: Danyel Cabello Date: Sun, 17 Dec 2017 20:51:58 -0600 Subject: [PATCH] Fix binary --- build/index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",