1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
From 218b62f0dabebfa408d3fecfd35b11b8a324fe29 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Thu, 7 Jun 2018 10:45:55 +0200
Subject: Use packaged async
Forwarded: not-needed
---
Makefile | 2 +-
lib/core.js | 2 +-
lib/nodeunit.js | 2 +-
lib/reporters/junit.js | 2 +-
lib/types.js | 2 +-
lib/utils.js | 2 +-
test/test-base.js | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
index 8e4d0f5..4f15c7c 100644
--- a/Makefile
+++ b/Makefile
@@ -141,7 +141,7 @@ build: stamp-build
stamp-build: $(wildcard deps/* lib/*.js)
touch $@;
mkdir -p $(BUILDDIR)/nodeunit
- cp -R bin deps index.js lib package.json share $(BUILDDIR)/nodeunit
+ cp -R bin index.js lib package.json share $(BUILDDIR)/nodeunit
printf '#!/bin/sh\n$(NODEJS) $(NODEJSLIBDIR)/$(PACKAGE)/bin/nodeunit $$@' > $(BUILDDIR)/nodeunit.sh
test:
diff --git a/lib/core.js b/lib/core.js
index 8ff031b..483a662 100644
--- a/lib/core.js
+++ b/lib/core.js
@@ -13,7 +13,7 @@
* Module dependencies
*/
-var async = require('../deps/async'), //@REMOVE_LINE_FOR_BROWSER
+var async = require('async'), //@REMOVE_LINE_FOR_BROWSER
nodeunit = require('./nodeunit'), //@REMOVE_LINE_FOR_BROWSER
types = require('./types'); //@REMOVE_LINE_FOR_BROWSER
diff --git a/lib/nodeunit.js b/lib/nodeunit.js
index 45f9108..43c72e9 100644
--- a/lib/nodeunit.js
+++ b/lib/nodeunit.js
@@ -8,7 +8,7 @@
* Module dependencies
*/
-var async = require('../deps/async'),
+var async = require('async'),
types = require('./types'),
utils = require('./utils'),
core = require('./core'),
diff --git a/lib/reporters/junit.js b/lib/reporters/junit.js
index 0796533..9cefcca 100644
--- a/lib/reporters/junit.js
+++ b/lib/reporters/junit.js
@@ -12,7 +12,7 @@ var nodeunit = require('../nodeunit'),
utils = require('../utils'),
fs = require('fs'),
path = require('path'),
- async = require('../../deps/async'),
+ async = require('async'),
AssertionError = require('../assert').AssertionError,
child_process = require('child_process'),
ejs = require('ejs');
diff --git a/lib/types.js b/lib/types.js
index 879edd8..65956f5 100644
--- a/lib/types.js
+++ b/lib/types.js
@@ -14,7 +14,7 @@
*/
var assert = require('./assert'), //@REMOVE_LINE_FOR_BROWSER
- async = require('../deps/async'); //@REMOVE_LINE_FOR_BROWSER
+ async = require('async'); //@REMOVE_LINE_FOR_BROWSER
/**
diff --git a/lib/utils.js b/lib/utils.js
index c6d1d0f..3b5b3e4 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -8,7 +8,7 @@
* Module dependencies
*/
-var async = require('../deps/async'),
+var async = require('async'),
fs = require('fs'),
util = require('util'),
Script = require('vm').Script,
diff --git a/test/test-base.js b/test/test-base.js
index 6905ace..d368560 100644
--- a/test/test-base.js
+++ b/test/test-base.js
@@ -10,7 +10,7 @@
*/
var assert = require('assert'), // @REMOVE_LINE_FOR_BROWSER
- async = require('../deps/async'), // @REMOVE_LINE_FOR_BROWSER
+ async = require('async'), // @REMOVE_LINE_FOR_BROWSER
nodeunit = require('../lib/nodeunit'); // @REMOVE_LINE_FOR_BROWSER
|