Skip to content

Commit e9cb6fb

Browse files
kyliauAndrewKushnir
authored andcommitted
build(language-service): add script to build package locally (angular#38103)
This commit adds a script to build @angular/language-service locally so that it can be consumed by the Angular extension for local development. PR Close angular#38103
1 parent 99960a9 commit e9cb6fb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/language-service/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -ex
3+
4+
# This script is used for building the @angular/language-service package locally
5+
# so that it can be consumed by the Angular extension for local development.
6+
# Usage: ./build.sh /path/to/vscode-ng-language-service
7+
8+
readonly bazel_bin=$(yarn run -s bazel info bazel-bin)
9+
readonly extension_repo="$1"
10+
11+
if [[ -z "${extension_repo}" ]]; then
12+
echo "Please provide path to the vscode-ng-language-service repo"
13+
exit 1
14+
fi
15+
16+
yarn bazel build --config=release //packages/language-service:npm_package
17+
pushd "${extension_repo}/server"
18+
yarn add @angular/language-service@file:"${bazel_bin}/packages/language-service/npm_package"
19+
popd

0 commit comments

Comments
 (0)