JS: use ANT replace task to set $version
Needed make kotlin-test depend on the same version of kotlin
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "kotlin-compiler",
|
||||
"version": "0.0.0",
|
||||
"version": "$version",
|
||||
"description": "Kotlin compiler",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
{
|
||||
"name": "kotlin",
|
||||
"version": "1.0.0",
|
||||
"version": "$version",
|
||||
"description": "Standard Library for Kotlin Applications",
|
||||
"main": "kotlin.js",
|
||||
"repository": {
|
||||
|
||||
+2
-3
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user