We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7427b76 commit 9b03c98Copy full SHA for 9b03c98
1 file changed
test/build/typings/pretest.sh
@@ -1,6 +1,24 @@
1
#!/bin/bash
2
set -e
3
4
-../pack.sh
+DEST="$(cd "$(dirname "$0")" && pwd)"
5
+TARBALL_DIR="$DEST/.."
6
+
7
+"$TARBALL_DIR/pack.sh"
8
9
+ISO_DIR="$(mktemp -d)"
10
+trap "rm -rf '$ISO_DIR'" EXIT
11
12
+cp "$DEST"/package.json \
13
+ "$DEST"/tsconfig.json \
14
+ "$DEST"/tsconfig.strict.json \
15
+ "$DEST"/*.ts \
16
+ "$ISO_DIR/"
17
18
+cd "$ISO_DIR"
19
+npm install --no-save "$TARBALL_DIR/mapbox-gl.tgz"
20
+npm run tsc:strict
21
22
+cd "$DEST"
23
rm -rf node_modules/mapbox-gl node_modules/@mapbox/mapbox-gl-style-spec
-npm install --no-save ../mapbox-gl.tgz ../mapbox-gl-style-spec.tgz
24
+npm install --no-save "$TARBALL_DIR/mapbox-gl.tgz" "$TARBALL_DIR/mapbox-gl-style-spec.tgz"
0 commit comments