mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* Get rid of tons of unnecessary destructuring in tests * control in-process concurrency w/env var formatting in testlib split `context` into `context` and `contextEach`; stop sprinkling `once` around `beforeAll` -> `before` `runIf` -> `if` `runSerially` -> `serial`, makes `serial` overloaded * extract testlib to git dep * extract getStream/expectStream to git dep * Replace bundled fs-fixture-builder with git dep * fix lockfile * try to make yarn happy grrr * test against node 20 nightly, since 19 seems not to be building every night * bump git deps * lockfile * try to fix install on node nightly * organize test helpers into multiple files, remove @yarnpkg/fslib dep, extract ctxTmpDir to its own context builder * fix bug in tests supposed to run *outside* of the git clone directory * fix transitive dep crash * fix fs-fixture-builder bug
28 lines
700 B
Bash
Executable File
28 lines
700 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Hacky script to grab node nightly and plonk it into node_modules/.bin, for
|
|
# locally testing against nightly builds.
|
|
|
|
set -euo pipefail
|
|
shopt -s inherit_errexit
|
|
__dirname="$(CDPATH= cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$__dirname/.."
|
|
|
|
set -x
|
|
|
|
mkdir -p tmp
|
|
|
|
version=$(curl https://nodejs.org/download/nightly/index.json | jq -r '.[0].version')
|
|
[ -e "tmp/$version.tar.xz" ] || \
|
|
curl -o "tmp/$version.tar.xz" "https://nodejs.org/download/nightly/$version/node-$version-linux-x64.tar.xz"
|
|
|
|
[ -e "tmp/$version.tar" ] || \
|
|
unxz "tmp/$version.tar.xz"
|
|
|
|
{
|
|
cd tmp
|
|
tar -xvf "$version.tar"
|
|
}
|
|
|
|
ln -s "../../tmp/node-$version-linux-x64/bin/node" ./node_modules/.bin/node
|