Skip to content

Commit

Permalink
Merge pull request #5 from zishone/dev
Browse files Browse the repository at this point in the history
Fixed issue when apply() is given specPath, its always reverts to ./mongover
  • Loading branch information
zishone committed Aug 3, 2019
2 parents 82ed473 + 23b9f74 commit 202fb0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mongover",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "A MongoDB Server Database Migration Tool",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -20,7 +20,7 @@
"test": "mocha --require ts-node/register test/**/*.test.ts",
"test:coverage": "nyc --reporter=lcov --include dist npm run test",
"test:coveralls": "cat coverage/lcov.info | coveralls",
"prepublish": "npm run build"
"prepare": "npm run build"
},
"dependencies": {
"debug": "^4.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/parse-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function parseOptions(args: any): MongoverOptions {
if (args._ && args._[0]) {
args.specPath = join(process.cwd(), args._[0]);
}
if (!args._ || !args._[0]) {
if ((!args._ || !args._[0]) && !args.specPath) {
args.specPath = join(process.cwd(), 'mongover');
}
if (args.u) {
Expand Down

0 comments on commit 202fb0c

Please sign in to comment.