Skip to content
Browse files

move module paths to standalone script

  • Loading branch information...
1 parent bce7b65 commit 64b1f8d1b026c44d3ee60353ae9c7a041b6bc7af @zaach zaach committed Jul 17, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 scripts/standalone.js
View
9 scripts/standalone.js
@@ -19,9 +19,12 @@ function normalizeModules (mods, path) {
}
function generate (path) {
- var pkg = loadPackage(path),
- modules = normalizeModules(pkg.modules, path),
- script = bundler.bundle(modules);
+ var modules = {
+ "reflect.js": "dist/reflect.js",
+ "parser.js": "dist/parser.js",
+ "nodes.js": "dist/nodes.js"
+ };
+ var script = bundler.bundle(normalizeModules(modules, path));
var out = "var Reflect = (function() {\n" + script + ";\nreturn require('reflect').Reflect;\n})();";
require("sys").puts(out);

0 comments on commit 64b1f8d

Please sign in to comment.
Something went wrong with that request. Please try again.