mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #13 from NativeScript/plamen5kov/enable_tgz_versioning
fixed path to package json
This commit is contained in:
@@ -63,7 +63,7 @@ task cleanDistDir (type: Delete) {
|
|||||||
|
|
||||||
task fixVersion << {
|
task fixVersion << {
|
||||||
if(project.hasProperty("PACKAGE_VERSION")) {
|
if(project.hasProperty("PACKAGE_VERSION")) {
|
||||||
def inputFile = new File("./package.json")
|
def inputFile = new File("../package.json")
|
||||||
def json = new JsonSlurper().parseText(inputFile.text)
|
def json = new JsonSlurper().parseText(inputFile.text)
|
||||||
json.version = json.version + "-" + PACKAGE_VERSION
|
json.version = json.version + "-" + PACKAGE_VERSION
|
||||||
def jb = new JsonBuilder(json);
|
def jb = new JsonBuilder(json);
|
||||||
|
|||||||
Reference in New Issue
Block a user