Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename requisite.coffee -> wrapper.coffee

  • Loading branch information...
commit 81f8a2036a439e9203ddb0d40a87981337d356a6 1 parent 55275f3
@zeekay authored
View
12 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
View
4 src/requisite.coffee
@@ -1,4 +0,0 @@
-module.exports =
- cli: -> require './cli'
- createBundler: require './bundle'
- version: require('../package.json').version
View
0  src/wrapper.coffee
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.