PageRenderTime 21ms CodeModel.GetById 14ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/server/node_modules/rewire/test/testHelpers/removeFakePackageJSON.js

https://github.com/debdayal/TestApp
JavaScript | 9 lines | 8 code | 1 blank | 0 comment | 0 complexity | 14921c9ac60546a11ee77d8ca18c710b MD5 | raw file
1var fs = require("fs"),
2    pathUtil = require("path"),
3    nodeModulesDir = pathUtil.resolve(__dirname, "../../node_modules");
4
5module.exports = function removeFakePackageJSON(done) {
6    fs.unlink(nodeModulesDir + "/rewire/package.json", function onPackageJSONUnlink() {
7        fs.rmdir(nodeModulesDir + "/rewire", done);
8    });
9};