Skip to content

Commit

Permalink
Include nodefs for the server-side searchindex
Browse files Browse the repository at this point in the history
  • Loading branch information
tadzik committed Jul 14, 2021
1 parent 51399a9 commit 6fecc85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion compilermmxapianapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(!process.env.XAPIAN) {
`-s "EXTRA_EXPORTED_RUNTIME_METHODS=['FS','cwrap','stringToUTF8','UTF8ToString','getValue']" ` +
`-std=c++11 -s DEMANGLE_SUPPORT=1 -s ALLOW_MEMORY_GROWTH=1 ` +
`-I$XAPIAN/include -I$XAPIAN -I$XAPIAN/common rmmxapianapi.cc $XAPIAN/.libs/libxapian.a ` +
`-o dist/xapianasm.js -lidbfs.js`, { stdio: 'inherit' });
`-o dist/xapianasm.js -lidbfs.js -lnodefs.js`, { stdio: 'inherit' });
console.log('Successful build of xapianasm.wasm and xapianasm.js');
} catch(e) {
console.error('Compile failed');
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "runbox-searchindex",
"version": "0.2.1",
"name": "@runboxcom/runbox-searchindex",
"version": "0.2.3",
"scripts": {
"build": "node compilermmxapianapi.js --xapiandir=xapian/xapian-core && tsc",
"test": "mocha-typescript-watch -p tsconfig.json build/test/test.js",
Expand Down

0 comments on commit 6fecc85

Please sign in to comment.