Skip to content

Commit 005c495

Browse files
committed
fix(index): add missing build step for the CLI (fixes #61)
1 parent 0bae1c3 commit 005c495

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎scripts/index-data.ps1‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ foreach ($line in $output) {
1414
[Environment]::SetEnvironmentVariable($name, $value)
1515
}
1616

17-
Write-Host 'Installing dependencies'
17+
Write-Host 'Installing dependencies and building CLI'
1818
npm ci
19+
npm run build
1920

2021
Write-Host 'Running "index-files" CLI tool'
2122
npx index-files --wait --indexer-url "$env:INDEXER_API_URI" --index-name "$env:AZURE_SEARCH_INDEX" ./data/*.md

‎scripts/index-data.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ cd "$(dirname "${BASH_SOURCE[0]}")/.."
44
echo "Loading azd .env file from current environment"
55
export $(azd env get-values | xargs)
66

7-
echo 'Installing dependencies'
7+
echo 'Installing dependencies and building CLI'
88
npm ci
9+
npm run build
910

1011
echo 'Running "index-files" CLI tool'
1112
npx index-files \

0 commit comments

Comments
 (0)