File: pretest.sh

package info (click to toggle)
node-xmldom 0.9.8-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,944 kB
  • sloc: xml: 39,442; javascript: 10,978; sh: 29; makefile: 2
file content (10 lines) | stat: -rwxr-xr-x 216 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash
set -xeu

rm -rf node_modules dist

npm i
[[ -n ${1:-''} ]] && npm i --no-save typescript@${1}

echo "Using TypeScript $(node_modules/.bin/tsc --version) (change with first argument)"
npm run tsc