Skip to content

Commit

Permalink
I see no reason not to use the regular require statement at this point
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Nov 29, 2015
1 parent 1735bfd commit f33ac6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var rimraf = require('rimraf')
var onExit = require('signal-exit')
var stripBom = require('strip-bom')
var SourceMapCache = require('./lib/source-map-cache')
var tryRequire = require('try-require')

function NYC (opts) {
_.extend(this, {
Expand Down Expand Up @@ -47,7 +46,7 @@ function NYC (opts) {
NYC.prototype._loadAdditionalModules = function () {
require.main.paths.push(path.resolve(this.cwd, '/node_modules'))
this.require.forEach(function (r) {
tryRequire(r)
require(r)
})
}

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nyc",
"version": "4.0.0-alpha",
"version": "3.2.2",
"description": "a code coverage tool that works well with subprocesses.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -53,7 +53,6 @@
"source-map": "^0.5.3",
"spawn-wrap": "^1.0.1",
"strip-bom": "^2.0.0",
"try-require": "^1.2.1",
"yargs": "^3.15.0"
},
"devDependencies": {
Expand Down

0 comments on commit f33ac6d

Please sign in to comment.