Skip to content

Commit 24ac1b5

Browse files
committed
fix: default VIEW_ADAPTER, missing package in build-module
1 parent c0f7ca0 commit 24ac1b5

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

bin/build-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var AGGRESSIVELY_BUNDLED_PACKAGES =
3131
var 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

3636
function buildModule(filepath) {
3737
var pkg = require(path.resolve(filepath, 'package.json'));

bin/run-test.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ fi
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

2229
pouchdb-setup-server() {
2330
# in CI, link pouchdb-servers dependencies on pouchdb

0 commit comments

Comments
 (0)