Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename requisite.coffee -> wrapper.coffee
- Loading branch information
Showing
3 changed files
with
4 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
path = require 'path' | ||
fs = require 'fs' | ||
|
||
# The location of exists/existsSync changed in node v0.8.0. | ||
{existsSync} = if fs.existsSync then fs else path | ||
{basename, resolve} = 'path' | ||
{existsSync} = require './utils' | ||
|
||
# This is a bit of a hack, if `../src` exists then assume we're being required | ||
# from the git repo. To make development a bit easier we'll require the | ||
# uncompiled version of the project. In normal production use `../src` will | ||
# be missing since it's in `.npmignore`. | ||
modName = path.basename path.resolve __dirname + '/..' | ||
if existsSync __dirname + '/../src' | ||
require 'coffee-script' | ||
mod = require "../src/#{modName}" | ||
mod = require "../src/wrapper" | ||
else | ||
mod = require "./#{modName}" | ||
mod = require "./wrapper" | ||
|
||
module.exports = mod |
This file was deleted.
Oops, something went wrong.
Empty file.