File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ var AGGRESSIVELY_BUNDLED_PACKAGES =
3131var BROWSER_ONLY_PACKAGES =
3232 [ 'pouchdb-browser' ] ;
3333// packages that only use the browser field to ignore dependencies
34- var BROWSER_DEPENDENCY_ONLY_PACKAGES = [ ] ;
34+ var BROWSER_DEPENDENCY_ONLY_PACKAGES = [ 'pouchdb-adapter-nodesqlite' ] ;
3535
3636function buildModule ( filepath ) {
3737 var pkg = require ( path . resolve ( filepath , 'package.json' ) ) ;
Original file line number Diff line number Diff line change 1616
1717: " ${CLIENT:= node} "
1818: " ${COUCH_HOST:= http:// 127.0.0.1: 5984} "
19- : " ${VIEW_ADAPTERS:= nodesqlite} "
20- export VIEW_ADAPTERS
19+
20+ if [ -z " $VIEW_ADAPTERS " ]; then
21+ if [ " $CLIENT " == " node" ]; then
22+ export VIEW_ADAPTERS=" nodesqlite"
23+ else
24+ export VIEW_ADAPTERS=" indexeddb"
25+ fi
26+ fi
27+
2128
2229pouchdb-setup-server () {
2330 # in CI, link pouchdb-servers dependencies on pouchdb
You can’t perform that action at this time.
0 commit comments