Permalink
Browse files

Migrated from package.js to index.js for easier requiring

  • Loading branch information...
1 parent 87be12f commit fc736de3545f5dc85d785aeb3542f2d6621e7974 @davglass davglass committed Feb 1, 2012
Showing with 6 additions and 6 deletions.
  1. 0 package.js → index.js
  2. +1 −1 package.json
  3. +1 −1 src/yui/npm.xml
  4. +4 −4 src/yui/scripts/npm_package.js
View
File renamed without changes.
View
@@ -11,7 +11,7 @@
"directories": {
"lib" : "."
},
- "main": "./package.js",
+ "main": "./index.js",
"dependencies": {
"request": "2.9.100"
},
View
@@ -16,7 +16,7 @@
</copy>
<copy file="../../package.json" tofile="${outdir}/package.json"/>
- <copy file="./scripts/npm_package_shim.js" tofile="${outdir}/package.js"/>
+ <copy file="./scripts/npm_package_shim.js" tofile="${outdir}/index.js"/>
<echo level="info">Running Node.js package script</echo>
<exec executable="node" failonerror="true" searchpath="true" resolveexecutable="true">
@@ -28,19 +28,19 @@ if (!path.existsSync(start)) {
process.chdir(start);
var makeIndex = function(mod, p) {
- var o = '../package';
+ var o = '../index';
if (p) {
- o = './package';
+ o = './index';
}
var str = 'var inst = require("' + o + '").getInstance();\n';
str += 'module.exports = inst.use("' + mod + '");\n';
return str;
};
var makeDebug = function(mod, p) {
- var o = '../package';
+ var o = '../index';
if (p) {
- o = './package';
+ o = './index';
}
var str = 'var inst = require("' + o + '").getInstance();\n';
str += 'inst.applyConfig({ debug: true, filter: "debug" });\n';

0 comments on commit fc736de

Please sign in to comment.