Files
meteor/tools/tests/apps/modules/server/only.js
Ben Newman bdee913b1b Support npm packages with native .node "main" modules.
Note that the value of the "main" property must include the ".node"
extension explicitly, because I have yet to encounter an npm package with
a native "main" module that omits the ".node" extension, and I am loathe
to start calling files.stat(id + ".node") uselessly for every single
missing module.

Fixes #7947.
2016-10-23 17:43:06 -04:00

18 lines
413 B
JavaScript

import assert from "assert";
import "github";
import "aws-sdk";
import "stripe";
import "winston";
import "mssql";
// This package has a native .node module as the "main" property of its
// package.json file. (#7947)
import { start } from "idle-gc";
assert.strictEqual(typeof start, "function");
assert.strictEqual(Meteor.isServer, true);
assert.strictEqual(Meteor.isClient, false);
export default module.id;