File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,17 +99,16 @@ stages:
9999 Set-Content $_.PSPath }
100100
101101 - task : PowerShell@2
102- displayName : ' Extra temporary replace for the dockmanager trial->licensed'
102+ displayName : ' npm install igniteui-dockmanager (licensed)'
103+ enabled : false # Disable this extra step because we are already going for the licensed version in the package.json - 2 steps above
103104 inputs :
104- failOnStderr : true
105- showWarnings : true
106- workingDirectory : ' $(Build.SourcesDirectory)\browser\node_modules\@infragistics\igniteui-react'
107105 targetType : ' inline'
106+ # We are using a PowerShell script because the npm step doesn't allow for explicit use of variable expansion which is what we use here.
107+ # The script below grabs the current version of the dockmanager and installs it separately (after we UNinstalled it in a previous step)
108108 script : |
109- Write-Output "$(Build.SourcesDirectory)\browser\node_modules\@infragistics\igniteui-react"
110- Get-ChildItem -Include "*.js" -Recurse | `
111- ForEach { (Get-Content $_.PSPath | ForEach { ($_ -replace 'igniteui-dockmanager', '@infragistics/igniteui-dockmanager') }) | `
112- Set-Content $_.PSPath }
109+ cd $(Build.SourcesDirectory)\browser
110+ npm install igniteui-dockmanager@npm:@infragistics/igniteui-dockmanager@$($(jq '.dependencies.\"igniteui-dockmanager\"' .\package.json).Trim('"'))
111+
113112 - task : Npm@1
114113 displayName : ' npm run build'
115114 inputs :
You can’t perform that action at this time.
0 commit comments