Browse Source

lib/_copy: moved exports to bottom

ci/travis-osximage
JP Richardson 10 years ago
parent
commit
4d441fb973
  1. 8
      lib/_copy.js
  2. 2
      test/ncp/ncp.js

8
lib/_copy.js

@ -1,13 +1,10 @@
// imported from ncp (this is temporary, will rewrite)
var fs = require('fs')
path = require('path')
var path = require('path')
const modern = /^v0\.1\d\.\d+/.test(process.version)
module.exports = ncp
ncp.ncp = ncp
function ncp (source, dest, options, callback) {
var cback = callback
@ -264,3 +261,6 @@ function ncp (source, dest, options, callback) {
}
}
// todo, make this just export ncp
module.exports.ncp = ncp

2
test/ncp/ncp.js

@ -4,7 +4,7 @@ var path = require('path')
var rimraf = require('rimraf')
var readDirFiles = require('read-dir-files').read //temporary, will remove
var util = require('util')
var ncp = require('../../lib/_copy')
var ncp = require('../../lib/_copy').ncp
var fixturesDir = path.join(__dirname, 'fixtures')

Loading…
Cancel
Save