|
1 | 1 | import {
|
2 |
| - missionControlVersion, |
3 | 2 | SatelliteParameters,
|
| 3 | + missionControlVersion, |
4 | 4 | satelliteVersion,
|
5 | 5 | upgradeMissionControl as upgradeMissionControlAdmin,
|
6 |
| - upgradeSatellite as upgradeSatelliteAdmin |
| 6 | + upgradeSatellite as upgradeSatelliteAdmin, |
| 7 | + type MissionControlParameters |
7 | 8 | } from '@junobuild/admin';
|
8 |
| -import {MissionControlParameters} from '@junobuild/admin/dist/types/types/actor.types'; |
9 | 9 | import {red, yellow} from 'kleur';
|
10 | 10 | import prompts from 'prompts';
|
11 | 11 | import {coerce, compare, eq, gt, lt, major, minor, patch, type SemVer} from 'semver';
|
12 | 12 | import {MISSION_CONTROL_WASM_NAME, SATELLITE_WASM_NAME} from '../constants/constants';
|
13 | 13 | import {actorParameters} from '../utils/actor.utils';
|
14 | 14 | import {hasArgs, nextArg} from '../utils/args.utils';
|
15 | 15 | import {getMissionControl} from '../utils/auth.config.utils';
|
16 |
| -import {GitHubAsset, githubJunoReleases, GitHubRelease} from '../utils/github.utils'; |
| 16 | +import {GitHubAsset, GitHubRelease, githubJunoReleases} from '../utils/github.utils'; |
17 | 17 | import {junoConfigExist, readSatelliteConfig} from '../utils/satellite.config.utils';
|
18 | 18 | import {satelliteKey, satelliteParameters} from '../utils/satellite.utils';
|
19 | 19 | import {upgradeWasmGitHub, upgradeWasmLocal} from '../utils/wasm.utils';
|
@@ -153,7 +153,8 @@ const upgradeSatelliteRelease = async (satellite: SatelliteParameters) => {
|
153 | 153 | satellite,
|
154 | 154 | wasm_module,
|
155 | 155 | // TODO: option to be removed
|
156 |
| - deprecated: compare(currentVersion, '0.0.7') < 0 |
| 156 | + deprecated: compare(currentVersion, '0.0.7') < 0, |
| 157 | + deprecatedNoScope: compare(currentVersion, '0.0.9') < 0 |
157 | 158 | });
|
158 | 159 |
|
159 | 160 | await upgradeWasmGitHub({asset, upgrade: upgradeSatelliteWasm});
|
@@ -183,7 +184,8 @@ const upgradeSatelliteCustom = async ({
|
183 | 184 | satellite,
|
184 | 185 | wasm_module,
|
185 | 186 | // TODO: option to be removed
|
186 |
| - deprecated: compare(currentVersion, '0.0.7') < 0 |
| 187 | + deprecated: compare(currentVersion, '0.0.7') < 0, |
| 188 | + deprecatedNoScope: compare(currentVersion, '0.0.9') < 0 |
187 | 189 | });
|
188 | 190 |
|
189 | 191 | await upgradeWasmLocal({src, upgrade: upgradeSatelliteWasm});
|
|
0 commit comments