cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dase...@apache.org
Subject cordova-app-hello-world git commit: CB-9712 CLI 5.3 breaks with node 3.3.3
Date Mon, 12 Oct 2015 10:39:09 GMT
Repository: cordova-app-hello-world
Updated Branches:
  refs/heads/master c3b541df5 -> 7608c6a38


CB-9712 CLI 5.3 breaks with node 3.3.3

Added index.js so that module can be required and resolved
Exposed dirname in module exports


Project: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/commit/7608c6a3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/tree/7608c6a3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/diff/7608c6a3

Branch: refs/heads/master
Commit: 7608c6a389969229a5750360082d18aae82191e6
Parents: c3b541d
Author: daserge <v-seshak@microsoft.com>
Authored: Tue Oct 6 13:33:52 2015 +0300
Committer: daserge <v-seshak@microsoft.com>
Committed: Fri Oct 9 12:42:35 2015 +0300

----------------------------------------------------------------------
 index.js     | 5 +++++
 package.json | 1 +
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/7608c6a3/index.js
----------------------------------------------------------------------
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..3a5f96c
--- /dev/null
+++ b/index.js
@@ -0,0 +1,5 @@
+// Entry point is needed so that the module could be required.
+// The module dir path will be need to copy resources from it.
+exports = module.exports = {
+    dirname: __dirname
+};

http://git-wip-us.apache.org/repos/asf/cordova-app-hello-world/blob/7608c6a3/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 4b433ce..7d29290 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
     "type": "git",
     "url": "https://git-wip-us.apache.org/repos/asf/cordova-app-hello-world.git"
   },
+  "main": "index.js",
   "keywords": [
     "ecosystem:cordova"
   ],


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message