diff -Nru node-es6-module-transpiler-0.10.0/debian/changelog node-es6-module-transpiler-0.10.0/debian/changelog --- node-es6-module-transpiler-0.10.0/debian/changelog 2016-07-31 06:04:52.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/changelog 2017-07-06 14:32:53.000000000 +0000 @@ -1,3 +1,12 @@ +node-es6-module-transpiler (0.10.0-2) unstable; urgency=medium + + * Add a patch for better module detection. + * Push standards-version to 4.0.0. + * Add a patch to detect standard modules. + * Add a patch to search /usr/lib/nodejs. + + -- Julien Puydt Thu, 06 Jul 2017 16:32:53 +0200 + node-es6-module-transpiler (0.10.0-1) unstable; urgency=low * Initial release (Closes: #802443) diff -Nru node-es6-module-transpiler-0.10.0/debian/control node-es6-module-transpiler-0.10.0/debian/control --- node-es6-module-transpiler-0.10.0/debian/control 2016-07-31 06:04:52.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/control 2017-07-06 14:32:53.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Debian Javascript Maintainers Uploaders: Julien Puydt Build-Depends: debhelper (>= 9), nodejs -Standards-Version: 3.9.8 +Standards-Version: 4.0.0 Homepage: http://esnext.github.io/es6-module-transpiler Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-es6-module-transpiler.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-es6-module-transpiler.git diff -Nru node-es6-module-transpiler-0.10.0/debian/patches/accept_standard_modules.patch node-es6-module-transpiler-0.10.0/debian/patches/accept_standard_modules.patch --- node-es6-module-transpiler-0.10.0/debian/patches/accept_standard_modules.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/patches/accept_standard_modules.patch 2017-07-06 14:32:53.000000000 +0000 @@ -0,0 +1,17 @@ +Description: accept standard module without checking anything +Author: Julien Puydt +Forwarded: no + +--- a/lib/file_resolver.js ++++ b/lib/file_resolver.js +@@ -60,6 +60,10 @@ + FileResolver.prototype.resolvePath = function(importedPath, fromModule) { + var paths = this.paths; + ++ if (importedPath === 'path') { ++ return importedPath; ++ } ++ + if (importedPath[0] === '.' && fromModule) { + paths = [Path.dirname(fromModule.path)]; + } diff -Nru node-es6-module-transpiler-0.10.0/debian/patches/detect_module_index.patch node-es6-module-transpiler-0.10.0/debian/patches/detect_module_index.patch --- node-es6-module-transpiler-0.10.0/debian/patches/detect_module_index.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/patches/detect_module_index.patch 2017-07-06 14:32:53.000000000 +0000 @@ -0,0 +1,19 @@ +Description: make imports work when the module is a module/index.js +Author: Julien Puydt +Forwarded: yes + +--- a/lib/file_resolver.js ++++ b/lib/file_resolver.js +@@ -67,6 +67,12 @@ + for (var i = 0, length = paths.length; i < length; i++) { + var includePath = paths[i]; + var resolved = Path.resolve(includePath, importedPath); ++ ++ var index = Path.join(resolved, 'index.js') ++ if (fs.existsSync(index)) { ++ return index; ++ } ++ + if (!~resolved.lastIndexOf('.')) { + resolved += '.js'; + } diff -Nru node-es6-module-transpiler-0.10.0/debian/patches/search_system_path.patch node-es6-module-transpiler-0.10.0/debian/patches/search_system_path.patch --- node-es6-module-transpiler-0.10.0/debian/patches/search_system_path.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/patches/search_system_path.patch 2017-07-06 14:32:53.000000000 +0000 @@ -0,0 +1,15 @@ +Description: search Debian's standard system path +Author: Julien Puydt +Forwarded: no + +--- a/lib/file_resolver.js ++++ b/lib/file_resolver.js +@@ -68,6 +68,8 @@ + paths = [Path.dirname(fromModule.path)]; + } + ++ paths.push('/usr/lib/nodejs') ++ + for (var i = 0, length = paths.length; i < length; i++) { + var includePath = paths[i]; + var resolved = Path.resolve(includePath, importedPath); diff -Nru node-es6-module-transpiler-0.10.0/debian/patches/series node-es6-module-transpiler-0.10.0/debian/patches/series --- node-es6-module-transpiler-0.10.0/debian/patches/series 2016-07-31 06:04:52.000000000 +0000 +++ node-es6-module-transpiler-0.10.0/debian/patches/series 2017-07-06 14:32:53.000000000 +0000 @@ -1,2 +1,5 @@ +search_system_path.patch +accept_standard_modules.patch +detect_module_index.patch 0001-On-Debian-systems-use-nodejs.patch 0002-Workaround-for-upstream-issue-199.patch