[Pkg-javascript-commits] [node-require-dir] 05/07: Use coffee-script/register and disable ts-node

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Mar 1 14:36:08 UTC 2018


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository node-require-dir.

commit 43b747c5885b9325f86f22eb1b96551254de7f7a
Author: Pirate Praveen <praveen at debian.org>
Date:   Thu Mar 1 19:50:46 2018 +0530

    Use coffee-script/register and disable ts-node
---
 debian/patches/coffee-script-register.patch | 11 +++++++++++
 debian/patches/disable-ts-node.patch        | 17 +++++++++++++++++
 debian/patches/series                       |  2 ++
 3 files changed, 30 insertions(+)

diff --git a/debian/patches/coffee-script-register.patch b/debian/patches/coffee-script-register.patch
new file mode 100644
index 0000000..244fa64
--- /dev/null
+++ b/debian/patches/coffee-script-register.patch
@@ -0,0 +1,11 @@
+--- a/test/simple.js
++++ b/test/simple.js
+@@ -10,7 +10,7 @@
+ // now register CoffeeScript and do it again:
+ // note that CoffeeScript shouldn't be used by any other tests! we can't rely
+ // on ordering of tests, and require.extensions and require.cache are global.
+-require('coffee-script');
++require('coffee-script/register');
+ assert.deepEqual(requireDir('./simple'), {
+     a: 'a',
+     b: 'b',
diff --git a/debian/patches/disable-ts-node.patch b/debian/patches/disable-ts-node.patch
new file mode 100644
index 0000000..542a15e
--- /dev/null
+++ b/debian/patches/disable-ts-node.patch
@@ -0,0 +1,17 @@
+--- a/test/simple.js
++++ b/test/simple.js
+@@ -19,6 +19,7 @@
+ 
+ // now register TypeScript and do it again:
+ // note that we include typescript files but not declarations.
++/*
+ require('ts-node/register');
+ assert.deepEqual(requireDir('./simple'), {
+     a: 'a',
+@@ -26,5 +27,6 @@
+     c: 'c',
+     e: 'e',
+ });
++*/
+ 
+ console.log('Simple tests passed.');
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f06a036
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+coffee-script-register.patch
+disable-ts-node.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-require-dir.git



More information about the Pkg-javascript-commits mailing list