Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't alter `require.paths`.

Feature was removed in node 0.5.x.
  • Loading branch information...
commit a66f12f79e21b28c141c7ae3e46d77bb50f5c3e7 1 parent 450368c
Nathan Rajlich TooTallNate authored
Showing with 3 additions and 6 deletions.
  1. +2 −2 lib/compiler.js
  2. +1 −4 lib/irc.js
4 lib/compiler.js
View
@@ -1,5 +1,5 @@
-var Parser = require( 'parser' )
- , Walker = require( 'walker' )
+var Parser = require( './parser' )
+ , Walker = require( './walker' )
, Compiler = {}
/* ------------------------------ Compiler ------------------------------ */
5 lib/irc.js
View
@@ -12,11 +12,8 @@ var path = require( 'path' )
, Compiler
, deps
-require.paths.unshift( path.join( __dirname, '..', 'node_modules' ) )
-require.paths.unshift( path.join( __dirname ) )
-
/* ------------------------------ Init Junk ------------------------------ */
-Compiler = require( 'compiler' )
+Compiler = require( './compiler' )
/* ------------------------------ MISCELLANEOUS ------------------------------ */
function if_exists( data, no_pad, pad_char ) {
Please sign in to comment.
Something went wrong with that request. Please try again.