Skip to content

Commit 7459c14

Browse files
committed
Save bower libraries in bower.json
1 parent 7c8fa1d commit 7459c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

JsLibraryPackaging.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function New-Package(
4141
}
4242

4343
function New-BowerLibrary ($name) {
44-
bower install $name
44+
bower install $name --save --production
4545
if ($name -match '#') {
4646
$split = $name.Split('#')
4747
$name = $split[0]
@@ -144,7 +144,7 @@ function Update-BowerLibrary ($name, $version = $null) {
144144
$bowerInstallName = $name
145145
}
146146

147-
bower install $bowerInstallName --production
147+
bower install $bowerInstallName --production --save
148148

149149
$folderName = (bower info $name name --json) | ConvertFrom-Json
150150
$packageInfo = (Get-Content .\_bower_components\$folderName\.bower.json) -join "`n" | ConvertFrom-Json

0 commit comments

Comments
 (0)