[cli] Remove a bunch of isCanary checks (#9806)

We no longer publish versions that include `-canary` in the package.json `version` field, so these are dead code. Just doing a little bit of cleanup.
This commit is contained in:
Nathan Rajlich
2023-04-14 13:35:56 -07:00
committed by GitHub
parent ed119d6a33
commit 3e7bcb2073
13 changed files with 13 additions and 58 deletions

View File

@@ -5,8 +5,6 @@ const fetch = require('node-fetch');
const retry = require('async-retry');
const { satisfies } = require('semver');
const stripAnsi = require('strip-ansi');
const { getDistTag } = require('../../src/util/get-dist-tag');
const { version: cliVersion } = require('../../package.json');
const {
fetchCachedToken,
} = require('../../../../test/lib/deployment/now-deploy');
@@ -16,7 +14,6 @@ jest.setTimeout(10 * 60 * 1000);
const isCI = !!process.env.CI;
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
const isCanary = () => getDistTag(cliVersion) === 'canary';
let port = 3000;
@@ -607,7 +604,6 @@ afterEach(async () => {
module.exports = {
sleep,
isCanary,
testPath,
testFixture,
testFixtureStdio,