Fix capnp workaround to work with newest Meteor and Node 12.x.

Thanks to kentonv !
This commit is contained in:
Lauri Ojansivu 2020-04-13 02:09:46 +03:00
parent 4bc6ad3b4c
commit b2d546579c

View file

@ -22,9 +22,7 @@ const sandstormBoard = {
if (isSandstorm && Meteor.isServer) {
const fs = require('fs');
const pathParts = process.cwd().split('/');
const path = pathParts.join('/');
const Capnp = Npm.require(`${path}../../../node_modules/capnp.js`);
const Capnp = Npm.require(`capnp`);
const Package = Capnp.importSystem('sandstorm/package.capnp');
const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp');
const Identity = Capnp.importSystem('sandstorm/identity.capnp');