mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-13 16:57:54 -05:00
* Un-prefer global (#4543) * 1.12.6 changelog; update NPM module in documentation to be `coffeescript` instead of `coffee-script`; update installation to add note about global vs local `coffee` command * Update packages * Updated output * Simplify changelog
19 lines
543 B
JavaScript
Executable File
19 lines
543 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
var path = require('path');
|
|
var fs = require('fs');
|
|
|
|
var potentialPaths = [
|
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffeescript'),
|
|
path.join(process.cwd(), 'node_modules/coffeescript/lib/coffee-script'),
|
|
path.join(process.cwd(), 'node_modules/coffee-script/lib/coffee-script'),
|
|
path.join(__dirname, '../lib/coffee-script')
|
|
];
|
|
|
|
for (var i = 0, len = potentialPaths.length; i < len; i++) {
|
|
if (fs.existsSync(potentialPaths[i])) {
|
|
require(potentialPaths[i] + '/cake').run();
|
|
break;
|
|
}
|
|
}
|