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:
parent
60b3103314
commit
119b80d449
17 changed files with 31 additions and 33 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue