Fixing paths for npm published versions
diff --git a/VERSION b/wp8/VERSION
similarity index 100%
rename from VERSION
rename to wp8/VERSION
diff --git a/wp8/bin/createTemplates.js b/wp8/bin/createTemplates.js
index d50594b..6f0001f 100644
--- a/wp8/bin/createTemplates.js
+++ b/wp8/bin/createTemplates.js
@@ -175,7 +175,7 @@
copyCommonScripts();
- copyFile(repoRoot + '\\VERSION',platformRoot + templatePath);
+ copyFile(platformRoot + '\\VERSION',platformRoot + templatePath);
copyFile(repoRoot + '\\wp8\\template\\cordova\\defaults.xml',platformRoot + templatePath + '\\config.xml');
@@ -320,5 +320,5 @@
// MAIN
parseArgs();
// build/package the templates
-versionNum = read(repoRoot + "\\VERSION");
+versionNum = read(platformRoot + "\\VERSION");
package_templates(repoRoot);
diff --git a/wp8/bin/lib/create.js b/wp8/bin/lib/create.js
index b42f03a..ab073ca 100644
--- a/wp8/bin/lib/create.js
+++ b/wp8/bin/lib/create.js
@@ -64,7 +64,7 @@
// Copy the template source files to the new destination
shell.cp("-rf", path.join(templatePath, '*'), projectPath);
// Copy our unique VERSION file, so peeps can tell what version this project was created from.
- shell.cp("-rf", path.join(platformRoot, "..", 'VERSION'), projectPath);
+ shell.cp("-rf", path.join(platformRoot, 'VERSION'), projectPath);
// copy the defaults.xml into config.xml so this project can be built when create is called minus the cordova-cli
shell.cp(path.join(projectPath, "cordova", "defaults.xml"), path.join(projectPath, "config.xml"));