Skip to content

Commit

Permalink
Remove unneeded PouchDB dependencies (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
SCdF authored Mar 15, 2019
1 parent e8eaf11 commit c2342e0
Show file tree
Hide file tree
Showing 5 changed files with 207 additions and 646 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var parseSource = function(url) {
};

var rsvp = require('rsvp'),
couchdb = require('pouchdb')(env.couchdbUrl),
couchdb = require('./db')(env.couchdbUrl),
db = require('pg-promise')({ 'promiseLib': rsvp.Promise })(env.postgresqlUrl),
couch2pgMigrator = require('./lib/migrator'),
couch2pg = require('./lib/importer')(
Expand Down
4 changes: 4 additions & 0 deletions db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var PouchDB = require('pouchdb-core');
PouchDB.plugin(require('pouchdb-adapter-http'));

module.exports = PouchDB;
Loading

0 comments on commit c2342e0

Please sign in to comment.