소스 검색

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

Thanks to kentonv !
Lauri Ojansivu 5 년 전
부모
커밋
b2d546579c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      sandstorm.js

+ 1 - 3
sandstorm.js

@@ -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');