Skip to content

Commit cc23563

Browse files
authored
chore: Helper script to link test app to local checkout (#1243)
1 parent 73fc4f9 commit cc23563

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/link-npm.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Run this script from your project directory to link all Hilla npm packages to this checkout of Hilla
4+
# e.g.
5+
# cd /tmp
6+
# npx @hilla/cli init myproj
7+
# cd myproj
8+
# ~/projects/hilla/scripts/link-npm.sh
9+
10+
hillaDir=`dirname $0`/..
11+
12+
pkgs=""
13+
for tsPkg in $hillaDir/packages/ts/*
14+
do
15+
pkgs+=" "@hilla/`basename $tsPkg`@$tsPkg
16+
done
17+
18+
npm i $pkgs

0 commit comments

Comments
 (0)