1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

removing fiddling with require.paths from CoffeeScript

This commit is contained in:
Jeremy Ashkenas 2010-03-15 20:39:46 -07:00
parent 60b3103314
commit 119b80d449
17 changed files with 31 additions and 33 deletions

View file

@ -8,8 +8,8 @@
// External dependencies.
fs = require('fs');
path = require('path');
optparse = require('optparse');
CoffeeScript = require('coffee-script');
optparse = require('./optparse');
CoffeeScript = require('./coffee-script');
// The help banner that is printed when `coffee` is called without arguments.
BANNER = "coffee compiles CoffeeScript source files into JavaScript.\n\nUsage:\n coffee path/to/script.coffee";
// The list of all the valid option flags that `coffee` knows how to handle.
@ -31,7 +31,7 @@
return version();
}
if (options.interactive) {
return require('repl');
return require('./repl');
}
if (options.stdio) {
return compile_stdio();