Skip to content

Commit

Permalink
Rename requisite.coffee -> wrapper.coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Jul 3, 2012
1 parent 55275f3 commit 81f8a20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
12 changes: 4 additions & 8 deletions src/index.coffee
@@ -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
4 changes: 0 additions & 4 deletions src/requisite.coffee

This file was deleted.

Empty file added src/wrapper.coffee
Empty file.

0 comments on commit 81f8a20

Please sign in to comment.