Skip to content

Commit 8127eea

Browse files
committed
index.ts: Removed Edge CLI flags
1 parent 33aa9bf commit 8127eea

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/index.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,10 @@ const argv = yargs(process.argv.slice(2))
2121
firefoxDevChangelog: { type: "string" },
2222
edgeDevChangelog: { type: "string" },
2323
operaChangelog: { type: "string" },
24-
verbose: { type: "boolean" },
25-
// Edge Publish API parameters
26-
edgeClientId: { type: "string" },
27-
edgeApiKey: { type: "string" },
28-
edgeClientSecret: { type: "string", deprecated: true },
29-
edgeAccessTokenUrl: { type: "string", deprecated: true }
24+
verbose: { type: "boolean" }
3025
})
3126
.parseSync();
3227

33-
function checkIfIntendingToCreateOldEdgeCredentials(): boolean {
34-
return Boolean(argv.edgeClientId || argv.edgeClientSecret || argv.edgeAccessTokenUrl);
35-
}
36-
3728
function verifySelectiveDeployments(storesToInclude: Array<SupportedStores>): boolean {
3829
if (!argv.env) {
3930
if (storesToInclude.length >= 0) {
@@ -68,14 +59,6 @@ async function initCli(): Promise<void> {
6859
process.exit();
6960
}
7061

71-
if (checkIfIntendingToCreateOldEdgeCredentials()) {
72-
throw new Error(
73-
chalk.red(
74-
"Edge Publish API v1 is/will be deprecated. To migrate to Edge Publish API v1.1, see https://github.com/avi12/web-ext-deploy/blob/main/EDGE_PUBLISH_API.md"
75-
)
76-
);
77-
}
78-
7962
if (!verifySelectiveDeployments(argv.publishOnly as Array<SupportedStores>)) {
8063
return;
8164
}

0 commit comments

Comments
 (0)