mirror of
https://github.com/jlfwong/speedscope.git
synced 2024-11-30 03:15:25 +03:00
20 lines
398 B
Bash
20 lines
398 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# Prepare a mock installation of speedscope to test it before the actual npm
|
||
|
# publish
|
||
|
|
||
|
set -euxo pipefail
|
||
|
|
||
|
TMPDIR=`mktemp -d -t speedscope-test-installation`
|
||
|
PACKEDNAME=`npm pack | tail -n1`
|
||
|
|
||
|
mv "$PACKEDNAME" "$TMPDIR"
|
||
|
cd "$TMPDIR"
|
||
|
tar -xvvf "$PACKEDNAME"
|
||
|
cd package
|
||
|
npm install
|
||
|
|
||
|
set +x
|
||
|
echo
|
||
|
echo "Run the following command to switch into the test directory"
|
||
|
echo cd "$TMPDIR"/package
|