Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit fc736de3545f5dc85d785aeb3542f2d6621e7974 1 parent 87be12f
@davglass davglass authored
View
0  package.js → index.js
File renamed without changes
View
2  package.json
@@ -11,7 +11,7 @@
"directories": {
"lib" : "."
},
- "main": "./package.js",
+ "main": "./index.js",
"dependencies": {
"request": "2.9.100"
},
View
2  src/yui/npm.xml
@@ -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">
View
8 src/yui/scripts/npm_package.js
@@ -28,9 +28,9 @@ 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';
@@ -38,9 +38,9 @@ var makeIndex = function(mod, p) {
};
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';
Please sign in to comment.
Something went wrong with that request. Please try again.