JS: use ANT replace task to set $version

Needed make kotlin-test depend on the same version of kotlin
This commit is contained in:
Anton Bannykh
2017-11-09 14:56:47 +03:00
parent af784dcd47
commit 4d12426145
4 changed files with 9 additions and 7 deletions
@@ -1,6 +1,6 @@
{
"name": "kotlin-compiler",
"version": "0.0.0",
"version": "$version",
"description": "Kotlin compiler",
"repository": {
"type": "git",
+5 -2
View File
@@ -1,6 +1,6 @@
{
"name": "kotlin-test",
"version": "1.0.0",
"version": "$version",
"description": "Standard Testing Library for Kotlin Applications",
"main": "kotlin-test.js",
"repository": {
@@ -19,5 +19,8 @@
"bugs": {
"url": "kotl.in/issue"
},
"homepage": "kotlinlang.org"
"homepage": "kotlinlang.org",
"dependencies": {
"kotlin": "$version"
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "kotlin",
"version": "1.0.0",
"version": "$version",
"description": "Standard Library for Kotlin Applications",
"main": "kotlin.js",
"repository": {
+2 -3
View File
@@ -97,9 +97,8 @@
<actions/>
<npm command="version" dir="${package_deploy_dir}">
<arg value="@{version}"/>
</npm>
<replace file="${package_deploy_dir}/package.json" token="$version" value="@{version}" />
<npm command="publish" dir="${package_deploy_dir}">
<arg value="--//registry.npmjs.org/:_authToken=${kotlin.npmjs.auth.token}"/>
<arg value="--tag"/>