Skip to content

Commit

Permalink
feat(core): support for the next channel
Browse files Browse the repository at this point in the history
  • Loading branch information
faustbrian committed Mar 18, 2019
1 parent 69ec84e commit 15ad422
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/core-p2p/src/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const defaults = {
/**
* The minimum peer version we expect
*/
minimumVersions: [">=2.1.0", ">=2.2.0-alpha.0", ">=2.2.0-beta.0", ">=2.2.0-rc.0"],
minimumVersions: [">=2.1.0", ">=2.2.0-alpha.0", ">=2.2.0-beta.0", ">=2.2.0-rc.0", ">=2.2.0-next.0"],
/**
* The number of peers we expect to be available to start a relay
*/
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/commands/config/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class CommandLineInterfaceCommand extends BaseCommand {
$ ark config:cli --token=mine
`,
`Switch the npm registry channel
$ ark config:cli --channel=mine
$ ark config:cli --channel=next
`,
];

Expand All @@ -23,7 +23,7 @@ $ ark config:cli --channel=mine
}),
channel: flags.string({
description: "the name of the channel that should be used",
options: ["alpha", "beta", "rc", "latest"],
options: ["alpha", "beta", "rc", "next", "latest"],
}),
};

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/helpers/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function installFromChannel(pkg, channel) {
}

export function getRegistryChannel(config: IConfig): string {
const channels: string[] = ["alpha", "beta", "rc"];
const channels: string[] = ["alpha", "beta", "rc", "next"];

let channel: string = "latest";
for (const item of channels) {
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/hooks/init/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const init: Hook<"init"> = async function({ id, config }) {
alpha: "develop",
beta: "develop",
rc: "develop",
next: "develop",
latest: "master",
}[state.channel];

Expand Down

0 comments on commit 15ad422

Please sign in to comment.