diff options
-rw-r--r-- | .eslintrc.json | 3 | ||||
-rw-r--r-- | sandstorm.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index ba0437e0..8bd678b3 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -130,6 +130,7 @@ "HTTP": true, "AccountSettings": true, "Announcements": true, - "Swimlanes": true + "Swimlanes": true, + "Npm": true } } diff --git a/sandstorm.js b/sandstorm.js index bb3e5011..3dcbf03c 100644 --- a/sandstorm.js +++ b/sandstorm.js @@ -22,9 +22,9 @@ const sandstormBoard = { if (isSandstorm && Meteor.isServer) { const fs = require('fs'); - const pathParts = process.cwd().split("/"); - var path = pathParts.join("/"); - const Capnp = Npm.require(path + "../../../node_modules/capnp.js"); + const pathParts = process.cwd().split('/'); + const path = pathParts.join('/'); + const Capnp = Npm.require(`${path}../../../node_modules/capnp.js`); const Package = Capnp.importSystem('sandstorm/package.capnp'); const Powerbox = Capnp.importSystem('sandstorm/powerbox.capnp'); const Identity = Capnp.importSystem('sandstorm/identity.capnp'); |