
* Just cleaning up. * web: removing sonarjs from yet another branch. * web: everything except the tests are up-to-date. There was a lot, it turns out, we simply weren't using. * web: update package.json to support WebdriverIO 9 This commit: - Upgrades to WebdriverIO 9.1.2 - Resets our `devDependencies` collection to remove all imports that we either were not using or were duplicates of existing dependencies: - *Babel*, of all things - Storybook addon css user preferences, now native to Storybook 8 - SonarJS, *again*, sigh. - React - Fixes a bug where ESLint would report missing features in our build scripts - Fixes a bug where Wdio might not reach a headless browser before timeout - Replaces Rollup's CSSLit with Vite's CSSLit, which actually works without hacks, for testing. - Moves the package-lock scanner to its own script, with better reporting and tool verification, which also cleans up the package.lock file a little. * Prettier just havin' all the opinions.
22 lines
701 B
Bash
Executable File
22 lines
701 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if ! command -v jq >/dev/null 2>&1 ; then
|
|
echo "This check requires the jq program be installed."
|
|
echo "To install jq, visit"
|
|
echo " https://jqlang.github.io/jq/"
|
|
exit 1
|
|
fi
|
|
|
|
CMD=$(jq -r '.packages | to_entries[] | select((.key | contains("node_modules")) and (.value | has("resolved") | not)) | .key' < "$1")
|
|
|
|
if [ -n "$CMD" ]; then
|
|
echo "ERROR package-lock.json entries missing 'resolved' field:"
|
|
echo ""
|
|
# Shellcheck erroneously believes that shell string substitution can be used here, but that
|
|
# feature lacks a "start of line" discriminator.
|
|
# shellcheck disable=SC2001
|
|
echo "$CMD" | sed 's/^/ /g'
|
|
echo ""
|
|
exit 1
|
|
fi
|