mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
If a Meteor package had a file called index.js, the runtime module system would resolve "meteor/<name>" to "/node_modules/meteor/<name>/index.js", instead of falling back to Package[<name>] as expected. Installing a stub for Package[<name>] at /node_modules/meteor/<name>.js means the runtime module system no longer needs the fallback, and will no longer be confused by index.js files. Fixes #6590.
17 lines
380 B
JavaScript
17 lines
380 B
JavaScript
Package.describe({
|
|
name: "modules",
|
|
version: "0.6.0",
|
|
summary: "CommonJS module system",
|
|
documentation: "README.md"
|
|
});
|
|
|
|
Package.onUse(function(api) {
|
|
api.use("underscore");
|
|
api.use("modules-runtime");
|
|
api.mainModule("client.js", "client");
|
|
api.mainModule("server.js", "server");
|
|
api.export("meteorInstall");
|
|
api.export("Buffer");
|
|
api.export("process");
|
|
});
|