8e79f1cb27
* improve Tree Shaking in ESM Instead of bundling everything into a single ESM file, we generate every single file as ESM. This is what we did in 1.4.x as well. I would expect if your library had a single ESM file and you only used 1 function that the application you use it in correctly does the tree-shakign for you. Apparantly a lot of applications are not properly setup for this, so let's create multiple files instead. * update changelog
22 lines
345 B
Bash
Executable File
22 lines
345 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
node="yarn node"
|
|
jestArgs=()
|
|
|
|
# Add default arguments
|
|
jestArgs+=("--passWithNoTests")
|
|
|
|
# Add arguments based on environment variables
|
|
if ! [ -z "$CI" ]; then
|
|
jestArgs+=("--maxWorkers=4")
|
|
jestArgs+=("--ci")
|
|
fi
|
|
|
|
# Passthrough arguments and flags
|
|
jestArgs+=($@)
|
|
|
|
# Execute
|
|
$node "$(yarn bin jest)" "${jestArgs[@]}"
|
|
|