Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[build] Use different versions for CLI tool and botbuilder-* libraries #1249

Merged
merged 2 commits into from
May 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions build.ts.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
Param(
[string] $version
[string] $pkgversion,
[string] $cliversion
)

if (-not $version) {
Write-Host "Version required!. Please use the param -version" -ForegroundColor DarkRed
if (-not $pkgversion) {
Write-Host "Version for botbuilder-* required!. Please use the param -pkgversion" -ForegroundColor DarkRed
Break
}

if (-not $cliversion) {
Write-Host "Version for botskills CLI required!. Please use the param -cliversion" -ForegroundColor DarkRed
Break
}

Expand All @@ -13,21 +19,21 @@ rush update

pushd .\botskills

npm version $($version) --allow-same-version
npm version $($cliversion) --allow-same-version
npm run build

popd

pushd .\botbuilder-solutions

npm version $($version) --allow-same-version
npm version $($pkgversion) --allow-same-version
npm run build

popd

pushd .\botbuilder-skills

npm version $($version) --allow-same-version
npm version $($pkgversion) --allow-same-version
npm run build

popd
Expand All @@ -36,7 +42,7 @@ popd

pushd .\templates\Virtual-Assistant-Template\typescript\generator-botbuilder-assistant

npm version $($version) --allow-same-version
npm version $($cliversion) --allow-same-version
npm install

popd
Expand Down