Skip to content

Commit

Permalink
fix script build, make transpile only to avoid messy simple schema is…
Browse files Browse the repository at this point in the history
…sues
  • Loading branch information
eric-burel committed Dec 29, 2021
1 parent adbacf2 commit 76794de
Show file tree
Hide file tree
Showing 4 changed files with 76,453 additions and 114,535 deletions.
4 changes: 3 additions & 1 deletion .vn/scripts/build-scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ do
fname=`basename "$f"`
fname_no_ext=`echo "$fname" | cut -d. -f1`
echo "Filename $fname, without ext $fname_no_ext"
yarn run ncc build "$ts_sources_dir/$f" --no-cache --out "$vn_scripts_dir/dist"
# TODO: We use transpile-only because SimpleSchema typings are not correctly loaded, we would
# need to find a way to point to the right declaration file
yarn run ncc build "$ts_sources_dir/$f" --no-cache --out "$vn_scripts_dir/dist" --transpile-only
mkdir -p "$vn_scripts_dir/$dname"
mv "$vn_scripts_dir/dist/index.js" "$vn_scripts_dir/$dname/$fname_no_ext".js
done
Expand Down
Loading

0 comments on commit 76794de

Please sign in to comment.