Skip to content

Commit 335d69c

Browse files
authored
smoke-test: remove weird --node-version hack (#7160)
[email protected] no longer has `<18` in `engines.node` so installing `0.x` won't completely screw up on Node 18. This should unblock npm v9 upgrade when we want to take it.
1 parent ef1d017 commit 335d69c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

smoke-test/smoke-test.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,14 @@ node generated/tsc/smoke-test.mjs
5959
# because we used to really like putting `<` engine constraints on all our
6060
# packages.
6161
#
62-
# `--node-version=16.0.0` tricks npm into thinking we are Node v16 for the
63-
# purpose of choosing versions. Even with `--no-engine-strict` or `--force`,
64-
# when it evaluates `@apollo/[email protected]` it will rule out versions whose
65-
# `engines` rule out the current Node version. We should hopefully publish a new
66-
# latest 0.x version soon which doesn't have `< 18` for Node but for now lie
67-
# about our version. (This flag will go away in npm v9 so this is only a
68-
# short-term solution.)
69-
#
7062
# This runs into some weird issues when we install the graphql@17 canary that
7163
# seems to just be about ending up with two copies of `graphql` installed at
7264
# different levels. For simplicity, we skip this part of the test in the canary
7365
# job. Once [email protected] is out we should be able to de-conditional this.
7466
if [[ -z "${INCREMENTAL_DELIVERY_TESTS_ENABLED:-}" ]]; then
7567
pushd gateway-compatibility
7668
for version in 0.50.1 0.51.0 0.x 2.0.0 2.0.5 2.x; do
77-
npm i --no-save --legacy-peer-deps --node-version=16.0.0 --no-engine-strict "@apollo/gateway@$version"
69+
npm i --no-save --legacy-peer-deps --no-engine-strict "@apollo/gateway@$version"
7870
tsc --build tsconfig.json
7971
done
8072
popd

0 commit comments

Comments
 (0)